FS#52258 - [qemu] 2.8.0 crashes with USB redirection

Attached to Project: Arch Linux
Opened by Dragoon Aethis (DragoonAethis) - Saturday, 24 December 2016, 11:00 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 29 April 2017, 14:09 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: As of qemu 2.8.0 (upgraded yesterday) trying to redirect any USB device with libvirt causes qemu crash, logs say:

qemu-system-x86_64: /build/qemu/src/qemu-2.8.0/hw/usb/core.c:619: usb_packet_cleanup: Assertion `!usb_packet_is_inflight(p)' failed.
2016-12-23 23:08:31.420+0000: shutting down, reason=crashed

Occurs on rather long-lived VMs and fresh ones.

Packages:
- qemu 2.8.0-1
- libvirt 2.4.0-2
- virt-manager 1.4.0-2
- linux-ck-skylake 4.8.15-2

Not sure if this should be reported to upstream instead?
This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 29 April 2017, 14:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  qemu 2.9.0-1
Comment by Dragoon Aethis (DragoonAethis) - Saturday, 24 December 2016, 11:01 GMT
This happens when qemu is started (by libvirt) with USB redirection right away or has devices added on the fly with VMs online. Devices attached to the VM do not get reattached to the host.
Comment by Petteri Lehtonen (captaincarpet) - Saturday, 24 December 2016, 21:35 GMT
I get this excact same behavior with the same packages, except I'm on default kernel (4.8.13-1-ARCH).
Though if I pass a whole USB controller, it works as expected. Also Spice USB redirection works.
Comment by Bjorn Neergaard (neersighted) - Sunday, 25 December 2016, 05:00 GMT
I can confirm the same behavior on ARCH 4.8.13-1 and 4.9-1, as well as CK 4.8.15-2.
Comment by Rasmus S (rasmusx) - Sunday, 25 December 2016, 16:50 GMT
Can also confirm to have same problem after qemu 2.8.0 upgrade.

Packages:
qemu-2.8.0-1
linux-vfio-4.8.13-1
libvirt-2.4.0-2
virt-manager-1.4.0-2

Downgrading back to qemu-2.7.0-3 as temporary solution.
Comment by Lily (voidlily) - Wednesday, 11 January 2017, 07:03 GMT
Downgrading to 2.7.0 was a successful workaround for me as well.
Comment by Bjorn Neergaard (neersighted) - Friday, 31 March 2017, 17:13 GMT
Just wanted to note that a fix has been committed to upstream:
https://bugs.launchpad.net/qemu/+bug/1653384
Comment by Dragoon Aethis (DragoonAethis) - Saturday, 22 April 2017, 12:00 GMT
Still broken as of 2.8.1:

qemu-system-x86_64: /build/qemu/src/qemu-2.8.1/hw/usb/core.c:619: usb_packet_cleanup: Assertion `!usb_packet_is_inflight(p)' failed.

Although 2.9 is released already and the patch is in there. 2.8.1.1 is out too, but doesn't contain the fix.
Comment by Dragoon Aethis (DragoonAethis) - Saturday, 22 April 2017, 22:00 GMT
2.9.0-1 from [testing] solves this problem.

Loading...