Skip to content

qcow2: Fix crash during copy_sectors() after corruption

Max Reitz qemu-devel 1 version Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3qcow2: Check bs->drv in copy_sectors()block/qcow2-cluster.c+4 -05 replies
2/3block: bs->drv may be NULL in bdrv_debug_resume()block.c+1 -10 replies
3/3iotests: Test corruption during COW requesttests/qemu-iotests/060 tests/qemu-iotests/060.out+41 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKevin Wolf
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] qcow2: Fix crash during copy_sectors() after corruption

This series fixes a call to a NULL function pointer during copy_sectors(), if a concurrent write request triggered the corruption prevention mechanism.

Max Reitz (3):
qcow2: Check bs->drv in copy_sectors()
block: bs->drv may be NULL in bdrv_debug_resume()
iotests: Test corruption during COW request

 block.c                    |  2 +-
 block/qcow2-cluster.c      |  4 ++++
 tests/qemu-iotests/060     | 26 ++++++++++++++++++++++++++
 tests/qemu-iotests/060.out | 15 +++++++++++++++
 4 files changed, 46 insertions(+), 1 deletion(-)
Signature · 1 line
1.9.0