aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-04-12 15:20:48 -0700
committerPaolo Bonzini <[email protected]>2021-04-20 04:18:50 -0400
commit2ee3757424be7c1cd1d0bbfa6db29a7edd82a250 (patch)
tree3eabada22014fdb94656ec8e897a922a7a05e1ad /tools/perf/scripts/python/stackcollapse.py
parent24e7475f931ad7090c1e63dbaf12f338aeb81eac (diff)
KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU
If allocating a new instance of an I/O bus fails when unregistering a device, wait to destroy the device until after all readers are guaranteed to see the new null bus. Destroying devices before the bus is nullified could lead to use-after-free since readers expect the devices on their reference of the bus to remain valid. Fixes: f65886606c2d ("KVM: fix memory leak in kvm_io_bus_unregister_dev()") Cc: [email protected] Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions