[Devel] [PATCH hci-8.2 4/4] dm-qcow2: refuse an ext_l2 entry with allocated subclusters and no cluster

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 19 19:33:44 MSK 2026


Applying with these fixes on my side:

- Item 3 of the cover letter reply: reworded the qemu sentence.

On Thu, 19 Nov 2026 02:08:54 +0100, Denis V. Lunev wrote:
> Fail I/O to such a cluster with -EIO and log the entry. qemu fails only
> the invalid subclusters, but the entry is corrupt either way.

qcow2_get_subcluster_type() returns INVALID for every subcluster of an
unallocated cluster once any allocation bit is set, and the I/O path
then calls qcow2_signal_corruption(), which stops all I/O to the image.
Now: "qemu treats every subcluster of such an entry as invalid too and
marks the image corrupt."

The log line is item 1 of the separate patches in the cover letter
reply.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list