[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221020132049.3947415-1-yukuai3@huawei.com>
Date: Thu, 20 Oct 2022 21:20:47 +0800
From: Yu Kuai <yukuai3@...wei.com>
To: <axboe@...nel.dk>, <hch@....de>, <willy@...radead.org>,
<kch@...dia.com>, <martin.petersen@...cle.com>,
<johannes.thumshirn@....com>, <yukuai3@...wei.com>,
<ming.lei@...hat.com>
CC: <linux-block@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<yukuai1@...weicloud.com>, <yi.zhang@...wei.com>
Subject: [PATCH -nect RFC v2 0/2] block: fix uaf in bd_link_disk_holder()
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
Powered by blists - more mailing lists