mbox series

[RFC,0/2] block: fix uaf in bd_link_disk_holder()

Message ID 20221018131432.434167-1-yukuai3@huawei.com (mailing list archive)
Headers show
Series block: fix uaf in bd_link_disk_holder() | expand

Message

Yu Kuai Oct. 18, 2022, 1:14 p.m. UTC
Yu Kuai (2):
  kobject: add return value for kobject_put()
  block: protect slave_dir/bd_holder_dir by open_mutex

 block/genhd.c           |  8 ++++++--
 block/holder.c          | 13 ++++++++++++-
 block/partitions/core.c |  5 ++++-
 include/linux/kobject.h |  2 +-
 lib/kobject.c           |  7 +++++--
 5 files changed, 28 insertions(+), 7 deletions(-)