Activity log for bug #1912846

Date Who What changed Old value New value Message
2021-01-22 20:00:50 Eugenio Pérez bug added bug
2021-01-22 20:02:04 Eugenio Pérez description From commit ("2d24a646 device-core: use RCU for list of children of a bus") an assertion is hit when removing a device, since mr->listeners are not properly removed. To reproduce: /home/qemu/build/x86_64-softmmu/qemu-system-x86_64 -qmp tcp:0:4444,server,nowait ... \ -netdev tap,id=hostnet0,vhostforce=on,vhost=on \ -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:14:18:cc,bus=pci.1,addr=0x0,iommu_platform=on,ats=on In QMP: {'execute': 'qmp_capabilities'} {"execute": "device_del", "arguments": {"id": "net0"} } And crash: ../softmmu/memory.c:2818: do_address_space_destroy: Assertion `QTAILQ_EMPTY(&as->listeners)' failed. From commit ("2d24a646 device-core: use RCU for list of children of a bus") an assertion is hit when removing a device, since as->listeners are not properly removed. To reproduce: /home/qemu/build/x86_64-softmmu/qemu-system-x86_64 -qmp tcp:0:4444,server,nowait ... \     -netdev tap,id=hostnet0,vhostforce=on,vhost=on \     -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:14:18:cc,bus=pci.1,addr=0x0,iommu_platform=on,ats=on In QMP: {'execute': 'qmp_capabilities'} {"execute": "device_del", "arguments": {"id": "net0"} } And crash: ../softmmu/memory.c:2818: do_address_space_destroy: Assertion `QTAILQ_EMPTY(&as->listeners)' failed.
2021-01-22 20:04:55 Eugenio Pérez description From commit ("2d24a646 device-core: use RCU for list of children of a bus") an assertion is hit when removing a device, since as->listeners are not properly removed. To reproduce: /home/qemu/build/x86_64-softmmu/qemu-system-x86_64 -qmp tcp:0:4444,server,nowait ... \     -netdev tap,id=hostnet0,vhostforce=on,vhost=on \     -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:14:18:cc,bus=pci.1,addr=0x0,iommu_platform=on,ats=on In QMP: {'execute': 'qmp_capabilities'} {"execute": "device_del", "arguments": {"id": "net0"} } And crash: ../softmmu/memory.c:2818: do_address_space_destroy: Assertion `QTAILQ_EMPTY(&as->listeners)' failed. From commit ("2d24a646 device-core: use RCU for list of children of a bus") an assertion is hit when removing a iommu aware virtio device, since as->listeners are not properly removed. To reproduce: /home/qemu/build/x86_64-softmmu/qemu-system-x86_64 -qmp tcp:0:4444,server,nowait ... \     -netdev tap,id=hostnet0,vhostforce=on,vhost=on \     -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:14:18:cc,bus=pci.1,addr=0x0,iommu_platform=on,ats=on In QMP: {'execute': 'qmp_capabilities'} {"execute": "device_del", "arguments": {"id": "net0"} } And crash: ../softmmu/memory.c:2818: do_address_space_destroy: Assertion `QTAILQ_EMPTY(&as->listeners)' failed.
2021-01-22 20:05:00 Eugenio Pérez summary Assertion hit on hot-unplugging iommu enabled device Assertion hit on hot-unplugging virtio iommu enabled device
2021-04-30 09:02:16 Thomas Huth qemu: status New Fix Released