aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2022-11-15 22:10:53 +0800
committerJens Axboe <axboe@kernel.dk>2022-11-16 15:19:56 -0700
commit3b3449c1e6c3fe19f62607ff4f353f8bb82d5c4e (patch)
tree2582441eb9c850073343c9726fbeb1dde9e6f007 /tools/perf/scripts/python
parentblock: fix use after free for bd_holder_dir (diff)
downloadlinux-3b3449c1e6c3fe19f62607ff4f353f8bb82d5c4e.tar.gz
linux-3b3449c1e6c3fe19f62607ff4f353f8bb82d5c4e.zip
block: store the holder kobject in bd_holder_disk
We hold a reference to the holder kobject for each bd_holder_disk, so to make the code a bit more robust, use a reference to it instead of the block_device. As long as no one clears ->bd_holder_dir in before freeing the disk, this isn't strictly required, but it does make the code more clear and more robust. Orignally-From: Christoph Hellwig <hch@lst.de> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20221115141054.1051801-10-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions