linux/fs/hfs
Linus Torvalds d29fd593e6 hfs/hfsplus updates for v7.2
- hfs: rework hfsplus_readdir() logic
 - hfs: disable the updating of file access times (atime)
 - hfs: fix incorrect inode ID assignment in hfs_new_inode()
 - hfsplus: rework hfsplus_readdir() logic
 - hfs/hfsplus: zero-initialize buffer in hfs_bnode_read
 - hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length
 - hfsplus: Add a sanity check for btree node size
 - hfsplus: fix issue of direct writes beyond end-of-file
 - hfs/hfxplus: use kzalloc_flex()
 - hfsplus: Remove the duplicate attr inode dirty marking action
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQT4wVoLCG92poNnMFAhI4xTh21NnQUCai948AAKCRAhI4xTh21N
 nRpsAP9w+yaRu3llG6VUMnKBtBOVkWkVO2SPVn4DGiNPIq+f3QEAzJguenZ6dn8N
 /Yjznl4uwgZA1u86SM81mM8tLyICLwU=
 =RwOP
 -----END PGP SIGNATURE-----

Merge tag 'hfs-v7.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/vdubeyko/hfs

Pull hfs/hfsplus updates from Viacheslav Dubeyko:
 "Several fixes in HFS/HFS+ of syzbot reported issues and HFS//HFS+
  fixes of xfstests failures.

   - fix a null-ptr-deref issue reported by syzbot (Edward Adam Davis)

     If the attributes file is not loaded during system mount
     hfsplus_create_attributes_file can dereference a NULL pointer.

     Also, add a b-tree node size check in hfs_btree_open() with the
     goal to prevent an uninit-value bug reported by syzbot for the case
     of corrupted HFS+ image.

   - fix __hfs_bnode_create() by using kzalloc_flex() instead of
     kzalloc() (Rosen Penev)

   - fix early return in hfs_bnode_read() (Tristan Madani)

     hfs_bnode_read() can return early without writing to the output
     buffer when is_bnode_offset_valid() fails or when
     check_and_correct_requested_ length() corrects the length to zero.
     Callers such as hfs_bnode_read_ u16() and hfs_bnode_read_u8() pass
     stack-allocated buffers and use the result unconditionally, leading
     to KMSAN uninit-value reports.

  The rest fix (1) generic/637, generic/729 issue for the case of HFS+
  file system, (2) generic/003, generic/637 for the case of HFS file
  system"

* tag 'hfs-v7.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/vdubeyko/hfs:
  hfs: rework hfsplus_readdir() logic
  hfs: disable the updating of file access times (atime)
  hfs: fix incorrect inode ID assignment in hfs_new_inode()
  hfsplus: rework hfsplus_readdir() logic
  hfs/hfsplus: zero-initialize buffer in hfs_bnode_read
  hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length
  hfsplus: Add a sanity check for btree node size
  hfsplus: fix issue of direct writes beyond end-of-file
  hfs/hfxplus: use kzalloc_flex()
  hfsplus: Remove the duplicate attr inode dirty marking action
2026-06-16 12:27:23 +05:30
..
.kunitconfig hfs: introduce KUnit tests for HFS string operations 2025-11-19 14:53:59 -08:00
attr.c hfs: move hfs_xattr_handlers to .rodata 2023-10-09 16:24:19 +02:00
bfind.c hfs/hfsplus: prevent getting negative values of offset/length 2025-11-13 15:02:52 -08:00
bitmap.c hfs/hfsplus: rework debug output subsystem 2025-09-24 16:30:34 -07:00
bnode.c hfs/hfsplus: zero-initialize buffer in hfs_bnode_read 2026-05-07 15:07:20 -07:00
brec.c hfs/hfsplus: prevent getting negative values of offset/length 2025-11-13 15:02:52 -08:00
btree.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
btree.h hfs/hfsplus: move on-disk layout declarations into hfs_common.h 2025-11-25 15:16:03 -08:00
catalog.c hfs: rework hfsplus_readdir() logic 2026-05-27 11:24:05 -07:00
dir.c hfs/hfsplus updates for v7.2 2026-06-16 12:27:23 +05:30
extent.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
hfs_fs.h hfs/hfsplus updates for v7.2 2026-06-16 12:27:23 +05:30
hfs.h hfs: rework hfsplus_readdir() logic 2026-05-27 11:24:05 -07:00
inode.c hfs/hfsplus updates for v7.2 2026-06-16 12:27:23 +05:30
Kconfig hfs: introduce KUnit tests for HFS string operations 2025-11-19 14:53:59 -08:00
Makefile hfs: introduce KUnit tests for HFS string operations 2025-11-19 14:53:59 -08:00
mdb.c hfs: Replace BUG_ON with error handling for CNID count checks 2026-01-06 12:39:19 -08:00
part_tbl.c
string_test.c hfs: introduce KUnit tests for HFS string operations 2025-11-19 14:53:59 -08:00
string.c hfs: introduce KUnit tests for HFS string operations 2025-11-19 14:53:59 -08:00
super.c hfs: disable the updating of file access times (atime) 2026-05-19 15:04:27 -07:00
sysdep.c Pass parent directory inode and expected name to ->d_revalidate() 2025-01-27 19:25:23 -05:00
trans.c hfs: Fix OOB Write in hfs_asc2mac 2022-12-11 19:30:19 -08:00