[Devel] [PATCH hci-8.2] dm-qcow2: fix a SEEK_DATA/SEEK_HOLE oops on a cluster under allocation
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Mon Nov 23 18:48:50 MSK 2026
> From: Denis V. Lunev <den at openvz.org>
>
> On an image without extended L2 entries, parse_l2() serves a read of a
> cluster whose L2 entry is dirty or under writeback with zeroes through
> perform_zero_read(). A seek qio from qcow2_llseek_hole() is a read with
> 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.
>
> Delay the seek qio until the L2 entry is written back, as the ext_l2
> branch and parse_l1() already do; the seek loop waits for it and then
> sees the settled entry instead of one a failed writeback may still
> revert.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-156079
>
> Fixes: 412d5a4f7bf1 ("dm/dm-qcow2: add llseek_hole")
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Denis V. Lunev <den at openvz.org>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261123153805.128513-1-den@openvz.org?part=1
More information about the Devel
mailing list