QEMU 2.11.1 VM crash when performing block pull. bdrv_co_do_copy_on_readv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[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.
* Backport upstream fix from
[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
Without the fix:
Error:
qemu-io: /build/
bdrv_
Aborted (core dumped)
With fix:
read 1024/1024 bytes at offset 0
1 KiB, 1 ops; 0.0045 sec (220.604 KiB/sec and 220.6045 ops/sec)
[Regression Potential]
* The change is small and unchanged since two releases which indicates it
is rather stable. The only thing it adds is a safety check on ret&&pnum
being zero to leave the loop.
The only related regression I could think of is leaving the loop too
early, but when pnum==0 it has nothing more to write, so there should
be no issue to leave.
[Other Info]
* n/a
---
When attempting to do a blockpull the following error occurs and the VM crashes.
qemu-system-x86_64: /build/
2019-02-17 17:38:27.820+0000: shutting down, reason=crashed
This appears to be fixed upstream.
https:/
https:/
CVE References
affects: | qemu-kvm (Ubuntu) → qemu (Ubuntu) |
Changed in qemu (Ubuntu): | |
status: | Incomplete → Triaged |
status: | Triaged → Fix Released |
Changed in qemu (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in qemu (Ubuntu Cosmic): | |
status: | New → Triaged |
@DevPump - I think I can work on that along a general 2.11.2 upgrade which is comming sooner or later.
But I'd need you to provide some good steps on how to recreate and test/verify this to make [1] look usable on this bugs description.
Do you think you could provide as much as you can of [1] but at least a detailed howto, how to trigger the issue?
[1]: https:/ /wiki.ubuntu. com/StableRelea seUpdates# SRU_Bug_ Template