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 1170842 - qemu-img convert intermittently corrupts output images
Summary: qemu-img convert intermittently corrupts output images
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-05 01:26 UTC by Tony Breeds
Modified: 2014-12-11 05:21 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-10 00:35:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1368815 0 None None None Never

Description Tony Breeds 2014-12-05 01:26:16 UTC
qemu uses fiemap to detect holes in images.  Under certain circumstances this will corrupt the output image.

After checking the Centos 6 source code I believe that this issue affects RHEL6 generally.

This issue was discovered in the context of openstack, but isn't limited to that scope.

Please see the linked LP bug for more details and links to patches that woul need to be backported.  The qemu 1.5 code base is quite different to 2.x so I don't expect that patches to just apply.

For the record this is the same issue covered in RHBZs:
https://bugzilla.redhat.com/show_bug.cgi?id=1166605
https://bugzilla.redhat.com/show_bug.cgi?id=1160237
https://bugzilla.redhat.com/show_bug.cgi?id=1167224
https://bugzilla.redhat.com/show_bug.cgi?id=1142331

Comment 2 Pádraig Brady 2014-12-09 12:04:08 UTC
Hi Tony. I didn't think RHEL 6 was affected.

I checked these srpms:
qemu-kvm-rhev-0.12.1.2-2.445.el6.src.rpm
qemu-kvm-0.12.1.2-2.448.el6_6.src.rpm

What version are you seeing this with?

Comment 3 Tony Breeds 2014-12-10 00:04:19 UTC
I grabbed the Centos 6 source as I no longer have access to RHEL sources.

qemu-kvm-0.12.1.2-2.445.el6.src.rpm

balder:qemu-kvm tony8129$ grep -Ern fm_flags .
./SOURCES/qemu-1.5.3/block/raw-posix.c:1111:    f.fm.fm_flags = 0;
./SOURCES/qemu-1.5.3/linux-user/syscall_types.h:239:       TYPE_INT, /* fm_flags */

line 1111 is in:

static int coroutine_fn raw_co_is_allocated(BlockDriverState *bs,
                                            int64_t sector_num,
                                            int nb_sectors, int *pnum)

Which looks problematic to me.  What I didn't check was if the build sets CONFIG_FIEMAP

Comment 4 Pádraig Brady 2014-12-10 00:35:31 UTC
I think you may have multiple srpms installed and you're grepping the el7 one my mistake (notice the qemu-1.5.3) ?

I'll mark this as invalid for now.

thanks

Comment 5 Tony Breeds 2014-12-11 05:21:27 UTC
You're correct.  Very sorry.


Note You need to log in before you can comment on or make changes to this bug.