qemu-e2k/hw/scsi
Fam Zheng 2cbe2de545 virtio-scsi: Unset hotplug handler when unrealize
This matches the qbus_set_hotplug_handler in realize, and it releases
the final reference to the embedded VirtIODevice so that it is
properly finalized.

A use-after-free is fixed with this patch, indirectly:
virtio_device_instance_finalize wasn't called at hot-unplug, and the
vdev->listener would be a dangling pointer in the global and the per
address space listener list. See also RHBZ 1449031.

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170518102808.30046-1-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-06-06 20:18:36 +02:00
..
esp-pci.c
esp.c
lsi53c895a.c scsi/lsi53c895a: Remove unused lsi_mem_*() return value 2017-06-04 18:42:55 +03:00
Makefile.objs vhost-scsi: create a vhost-scsi-common abstraction 2017-05-05 12:10:00 +02:00
megasas.c
mfi.h
mpi.h
mptconfig.c
mptendian.c
mptsas.c
mptsas.h
scsi-bus.c
scsi-disk.c
scsi-generic.c
spapr_vscsi.c
srp.h
trace-events
vhost-scsi-common.c vhost-scsi: create a vhost-scsi-common abstraction 2017-05-05 12:10:00 +02:00
vhost-scsi.c migration: Create migration/blocker.h 2017-05-17 12:04:59 +02:00
viosrp.h
virtio-scsi-dataplane.c
virtio-scsi.c virtio-scsi: Unset hotplug handler when unrealize 2017-06-06 20:18:36 +02:00
vmw_pvscsi.c vmw_pvscsi: check message ring page count at initialisation 2017-05-05 12:09:59 +02:00
vmw_pvscsi.h