OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] dm-qcow2: fix a SEEK_DATA/SEEK_HOLE oops on a cluster under allocation
Date: Mon, 30 Nov 2026 14:19:58 +0100	[thread overview]
Message-ID: <179604479815.1034346.1151356846431156664.b4-review@b4> (raw)
In-Reply-To: <20261123153805.128513-1-den@openvz.org>

Applying with this fix on my side:

- message: "meets a cluster being allocated" -> "meets a cluster
  being allocated or discarded".

On Mon, 23 Nov 2026 16:38:05 +0100, Denis V. Lunev wrote:
> no pages, so a SEEK_DATA or SEEK_HOLE on the device that meets a
> cluster being allocated dereferences its NULL bi_io_vec under
> md_pages_lock and oopses.

A discard updates the L2 entry the same way (prepare_cluster_discard()
-> prepare_l_entry_update()), so a seek over a cluster being discarded
oopsed too; the patch covers both.

Separate patches, not needed for this patch. I created a task for it:

1. The same branch of parse_l2() serves a plain read wrongly on an
   image with a backing file. A write that allocates a zeroed cluster
   (L2_READS_ALL_ZEROES, preallocated or not) puts the new entry
   without the zero flag into the L2 page; a read before its writeback
   gets zero-filled and returns without data_clu_alloced, so
   process_read_qio() takes the cluster as unmapped and reads the
   backing image over the zeroes. The guest sees the backing data in a
   range it zeroed.
   https://virtuozzo.atlassian.net/browse/VSTOR-156741

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  parent reply	other threads:[~2026-11-30 13:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 15:38 Denis V. Lunev
2026-11-23 15:48 ` no-reply
2026-11-25  1:20 ` Andrey Zhadchenko
2026-11-30 13:19 ` Konstantin Khorenko [this message]
2026-11-30 13:20 ` Konstantin Khorenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179604479815.1034346.1151356846431156664.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=devel@openvz.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox