linux/net/sunrpc
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
..
auth_gss treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
xprtrdma RDMA v7.3 merge window pull 2026-08-21 11:48:54 -07:00
addr.c net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr() 2024-02-28 16:18:18 -05:00
auth_null.c SUNRPC: Add rpc_auth::au_ralign field 2019-02-14 11:48:36 -05:00
auth_tls.c SUNRPC: Fail quickly when server does not recognize TLS 2023-09-27 15:16:40 -04:00
auth_unix.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
auth.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
backchannel_rqst.c SUNRPC: close backchannel before destroying callback service 2026-08-10 09:54:35 -04:00
cache.c SUNRPC: always drain cache_cleaner before destroying a cache_detail 2026-08-03 09:14:35 -04:00
clnt.c sunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir 2026-08-17 09:02:08 -07:00
debugfs.c sunrpc: add netns inum and srcaddr to debugfs rpc_xprt info 2025-01-22 15:53:31 -05:00
fail.h SUNRPC: Cache deferral injection 2022-05-19 12:25:38 -04:00
Kconfig SUNRPC: Remove redundant crypto Kconfig dependencies 2026-06-09 16:32:59 -04:00
Makefile sunrpc: add a generic netlink family for cache upcalls 2026-06-01 11:08:18 -04:00
netlink.c NFSD: Put cache get-reqs dump attrs under reply 2026-06-01 11:08:18 -04:00
netlink.h sunrpc: add SUNRPC_CMD_CACHE_FLUSH netlink command 2026-06-01 11:08:18 -04:00
netns.h SUNRPC: Fix occasional warning when destroying gss_krb5_enctypes 2023-02-20 09:20:57 -05:00
rpc_pipe.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rpcb_clnt.c SUNRPC: check rpc_sockaddr2uaddr() return value in rpcb_register_inet4/6 2026-08-10 13:28:23 -04:00
sched.c sunrpc: unexport rpc_malloc() and rpc_free() 2025-09-30 16:04:03 -04:00
socklib.c SUNRPC: Remove redundant __GFP_NOWARN 2025-09-23 13:29:50 -04:00
socklib.h SUNRPC: Refactor xs_sendpages() 2020-03-16 12:04:33 -04:00
stats.c sunrpc: use per-net counts in svc_seq_show() 2026-08-10 09:54:35 -04:00
sunrpc_syms.c sunrpc: init gssp_lock before publishing proc entry 2026-08-10 09:54:35 -04:00
sunrpc.h SUNRPC: make various functions static, or not exported. 2024-09-01 10:04:56 -04:00
svc_xprt.c sunrpc: derive the pool count instead of caching it in sv_nrpools 2026-08-10 09:54:35 -04:00
svc.c sunrpc: remove unused svc_version vs_count field 2026-08-10 09:54:35 -04:00
svcauth_unix.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
svcauth.c SUNRPC: add svcauth_map_clnt_to_svc_cred_local 2024-09-23 15:03:30 -04:00
svcsock.c sunrpc: wait for in-flight TLS handshake callback when cancel loses race 2026-06-09 16:32:59 -04:00
sysctl.c sysctl: treewide: constify the ctl_table argument of proc_handlers 2024-07-24 20:59:29 +02:00
sysfs.c sunrpc: fix uninitialized xprt_create_args structure 2026-06-08 12:06:41 -04:00
sysfs.h NFS: Add sysfs links to sunrpc clients for nfs_clients 2023-06-19 15:04:13 -04:00
timer.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
xdr.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
xprt.c xprtrdma: Close lost-wakeup race in xprt_rdma_alloc_slot 2026-04-13 11:56:20 -07:00
xprtmultipath.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
xprtsock.c SUNRPC: wait for in-flight client TLS handshake callback 2026-08-17 09:02:08 -07:00