linux/fs/hfs
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
.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 treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
brec.c hfs/hfsplus: prevent getting negative values of offset/length 2025-11-13 15:02:52 -08:00
btree.c hfs: port HFS+ b-tree bitmap corruption check 2026-07-20 12:17:57 -07:00
btree.h hfs: port HFS+ b-tree bitmap corruption check 2026-07-20 12:17:57 -07:00
catalog.c hfs: validate catalog CNIDs before instantiating inodes 2026-07-14 10:22:16 -07:00
dir.c vfs-7.3-rc1.misc 2026-08-17 12:56:12 -07:00
extent.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
hfs_fs.h hfs: rework MDB locking scheme 2026-07-27 20:25:30 -07:00
hfs.h hfs: rework hfsplus_readdir() logic 2026-05-27 11:24:05 -07:00
inode.c hfs: fix error code when writing beyond volume capacity 2026-07-14 10:24:56 -07:00
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: rework MDB locking scheme 2026-07-27 20:25:30 -07: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/hfsplus updates for v7.3 2026-08-17 18:14:32 -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