summaryrefslogtreecommitdiff
path: root/pc-bios
diff options
context:
space:
mode:
authorLadi Prosek <lprosek@redhat.com>2017-05-30 10:59:43 +0200
committerMichael Roth <mdroth@linux.vnet.ibm.com>2017-08-03 16:01:28 -0500
commit11bac2f941db77de1aab79e4a74374fa0c6c6107 (patch)
treee44e44665d35333f9658de3db5af70f99c1a01aa /pc-bios
parent0ebbef1fa11a19296037695d37053dc18f0d89db (diff)
downloadqemu-11bac2f941db77de1aab79e4a74374fa0c6c6107.tar.gz
virtio-serial-bus: Unset hotplug handler when unrealize
Virtio serial device controls the lifetime of virtio-serial-bus and virtio-serial-bus links back to the device via its hotplug-handler property. This extra ref-count prevents the device from getting finalized, leaving the VirtIODevice memory listener registered and leading to use-after-free later on. This patch addresses the same issue as Fam Zheng's "virtio-scsi: Unset hotplug handler when unrealize" only for a different virtio device. Cc: qemu-stable@nongnu.org Signed-off-by: Ladi Prosek <lprosek@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> (cherry picked from commit f811f97040a48358b456b46ecbc9167f0131034f) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'pc-bios')
0 files changed, 0 insertions, 0 deletions