[PATCH -nect RFC v2 0/2] block: fix uaf in bd_link_disk_holder()
From: Yu Kuai
Date: Thu Oct 20 2022 - 08:58:55 EST
Changes in v2:
- in order to know when bd_holder_dir will be freed, instead of changing
kobject_put(), add a new field in block_device.
Yu Kuai (2):
block: add helpers for bd_holder_dir refcount management
block: fix uaf for bd_holder_dir
block/blk.h | 3 +++
block/genhd.c | 33 ++++++++++++++++++++++++++++++++-
block/holder.c | 19 +++++++++++++------
block/partitions/core.c | 5 ++++-
include/linux/blk_types.h | 1 +
5 files changed, 53 insertions(+), 8 deletions(-)
--
2.31.1