Bug 1161393
Summary: | qemu-img: Assert for 'amend -o compat=0.10' command on the fuzzed image | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> | ||||
Component: | qemu-kvm-rhev | Assignee: | Kevin Wolf <kwolf> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.1 | CC: | chayang, famz, hhuang, hreitz, juzhang, kwolf, michen, mrezanin, pbonzini, qiguo, qzhang, virt-maint, xfu | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.3.0 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1166496 (view as bug list) | Environment: | |||||
Last Closed: | 2015-12-04 16:20:38 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: | |||||||
Bug Blocks: | 1166496 | ||||||
Attachments: |
|
Description
Sibiao Luo
2014-11-07 04:13:10 UTC
Created attachment 954771 [details]
images.n.traces.tar.gz
Fixed by the upstream series ' [PATCH v4 0/7] block/qcow2: Improve zero cluster expansion' (see commit ecf58777). Too invasive for such a corner case bug at this point in 7.1. Moving to 7.2. $ qemu-img amend -o compat=0.10 -f qcow2 /tmp/copy.img qemu-img: Could not open '/tmp/copy.img': Could not open backing file: Unknown driver '%s%' /* With the backing file format manually changed to 'vdi' */ $ qemu-img amend -o compat=0.10 -f qcow2 /tmp/copy.img qcow2: Marking image as corrupt: Data cluster offset 0xfffffe00 unaligned (L2 offset: 0x211400, L2 index: 0x2e); further corruption events will be suppressed qemu-img: Error while amending options: Input/output error So this looks fixed due to the 2.3 rebase. Max Reproduced with qemu-kvm-rhev-2.1.2-23.el7.x86_64 steps: # qemu-img amend -o compat=0.10 -f qcow2 copy.img result: # qemu-img amend -o compat=0.10 -f qcow2 copy.img qemu-img: block/qcow2-cluster.c:1598: expand_zero_clusters_in_l1: Assertion `(cluster_index >= 0) && (cluster_index < *nb_clusters)' failed. Aborted (core dumped) So this bug is reproduced Verify this bug with qemu-kvm-rhev-2.3.0-6.el7.x86_64 # qemu-img amend -o compat=0.10 -f qcow2 copy.img qemu-img: Could not open 'copy.img': Could not open backing file: Unknown driver '%s%' So this bug is fixed on x86_64 platform 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. https://rhn.redhat.com/errata/RHBA-2015-2546.html |