Files
linux/block
Christoph Hellwig 692d062655 block: fix locking in bdev_del_partition
[ Upstream commit 08fc1ab6d7 ]

We need to hold the whole device bd_mutex to protect against
other thread concurrently deleting out partition before we get
to it, and thus causing a use after free.

Fixes: cddae808ae ("block: pass a hd_struct to delete_partition")
Reported-by: syzbot+6448f3c229bc52b82f69@syzkaller.appspotmail.com
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-09 19:14:20 +02:00
..
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:38 +02:00
2020-03-17 20:55:21 +01:00
2019-10-07 21:19:10 -06:00
2020-05-29 16:30:39 -06:00
2020-01-03 09:33:21 +01:00
2019-07-15 09:20:27 -03:00
2020-01-06 20:59:04 -07:00