fs/qnx6: fix buffer head leaks, double free, and inode validation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest6 patches 1 replyIn review
- v46 patches 5 repliesSuperseded
- v36 patches 1 replySuperseded
Changes in v5 from the cover letter
- 1/6: Restored commit description to accurately specify UBSAN shift-out-of-bounds reports at both shifts in qnx6_block_map() as requested by Matthias Goergens.
- 3/6: Used qs->sb_buf instead of sbi->sb_buf at label out: in qnx6_fill_super() to prevent reading uninitialized sbi when mounting mmi_fs images, fixing a general protection fault reported by Matthias.
- 4/6: Updated commit description to state that clearing sb_buf after brelse() is defensive cleanup.
- Collected Tested-by and Reviewed-by tags from Matthias Goergens.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | qnx6: validate di_filelevels in qnx6_iget() before accessing level pointersfs/ | +5 | 0 replies | |
| 2/6 | qnx6: release bh on error path in qnx6_block_map()fs/ | +3 | 0 replies | |
| 3/6 | qnx6: release bh on error path in qnx6_fill_super()fs/ | +4 | 0 replies | |
| 4/6 | qnx6: clear sb_buf after brelse in qnx6_mmi_fill_super()fs/ | +1 | 0 replies | |
| 5/6 | qnx6: abort mount on superblock magic mismatch when silent is set in qnx6_mmi_fill_super()fs/ | +2 | 0 replies | |
| 6/6 | qnx6: validate sb_blocksize before dividing in qnx6_mmi_fill_super()fs/ | +2 | 0 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Matthias Goergens |
|---|---|
| 1/6 | T-b |
| 2/6 | R-b T-b |
| 3/6 | |
| 4/6 | |
| 5/6 | R-b 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 v5 0/6] fs/qnx6: fix buffer head leaks, double free, and inode validation
This series addresses buffer head memory leaks, uninitialized pointer reads, out-of-bounds array access, and superblock validation issues in the qnx6 filesystem driver.
All patches have been ported to the latest tip of mainline (551c722f4080) and verified in QEMU KVM with CONFIG_KASAN=y and UBSAN enabled.
Changes in v5:
- 1/6: Restored commit description to accurately specify UBSAN shift-out-of-bounds reports at both shifts in qnx6_block_map() as requested by Matthias Goergens.
- 3/6: Used qs->sb_buf instead of sbi->sb_buf at label out: in qnx6_fill_super() to prevent reading uninitialized sbi when mounting mmi_fs images, fixing a general protection fault reported by Matthias.
- 4/6: Updated commit description to state that clearing sb_buf after brelse() is defensive cleanup.
- Collected Tested-by and Reviewed-by tags from Matthias Goergens.
Hui Peng (6):
qnx6: validate di_filelevels in qnx6_iget() before accessing level
pointers
qnx6: release bh on error path in qnx6_block_map()
qnx6: release bh on error path in qnx6_fill_super()
qnx6: clear sb_buf after brelse in qnx6_mmi_fill_super()
qnx6: abort mount on superblock magic mismatch when silent is set in
qnx6_mmi_fill_super()
qnx6: validate sb_blocksize before dividing in qnx6_mmi_fill_super()
fs/qnx6/inode.c | 18 +++++++++++++++--- fs/qnx6/super_mmi.c | 7 ++++++- 2 files changed, 21 insertions(+), 4 deletions(-)
Signature · 1 line
2.47.3