hfs/hfsplus changes for 6.17-rc1
Hello Linus,
Currently, we have around 221 opened issues in HFS/HFS+ file system drivers. Mostly, xfstests reveal majority of the issues and multiple tests leave HFS/HFS+ volume in corrupted state.
Johannes Thumshirn has made nice cleanup in hfsplus_submit_bio(). Tetsuo Handa has fixed the syzbot reported issue in hfsplus_create_attributes_file() for the case of corruption the Attributes File's metadata. Yangtao Li has fixed the syzbot reported issue by removing the uneccessary WARN_ON() in hfsplus_free_extents().
The rest patches contains fixes:
(1) restoring generic/001 successful execution by erasing deleted b-tree nodes;
(2) eliminating slab-out-of-bounds issue in hfs_bnode_read() and hfsplus_bnode_read() by checking correctness of offset and length by operation of accessing b-tree node's content;
(3) eliminating slab-out-of-bounds read in hfsplus_uni2asc() for the case if b-tree node's record has corrupted length of a name that could be bigger than HFSPLUS_MAX_STRLEN;
(4) eliminating general protection fault in hfs_find_init() for the case of initial b-tree object creation.
The following changes since commit19272b37aa4f83ca52bdf9c16d5d81bdd1354494:
Linux 6.16-rc1 (2025-06-08 13:44:43 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/vdubeyko/hfs.git
tags/hfs-v6.17-tag1
for you to fetch changes up to736a0516a16268995f4898eded49bfef077af709:
hfs: fix general protection fault in hfs_find_init() (2025-07-25
15:40:16 -0700)
----------------------------------------------------------------
hfs/hfsplus updates for v6.17
- hfs: fix general protection fault in hfs_find_init()
- hfs: fix slab-out-of-bounds in hfs_bnode_read()
- hfsplus: fix slab-out-of-bounds in hfsplus_bnode_read()
- hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc()
- hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file()
- hfsplus: don't set REQ_SYNC for hfsplus_submit_bio()
- hfsplus: remove mutex_lock check in hfsplus_free_extents
- hfs: make splice write available again
- hfsplus: make splice write available again
- hfs: fix not erasing deleted b-tree node issue
----------------------------------------------------------------
Johannes Thumshirn (1):
hfsplus: don't set REQ_SYNC for hfsplus_submit_bio()
Tetsuo Handa (1):
hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file()
Viacheslav Dubeyko (5):
hfs: fix not erasing deleted b-tree node issue
hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc()
hfsplus: fix slab-out-of-bounds in hfsplus_bnode_read()
hfs: fix slab-out-of-bounds in hfs_bnode_read()
hfs: fix general protection fault in hfs_find_init()
Yangtao Li (3):
hfsplus: make splice write available again
hfs: make splice write available again
hfsplus: remove mutex_lock check in hfsplus_free_extents
fs/hfs/bfind.c | 3 ++ fs/hfs/bnode.c | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++ fs/hfs/btree.c | 57 +++++++++++++++++++++++++------- fs/hfs/extent.c | 2 +- fs/hfs/hfs_fs.h | 1 + fs/hfs/inode.c | 1 + fs/hfsplus/bnode.c | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++ fs/hfsplus/extents.c | 3 -- fs/hfsplus/inode.c | 1 + fs/hfsplus/super.c | 6 ++-- fs/hfsplus/unicode.c | 7 ++++ fs/hfsplus/xattr.c | 6 +++- 12 files changed, 252 insertions(+), 20 deletions(-)
The pull request you sent on Mon, 28 Jul 2025 11:43:32 -0700:
The pull request you sent on Mon, 28 Jul 2025 11:43:32 -0700:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/vdubeyko/hfs.gittags/hfs-v6.17-tag1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/cb6bbff7e6fb263dd739514b3f5dfdcd8eaa9836
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html