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 1166496 - qemu-img: Assert for 'amend -o compat=0.10' command on the fuzzed image
Summary: qemu-img: Assert for 'amend -o compat=0.10' command on the fuzzed image
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Kevin Wolf
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1161393
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-21 05:29 UTC by Sibiao Luo
Modified: 2014-11-25 12:52 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1161393
Environment:
Last Closed: 2014-11-25 12:52:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Sibiao Luo 2014-11-21 05:30:32 UTC
host info:
# uname -r && rpm -q qemu-kvm
3.10.0-205.el7.x86_64
qemu-kvm-1.5.3-79.el7.x86_64

# qemu-img amend -o compat=0.10 -f qcow2 copy.img
qemu-img: block/qcow2-cluster.c:1552: expand_zero_clusters_in_l1: Assertion `(cluster_index >= 0) && (cluster_index < *nb_clusters)' failed.
Aborted (core dumped)

(gdb) bt
#0  0x00007f8b53b555d7 in raise () from /lib64/libc.so.6
#1  0x00007f8b53b56cc8 in abort () from /lib64/libc.so.6
#2  0x00007f8b53b4e546 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007f8b53b4e5f2 in __assert_fail () from /lib64/libc.so.6
#4  0x00007f8b55b1d1eb in expand_zero_clusters_in_l1 (bs=bs@entry=0x7f8b578e3400, l1_table=<optimized out>, 
    l1_size=<optimized out>, expanded_clusters=expanded_clusters@entry=0x7fff5a23cd70, 
    nb_clusters=nb_clusters@entry=0x7fff5a23cd68) at block/qcow2-cluster.c:1552
#5  0x00007f8b55b1eff9 in qcow2_expand_zero_clusters (bs=bs@entry=0x7f8b578e3400) at block/qcow2-cluster.c:1699
#6  0x00007f8b55b25a28 in qcow2_downgrade (target_version=2, bs=0x7f8b578e3400) at block/qcow2.c:2137
#7  qcow2_amend_options (bs=0x7f8b578e3400, options=<optimized out>) at block/qcow2.c:2221
#8  0x00007f8b55b5ca10 in img_amend (argc=<optimized out>, argv=<optimized out>) at qemu-img.c:2754
#9  0x00007f8b53b41af5 in __libc_start_main () from /lib64/libc.so.6
#10 0x00007f8b55b08c2d in _start ()
(gdb)

Comment 2 Kevin Wolf 2014-11-25 12:52:25 UTC
Fixed in upstream as of commit ecf58777. Corner case bug with too invasive fix
to backport it, not worth fixing in qemu-kvm.


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