aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMike Snitzer <[email protected]>2018-02-22 13:31:20 -0500
committerMike Snitzer <[email protected]>2018-03-06 20:23:57 -0500
commit519049afead4f7c3e6446028c41e99fde958cc04 (patch)
tree8f53318d846950f09877689d95535b8aa86c8743 /tools/perf/scripts/python/export-to-postgresql.py
parent590347e4000356f55eb10b03ced2686bd74dab40 (diff)
dm: use blkdev_get rather than bdgrab when issuing pass-through ioctl
Otherwise an underlying device's teardown (e.g. SCSI) may race with the DM ioctl or persistent reservation and result in dereferencing driver memory that gets freed when the underlying device's final blkdev_put() occurs. bdgrab() only increases the refcount for the block_device's inode to ensure the block_device struct itself will not be freed, but does not guarantee the block_device will remain associated with the gendisk or its storage. Cc: [email protected] # 4.8+ Reported-by: David Jeffery <[email protected]> Suggested-by: David Jeffery <[email protected]> Reviewed-by: Ben Marzinski <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions