FS#60141 - [qemu] OpenBSD with virtio networking causes qemu to crash

Attached to Project: Arch Linux
Opened by viq (viq) - Thursday, 20 September 2018, 19:26 GMT
Last edited by Anatol Pomozov (anatolik) - Sunday, 14 October 2018, 21:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Anatol Pomozov (anatolik)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Starting network in OpenBSD guest configured with virtio network causes whole qemu process to crash, verified on two different machines. Same configuration works on downgraded qemu 2.12.1-1

Additional info:
libvirt 4.6.0-3
qemu 3.0.0-1
linux-hardened 4.18.8.a-1


Steps to reproduce:
Download for example https://ftp.halifax.rwth-aachen.de/pub/OpenBSD/6.3/amd64/install63.iso
Create new VM under libvirt as OpenBSD 6.3, create disk, "change options before installation", change disk and network types to virtio
Proceed with installation (basically enter-enter-enter-...)
Observe qemu crash when network is brought up.
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Sunday, 14 October 2018, 21:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  qemu-3.0.0-3
Comment by Anatol Pomozov (anatolik) - Wednesday, 03 October 2018, 18:11 GMT
It is not clear if the issue is related to Arech build configuration. I suggest to start debugging this issue with qemu developers. Could you please post your issue to qemu-devel maillist?
Comment by viq (viq) - Wednesday, 10 October 2018, 12:18 GMT Comment by viq (viq) - Wednesday, 10 October 2018, 15:37 GMT
And more specifically https://marc.info/?l=qemu-devel&m=153635729122442&w=2 :

"Because the cache is sized to include the rings and the event indices,
negotiating the VIRTIO_RING_F_EVENT_IDX feature will result in the size
of the cache changing. And because MemoryRegionCache accesses are
range-checked, if we skip this we end up with an assertion failure.
This happens with OpenBSD 6.3."
Comment by Anatol Pomozov (anatolik) - Wednesday, 10 October 2018, 17:42 GMT
I pulled the patch and built qemu-3.0.0-3 that is in [testing] now. Please check if it fixes your issue.
Comment by viq (viq) - Sunday, 14 October 2018, 20:41 GMT
I haven't had a chance to try on "production", but I confirm that installation image doesn't crash on enabling network anymore.

Loading...