Skip to contentSkip to conversation

qemu-img: 'amend -o compat=0.10' command failed with segfault on the fuzzed image

Qemu-devel Maria Kustova 2 participants 4 messages Aug 15, 2014 – Jun 27, 2016

lore
Share & tools
lore
#0 lore raw

Public bug reported:

qemu-img amend -o compat=0.10' failed with a segmentation fault on the fuzzed image.

Sequence:
1. Unpack the attached archive, make a copy of test.img
2. Put copy.img and backing_img.qed in the same directory
3. Execute
qemu-img amend -o compat=0.10 -f qcow2 copy.img

Result: qemu-img was killed by SIGSEGV.

Traces can be found in the attached archive.

qemu.git HEAD 2d591ce2aeebf

** Affects: qemu
Importance: Undecided
Status: New

** Attachment added: "images.n.traces.tar.gz"
https://bugs.launchpad.net/bugs/1357445/+attachment/4178587/+files/images.n.traces.tar.gz

Signature · 29 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1357445

Title:
  qemu-img: 'amend -o compat=0.10' command failed with segfault on the
  fuzzed image

Status in QEMU:
  New

Bug description:
  qemu-img amend -o compat=0.10' failed with a segmentation fault on the
  fuzzed image.

  Sequence:
   1. Unpack the attached archive, make a copy of test.img
   2. Put copy.img and backing_img.qed in the same directory
   3. Execute
     qemu-img amend -o compat=0.10 -f qcow2 copy.img

  Result: qemu-img was killed by SIGSEGV.

  Traces can be found in the attached archive.

  qemu.git HEAD 2d591ce2aeebf

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1357445/+subscriptions
#1 lore raw

Hi,

being on 2d591ce2aeebf, I rather receive "qemu-img: Error while amending
options: File too large". Judging from the traces, though, this issue (the segfault at least) should be fixed by my "[PATCH v3 0/7] block/qcow2: Improve zero cluster expansion" series anyway (when merged eventually).

Max

Signature · 29 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1357445

Title:
  qemu-img: 'amend -o compat=0.10' command failed with segfault on the
  fuzzed image

Status in QEMU:
  New

Bug description:
  qemu-img amend -o compat=0.10' failed with a segmentation fault on the
  fuzzed image.

  Sequence:
   1. Unpack the attached archive, make a copy of test.img
   2. Put copy.img and backing_img.qed in the same directory
   3. Execute
     qemu-img amend -o compat=0.10 -f qcow2 copy.img

  Result: qemu-img was killed by SIGSEGV.

  Traces can be found in the attached archive.

  qemu.git HEAD 2d591ce2aeebf

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1357445/+subscriptions
#2 lore raw
In reply to Maria Kustova

Hi,

Well, I still (on 2.2.0-rc2) receive "File too large", so I guess that's the fix.

Max

** Changed in: qemu
Status: New => Fix Committed

Signature · 29 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1357445

Title:
  qemu-img: 'amend -o compat=0.10' command failed with segfault on the
  fuzzed image

Status in QEMU:
  Fix Committed

Bug description:
  qemu-img amend -o compat=0.10' failed with a segmentation fault on the
  fuzzed image.

  Sequence:
   1. Unpack the attached archive, make a copy of test.img
   2. Put copy.img and backing_img.qed in the same directory
   3. Execute
     qemu-img amend -o compat=0.10 -f qcow2 copy.img

  Result: qemu-img was killed by SIGSEGV.

  Traces can be found in the attached archive.

  qemu.git HEAD 2d591ce2aeebf

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1357445/+subscriptions
#3 lore raw
In reply to Maria Kustova

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 29 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1357445

Title:
  qemu-img: 'amend -o compat=0.10' command failed with segfault on the
  fuzzed image

Status in QEMU:
  Fix Released

Bug description:
  qemu-img amend -o compat=0.10' failed with a segmentation fault on the
  fuzzed image.

  Sequence:
   1. Unpack the attached archive, make a copy of test.img
   2. Put copy.img and backing_img.qed in the same directory
   3. Execute
     qemu-img amend -o compat=0.10 -f qcow2 copy.img

  Result: qemu-img was killed by SIGSEGV.

  Traces can be found in the attached archive.

  qemu.git HEAD 2d591ce2aeebf

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1357445/+subscriptions