aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIsrael Rukshin <[email protected]>2020-03-24 17:29:41 +0200
committerKeith Busch <[email protected]>2020-03-26 04:51:56 +0900
commitb780d7415aacec855e2f2370cbf98f918b224903 (patch)
treec1ba48f4e31b554716d16cf8c4db24f831957fab /tools/perf/scripts/python/export-to-postgresql.py
parent253fd4ac806896293c9b9d12c794195447bad164 (diff)
nvme: Fix ctrl use-after-free during sysfs deletion
In case nvme_sysfs_delete() is called by the user before taking the ctrl reference count, the ctrl may be freed during the creation and cause the bug. Take the reference as soon as the controller is externally visible, which is done by cdev_device_add() in nvme_init_ctrl(). Also take the reference count at the core layer instead of taking it on each transport separately. Signed-off-by: Israel Rukshin <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions