linux/fs/smb/server
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
..
mgmt ksmbd: fix tree connection use-after-free in smb2_tree_connect() 2026-09-02 17:58:35 +09:00
asn1.c ksmbd: use __GFP_RETRY_MAYFAIL 2024-11-25 18:58:02 -06:00
asn1.h
auth.c This contains a set of 142 SMB server updates focused on SMB2 command 2026-08-23 08:41:36 -07:00
auth.h ksmbd: add SMB Direct RDMA encryption transform 2026-08-17 22:38:25 +09:00
compress.c ksmbd: handle encrypted compressed requests 2026-08-17 22:38:25 +09:00
compress.h ksmbd: handle encrypted compressed requests 2026-08-17 22:38:25 +09:00
connection.c ksmbd: safely drain sessions during logoff 2026-08-31 19:26:30 +09:00
connection.h ksmbd: add SMB Direct RDMA encryption transform 2026-08-17 22:38:25 +09:00
crypto_ctx.c ksmbd: Use AES-CMAC library for SMB3 signature calculation 2026-04-22 08:11:23 -05:00
crypto_ctx.h ksmbd: Use AES-CMAC library for SMB3 signature calculation 2026-04-22 08:11:23 -05:00
glob.h ksmbd: use __GFP_RETRY_MAYFAIL 2024-11-25 18:58:02 -06:00
Kconfig smb: server: Remove obsolete "select CRYPTO_LIB_DES" from Kconfig file 2026-08-20 22:56:13 +09:00
ksmbd_netlink.h ksmbd: add per-share SMB3 encryption enforcement 2026-08-17 22:38:24 +09:00
ksmbd_spnego_negtokeninit.asn1 treewide: Add SPDX identifier to IETF ASN.1 modules 2023-10-27 18:04:28 +08:00
ksmbd_spnego_negtokentarg.asn1 treewide: Add SPDX identifier to IETF ASN.1 modules 2023-10-27 18:04:28 +08:00
ksmbd_work.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
ksmbd_work.h ksmbd: fix sparc build with atomic work state 2026-09-02 17:58:00 +09:00
Makefile ksmbd: negotiate and decode SMB2 compression 2026-06-16 18:57:22 -05:00
misc.c ksmbd: treat unnamed DATA stream as base file 2026-06-22 20:15:04 -05:00
misc.h smb/server: abort initialization when proc setup fails 2026-08-17 15:00:58 +09:00
ndr.c ksmbd: use __GFP_RETRY_MAYFAIL 2024-11-25 18:58:02 -06:00
ndr.h
ntlmssp.h
oplock.c ksmbd: fix use-after-free in oplock break notification 2026-09-02 17:58:11 +09:00
oplock.h ksmbd: serialize oplock close with pending break ownership 2026-08-17 15:00:55 +09:00
proc.c smb/server: abort initialization when proc setup fails 2026-08-17 15:00:58 +09:00
server.c smb/server: warn if ksmbd_proc_create() fails 2026-08-17 22:38:26 +09:00
server.h ksmbd: add AAPL kAAPL_SERVER_QUERY create context support 2026-08-17 15:00:41 +09:00
smb_common.c ksmbd: implement the command sequence window 2026-08-17 15:00:50 +09:00
smb_common.h ksmbd: extend procfs server statistics 2026-08-17 15:00:48 +09:00
smb2misc.c ksmbd: implement the command sequence window 2026-08-17 15:00:50 +09:00
smb2ops.c ksmbd: free preauth sessions on connection teardown 2026-08-17 15:00:53 +09:00
smb2pdu.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
smb2pdu.h ksmbd: add SMB3 request replay support 2026-08-17 15:00:47 +09:00
smbacl.c ksmbd: rate limit unmapped SID errors 2026-08-31 19:26:45 +09:00
smbacl.h ksmbd: support access-based directory enumeration 2026-08-17 15:00:29 +09:00
stats.h ksmbd: extend procfs server statistics 2026-08-17 15:00:48 +09:00
transport_ipc.c ksmbd: prevent out-of-bounds reads in share config responses 2026-08-31 19:27:06 +09:00
transport_ipc.h ksmbd: Remove unused functions 2025-01-15 23:24:51 -06:00
transport_rdma.c ksmbd: add SMB Direct RDMA encryption transform 2026-08-17 22:38:25 +09:00
transport_rdma.h ksmbd: add SMB Direct RDMA encryption transform 2026-08-17 22:38:25 +09:00
transport_tcp.c ksmbd: fix listener task lifetime on netdev events 2026-08-31 19:27:11 +09:00
transport_tcp.h ksmbd: fix use-after-free in __smb2_lease_break_noti() 2025-04-14 22:21:26 -05:00
unicode.c ksmbd: use __GFP_RETRY_MAYFAIL 2024-11-25 18:58:02 -06:00
unicode.h fs/smb: Swing unicode common code from smb->NLS 2023-08-30 08:55:51 -05:00
vfs_cache.c ksmbd: safely drain sessions during logoff 2026-08-31 19:26:30 +09:00
vfs_cache.h ksmbd: safely drain sessions during logoff 2026-08-31 19:26:30 +09:00
vfs.c ksmbd: validate COPYCHUNK source and target ranges 2026-09-02 17:58:15 +09:00
vfs.h smb/server: fix posix state check for directory rename 2026-08-17 15:01:00 +09:00
xattr.h ksmbd: Correct typos in multiple comments across various files 2024-09-25 21:33:22 -05:00