Skip to content

qcow2: Add two more unalignment checks

Max Reitz qemu-devel 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2qcow2: Add two more unalignment checksblock/qcow2-cluster.c+21 -00 replies
2/2iotests: Add tests for more corruption casestests/qemu-iotests/060 tests/qemu-iotests/060.out+28 -00 replies

Reviews trailers per patch

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

PatchEric Blake
SeriesR-b
1/2
2/2

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/2] qcow2: Add two more unalignment checks

With the series adding unalignment checks and the series reworking the zero cluster expansion code overlapping, the unalignment checks have not been implemented in the latter code.

This series fixes it.

There are other places which would require unalignment checks, like the offsets of L1 tables, especially for snapshots; but because it would be best to add these checks in the function which reads the snapshot table, this would make images with broken snapshots completely unusable, which is something I opted to avoid for now.

Ideally, we need to make the qcow2 repair function repair such cases, but until that is done there is not much we can do about them.

Max Reitz (2):
qcow2: Add two more unalignment checks
iotests: Add tests for more corruption cases

 block/qcow2-cluster.c      | 21 +++++++++++++++++++++
 tests/qemu-iotests/060     | 15 +++++++++++++++
 tests/qemu-iotests/060.out | 13 +++++++++++++
 3 files changed, 49 insertions(+)
Signature · 1 line
2.1.0