]> git.ipfire.org Git - thirdparty/linux.git/commit
coccinelle: Add kmalloc_objs conversion script
authorKees Cook <kees@kernel.org>
Wed, 3 Dec 2025 23:30:35 +0000 (15:30 -0800)
committerKees Cook <kees@kernel.org>
Mon, 9 Feb 2026 18:48:20 +0000 (10:48 -0800)
commitbdc5071d7f7bb82589737741e9bf19820ceb7a6a
tree902527c2956b9f5034d63030dae49a6434eb4b52
parente4c8b46b924eb8de66c6f0accc9cdd0c2e8fa23b
coccinelle: Add kmalloc_objs conversion script

Finds and converts sized kmalloc-family of allocations into the
typed kmalloc_obj-family of allocations.

Link: https://patch.msgid.link/20251203233036.3212363-5-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
scripts/coccinelle/api/kmalloc_objs.cocci [new file with mode: 0644]