Skip to content

qcow2: Prevent corruption-related crashes

Max Reitz qemu-devel 1 version Applied

Status from this message: Thanks, applied all to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3qcow2: Catch !*host_offset for data allocationblock/qcow2-cluster.c+11 -00 replies
2/3iotests: Add test for image header overlaptests/qemu-iotests/060 tests/qemu-iotests/060.out+17 -00 replies
3/3block: Catch !bs->drv in bdrv_check()block.c+3 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] qcow2: Prevent corruption-related crashes

The first two patches in this series address
https://bugs.launchpad.net/qemu/+bug/1349972.

For the third patch I found it hard to write an appropriate test case (it would have to make qemu-img check repair some leaks but induce the corruption prevention at the same time). One can use the test image from the bug report above, set the refcount block offset to 0 and that works. However, the patch is simple enough that no test should be necessary.

Max Reitz (3):
qcow2: Catch !*host_offset for data allocation
iotests: Add test for image header overlap
block: Catch !bs->drv in bdrv_check()

 block.c                    |  3 +++
 block/qcow2-cluster.c      | 11 +++++++++++
 tests/qemu-iotests/060     |  9 +++++++++
 tests/qemu-iotests/060.out |  8 ++++++++
 4 files changed, 31 insertions(+)
Signature · 1 line
2.0.3