Package: qemu-kvm
Version: 1:2.1+dfsg-12+deb8u6
Severity: critical
Justification: breaks the whole system

Dear Maintainer,

Over the course of the past few weeks, a guest KVM instance that relies on USB 
pass through has been found in the powered off state. Restarting it shows that 
it has been hard powered off.

This is now reproducible with the connected RFXCom hardware. 

Guest OS = Debian Jessie
Host OS = Debian Jessie

Start guest machine, and configure USB pass through. In this case, it's for an 
RFXCom USB radio transceiver. Device is correctly detected in the guest, and 
shows up as expected in lsusb.
Start software that accesses the device. In this case, Domoticz home automation 
software.
Within a few minutes, the machine will be hard powered off. The following logs 
are present on the host.

2017-01-01 23:40:27.179+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 
QEMU_AUDIO_DRV=spice /usr/bin/kvm -name homeauto -S -machine 
pc-i440fx-2.1,accel=kvm,usb=off -m 6144 -realtime mlock=off -smp 
2,sockets=2,cores=1,threads=1 -uuid a79858f4-274e-425f-aece-98c14dc8fbc6 
-no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/homeauto.monitor,server,nowait 
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew 
-global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global 
PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device 
piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device 
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive 
file=/media/store/KVM_VMs/homeauto-new.qcow2,if=none,id=drive-virtio-disk0,format=qcow2
 -device 
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
 -drive file=/media/store/KVM_VMs/homeauto-new-1.qcow2,if=none,id=drive-virti
 o-disk1,format=qcow2 -device 
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x9,drive=drive-virtio-disk1,id=virtio-disk1
 -drive 
file=/media/store/KVM_VMs/homeauto-new-3.qcow2,if=none,id=drive-virtio-disk2,format=qcow2
 -device 
virtio-blk-pci,scsi=off,bus=pci.0,addr=0xa,drive=drive-virtio-disk2,id=virtio-disk2
 -netdev tap,fd=28,id=hostnet0,vhost=on,vhostfd=29 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:38:01:2d,bus=pci.0,addr=0x3 
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-chardev spicevmc,id=charchannel0,name=vdagent -device 
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
 -device usb-tablet,id=input0 -spice 
port=5904,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device 
qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,bus=pci.0,addr=0x2 
-device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device 
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev 
spicevmc,id=charredir0,name=usbr
 edir -device usb-redir,chardev=charredir0,id=redir0 -chardev 
spicevmc,id=charredir1,name=usbredir -device 
usb-redir,chardev=charredir1,id=redir1 -chardev 
spicevmc,id=charredir2,name=usbredir -device 
usb-redir,chardev=charredir2,id=redir2 -chardev 
spicevmc,id=charredir3,name=usbredir -device 
usb-redir,chardev=charredir3,id=redir3 -device 
usb-host,hostbus=6,hostaddr=4,id=hostdev0 -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 -msg timestamp=on
char device redirected to /dev/pts/1 (label charserial0)
main_channel_link: add main channel client
main_channel_handle_parsed: net test: latency 2.497000 ms, bitrate 41698055 bps 
(39.766364 Mbps)
red_dispatcher_set_cursor_peer: 
inputs_connect: inputs channel client create

=== Normal behaviour until Domoticz is started...  ===

qemu-system-x86_64: /build/qemu-XXUWBP/qemu-2.1+dfsg/hw/usb/core.c:600: 
usb_packet_copy: Assertion `p->actual_length + bytes <= iov->size' failed.
2017-01-01 23:42:30.995+0000: shutting down

I have tried 2.7+dfsg-3~bpo8+2 from jessie-backports, but the behaviour is the 
same.

Unsure where to try next. 

Regards

Kyle

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages qemu-kvm depends on:
ii  qemu-system-x86  1:2.1+dfsg-12+deb8u6

qemu-kvm recommends no packages.

qemu-kvm suggests no packages.

-- no debconf information

Reply via email to