Red Hat Bugzilla – Bug 1004420
Backport qcow2 corruption prevention patches
Last modified: 2014-12-11 11:13:50 EST
Once the RHEL 6.6 tree is open, it would be useful to have it backported there
as well. As it's only prevention, we'll not include it in 6.5.
+++ This bug was initially created as a clone of Bug #1004347 +++
Upstream commits d4ca092a to ca0eca91 implements sanity checks for writes to a
qcow2 image as follows:
> If a qcow2 image file becomes corrupted, any write may inadvertently
> overwrite important metadata structures such as the L1 table. This
> series adds functionality for detecting, preventing and (to some extent)
> repairing such collisions.
This is something that we'll want to have in RHEL 7.
Please note that this bug affects RHEV customers and we would like to see this in 6.6
Fix included in qemu-kvm-0.12.1.2-2.427.el6
Verify this issue.
# uname -r && rpm -q qemu-kvm
# rpm -ivh qemu-kvm-0.12.1.2-2.436.el6.src.rpm
# rpmbuild -bp --nodeps /root/rpmbuild/SPECS/qemu-kvm.spec
# tar -zxvf /root/rpmbuild/SOURCES/qemu-kvm-0.12.1.2.tar.gz
qemu-iotests]# export QEMU_PROG=/usr/libexec/qemu-kvm
qemu-iotests]# ./check -qcow2 060
QEMU -- /usr/libexec/qemu-kvm
QEMU_IMG -- /usr/bin/qemu-img
QEMU_IO -- /usr/bin/qemu-io
IMGFMT -- qcow2
IMGPROTO -- file
PLATFORM -- Linux/x86_64 intel-5504-12-2 2.6.32-491.el6.x86_64
Passed all 1 tests
According to above, comment #13 and comment #15, set this issue to VERIFIED status.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.