Comment 2 for bug 1818264

Revision history for this message
Matt Fleming (devpump) wrote :

[Impact]

During qemu-io VM disk read, there is a possibility for qemu-io to abort crashing the process running. This also crashes the VM the read is running against.

[Test Case]
Steps to reproduce outside of a block pull:

# qemu-img create -f qcow2 test 1024 2>&1
# qemu-io -f qcow2 -C -c 'read 0 1024' test

Error:
qemu-io: /build/qemu-Eap4uc/qemu-2.11+dfsg/block/io.c:1042: bdrv_co_do_copy_on_readv: Assertion `skip_bytes < pnum' failed.
Aborted (core dumped)

QEMU Test: https://github.com/qemu/qemu/blob/bf22957309369cf6f642e715ff6c470671920e7e/tests/qemu-iotests/197