Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1004420

Summary: Backport qcow2 corruption prevention patches
Product: Red Hat Enterprise Linux 6 Reporter: Kevin Wolf <kwolf>
Component: qemu-kvmAssignee: Hanna Czenczek <hreitz>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 6.6CC: bsarathy, chayang, cpelland, iheim, juzhang, kwolf, lersek, michen, mkenneth, qzhang, rbalakri, sluo, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.427.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1004347 Environment:
Last Closed: 2014-10-14 06:50:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1004347    
Bug Blocks: 1002699    

Description Kevin Wolf 2013-09-04 15:23:01 UTC
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.

Comment 1 Ayal Baron 2014-01-29 10:03:33 UTC
Please note that this bug affects RHEV customers and we would like to see this in 6.6
Thanks.

Comment 6 Jeff Nelson 2014-05-23 18:08:10 UTC
Fix included in qemu-kvm-0.12.1.2-2.427.el6

Comment 16 Sibiao Luo 2014-08-11 08:58:10 UTC
Verify this issue.

host info:
# uname -r && rpm -q qemu-kvm
2.6.32-491.el6.x86_64
qemu-kvm-0.12.1.2-2.436.el6.x86_64

# 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]# pwd
/root/rpmbuild/BUILD/qemu-kvm-0.12.1.2/tests/qemu-iotests
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 
QEMU_NBD      -- 
IMGFMT        -- qcow2
IMGPROTO      -- file
PLATFORM      -- Linux/x86_64 intel-5504-12-2 2.6.32-491.el6.x86_64
SOCKET_SCM_HELPER -- 

060        
Passed all 1 tests

According to above, comment #13 and comment #15, set this issue to VERIFIED status.

Comment 17 errata-xmlrpc 2014-10-14 06:50:28 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-1490.html