linux/fs/ceph
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>
History 2026-09-04 21:37:00 -07:00
..
acl.c posix_acl: make posix_acl_to_xattr() alloc the buffer 2026-01-16 10:51:12 +01:00
addr.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
cache.c ceph: use the new ->i_state accessors 2025-10-20 20:22:27 +02:00
cache.h netfs: Provide invalidate_folio and release_folio calls 2023-12-24 15:08:51 +00:00
caps.c ceph: force a cap message when a deferred revoke can't be acked immediately 2026-08-26 19:57:29 +02:00
ceph_frag.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
crypto.c ceph: properly decrypt filenames in vmalloc() buffers 2026-08-26 19:25:10 +02:00
crypto.h ceph: pass fscrypt tname buffers directly 2026-08-26 19:24:19 +02:00
debugfs.c ceph: add manual reset debugfs control and tracepoints 2026-06-22 22:45:05 +02:00
dir.c A wide variety of mostly CephFS fixes and cleanups, split between 2026-08-28 11:51:05 -07:00
export.c ceph: bound copied dentry name length in NFS export get_name 2026-08-26 19:57:27 +02:00
file.c ceph: make nearfull sync writes opt-in 2026-08-26 19:57:28 +02:00
inode.c ceph: do not cache negative dentries for snapped directories 2026-08-26 19:57:26 +02:00
io.c ceph: fix potential race condition on operations with CEPH_I_ODIRECT flag 2025-10-08 23:30:46 +02:00
io.h ceph: make ceph_start_io_*() killable 2025-10-08 23:30:46 +02:00
ioctl.c ceph: use the mount idmap for the owner checks in the SET_LAYOUT ioctls 2026-08-12 21:21:41 +02:00
ioctl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig ceph: stop selecting CRC32, CRYPTO, and CRYPTO_AES 2025-12-10 11:50:54 +01:00
locks.c ceph: add client reset state machine and session teardown 2026-06-22 22:45:00 +02:00
Makefile ceph: add subvolume metrics collection and reporting 2026-04-22 01:40:23 +02:00
mds_client.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
mds_client.h ceph: cap delegated inode count in ceph_parse_deleg_inos() 2026-08-26 19:57:27 +02:00
mdsmap.c ceph: reject export_targets ranks >= CEPH_MAX_MDS in mdsmap decode 2026-08-26 19:57:29 +02:00
mdsmap.h ceph: fix NULL pointer dereference in ceph_mds_auth_match() 2026-02-04 22:00:42 +01:00
metric.c ceph: add subvolume metrics collection and reporting 2026-04-22 01:40:23 +02:00
metric.h ceph: add subvolume metrics collection and reporting 2026-04-22 01:40:23 +02:00
quota.c ceph: add ceph_has_realms_with_quotas() check to ceph_quota_update_statfs() 2026-05-11 10:39:22 +02:00
snap.c ceph: convert inode flags to named bit positions and atomic bitops 2026-06-22 22:44:42 +02:00
strings.c ceph: add getvxattr op 2022-03-01 18:26:37 +01:00
subvolume_metrics.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
subvolume_metrics.h ceph: add subvolume metrics collection and reporting 2026-04-22 01:40:23 +02:00
super.c ceph: make nearfull sync writes opt-in 2026-08-26 19:57:28 +02:00
super.h ceph: force a cap message when a deferred revoke can't be acked immediately 2026-08-26 19:57:29 +02:00
util.c ceph: move net/ceph/ceph_fs.c to fs/ceph/util.c 2020-01-27 16:53:40 +01:00
xattr.c ceph: bound xattr value length in __build_xattrs() 2026-08-26 19:57:27 +02:00