diff options
| author | Christoph Hellwig <[email protected]> | 2020-09-01 09:59:41 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-09-01 14:35:35 +0000 |
| commit | 08fc1ab6d748ab1a690fd483f41e2938984ce353 (patch) | |
| tree | 7e141849aad3fc830215030bb9cf0cbe081a80f1 /net/switchdev/switchdev.c | |
| parent | block: release disk reference in hd_struct_free_work (diff) | |
| download | kernel-08fc1ab6d748ab1a690fd483f41e2938984ce353.tar.gz kernel-08fc1ab6d748ab1a690fd483f41e2938984ce353.zip | |
block: fix locking in bdev_del_partition
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: cddae808aeb7 ("block: pass a hd_struct to delete_partition")
Reported-by: [email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
