[Devel] [PATCH hci-8.1] dm-qcow2: reject v3 images with header_length below 104

Konstantin Khorenko khorenko at virtuozzo.com
Mon Nov 16 20:21:07 MSK 2026


Applying as is.

On Mon, 16 Nov 2026 11:37:52 +0100, Alexander Ivanov wrote:
> +	if (hdr->header_length < offsetof(struct QCowHeader, compression_type))
> +		return -EINVAL;

This is the check 66195f78dd3c dropped, back with qemu's threshold and
error code. No tool writes a v3 header below 104, so only a broken
image is refused.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list