[Devel] [PATCH hci-8.2] dm-qcow2: fix a zeroed cluster under allocation reading as backing data

Konstantin Khorenko khorenko at virtuozzo.com
Mon Nov 30 16:22:46 MSK 2026


Applying with these fixes on my side:

- message: name 8584282d4e93 ("dm-qcow2: keep the zero flag of an
  L2 entry when its writeback fails") where it says the zero-flagged
  old entry is saved in pe_page;
- message: "zero flagged" -> "zero-flagged";
- message: the last two sentences of paragraph 2 are a paragraph of
  their own.

On Mon, 23 Nov 2026 19:38:16 +0100, Denis V. Lunev wrote:
> index until their writeback is done. Such an entry was 0, or it had the
> zero flag and was saved in pe_page, which is where
> revert_l_entries_update() takes the old entries from.

A zero-flag-only entry (no host cluster) goes to pe_page only since
8584282d4e93: before it, prepare_l1l2_allocation() asked for pe_page
on map->prealloced, not map->all_zeroes. On a branch without that
commit old reads 0 for such an entry and the read still goes to the
backing image, so the message names it for whoever backports this.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list