diff options
author | Michael S. Tsirkin <[email protected]> | 2016-01-14 16:00:41 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2016-01-26 10:18:28 +0200 |
commit | 2989be09a8a9d62a785137586ad941f916e08f83 (patch) | |
tree | 91fc1b8002e4c9868d0e692dd6b4039e965c9a36 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
virtio_pci: fix use after free on release
KASan detected a use-after-free error in virtio-pci remove code. In
virtio_pci_remove(), vp_dev is still used after being freed in
unregister_virtio_device() (in virtio_pci_release_dev() more
precisely).
To fix, keep a reference until cleanup is done.
Fixes: 63bd62a08ca4 ("virtio_pci: defer kfree until release callback")
Reported-by: Jerome Marchand <[email protected]>
Cc: [email protected]
Cc: Sasha Levin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Tested-by: Jerome Marchand <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions