block: fix partition use-after-free and optimization
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 2 repliesIn review
- v24 patches 4 repliesSuperseded
- v14 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- add reviewed-by tag
- centralize partno check in the helper(4/4)
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | block: fix use-after-free on cached last_lookup partitionblock/ block/ block/ | +23 | 0 replies | |
| 2/4 | block: only define 'nr_sects_seq' in hd_part for 32bit SMPblock/ block/ include/ | +11 | 0 replies | |
| 3/4 | block: re-organize fields of 'struct hd_part'include/ | +8 | 0 replies | |
| 4/4 | block: don't hold part0's refcount in IO pathblock/ block/ | +8 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V3 0/4] block: fix partition use-after-free and optimization
Hi,
The 1st patch fixes one use-after-free on cached last_lookup partition.
The other 3 patches optimizes partition uses in IO path.
V3:
- add reviewed-by tag
- centralize partno check in the helper(4/4)
V2:
- add comment, use part_to_disk() to retrieve disk instead of adding one field to hd_struct
- don't put part in blk_account_io_merge
Ming Lei (4):
block: fix use-after-free on cached last_lookup partition
block: only define 'nr_sects_seq' in hd_part for 32bit SMP
block: re-organize fields of 'struct hd_part'
block: don't hold part0's refcount in IO path
block/blk-core.c | 12 ------------ block/blk.h | 13 ++++++------- block/genhd.c | 17 +++++++++++++---- block/partitions/core.c | 14 ++++++++++++-- include/linux/genhd.h | 24 +++++++++++++++++------- 5 files changed, 48 insertions(+), 32 deletions(-)
Signature · 1 line
2.25.2