block: Fix races in bdev - gendisk handling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 4 repliesIn review
- v16 patches 3 repliesSuperseded
Changes in v2 from the cover letter
* Added tested-by tags
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | genhd: Fix leaked module reference for NVME devicesblock/ | +3 | 1 reply | |
| 2/6 | genhd: Rename get_disk() to get_disk_and_module()block/ drivers/ drivers/ +7 more | +13 | 0 replies | |
| 3/6 | genhd: Add helper put_disk_and_module()block/ block/ fs/ +1 more | +24 | 0 replies | |
| 4/6 | genhd: Fix use after free in __blkdev_get()fs/ | +5 | 0 replies | |
| 5/6 | genhd: Fix BUG in blkdev_open()block/ include/ | +21 | 0 replies | |
| 6/6 | blockdev: Avoid two active bdev inodes for one devicefs/ | +23 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Hou Tao | Christoph Hellwig |
|---|---|---|
| 1/6 | R-b | |
| 2/6 | ||
| 3/6 | ||
| 4/6 | T-b | |
| 5/6 | Reported-and-analyzed-by T-b | |
| 6/6 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6 v2] block: Fix races in bdev - gendisk handling
Hello,
these patches fix races happening when devices are frequently destroyed and recreated in association of block device inode with corresponding gendisk. Generally when such race happen it results in use-after-free issues, block device page cache inconsistencies, or other problems. I have verified these patches fix use-after-free issues that could be reproduced by frequent creation and destruction of loop device. Hou Tao has verified that races reported by him in [1] related to gendisk-blkdev association were also fixed. Jens, can you please merge these patches? Thanks!
Changes since v1:
* Added tested-by tags
Honza