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
..
2026-09-04 21:37:00 -07:00
2026-08-24 18:43:21 -07:00
2026-08-04 12:30:45 +02:00
2026-08-04 19:18:46 -07:00
2026-01-31 14:22:40 -08:00
2026-08-24 18:43:13 -07:00
2026-08-27 09:17:06 -07:00
2026-04-18 23:24:27 -07:00
2026-01-31 14:22:36 -08:00
2026-01-21 09:38:16 -08:00
2026-05-28 20:50:33 -07:00
2026-06-03 16:25:49 -07:00
2026-08-24 18:43:16 -07:00
2026-08-24 18:43:03 -07:00
2026-08-06 18:57:24 -07:00
2026-08-24 18:43:08 -07:00
2026-08-04 19:18:36 -07:00
2026-08-06 18:57:02 -07:00
2026-02-21 17:09:51 -08:00
2025-07-01 13:25:36 -06:00
2026-08-06 18:57:21 -07:00
2026-08-04 19:18:46 -07:00
2026-04-05 13:52:53 -07:00
2026-08-24 18:40:27 -07:00
2026-08-24 18:43:19 -07:00
2026-08-24 18:43:33 -07:00
2026-08-24 18:43:17 -07:00
2026-08-24 18:43:00 -07:00
2026-01-31 14:22:38 -08:00
2026-08-24 18:43:24 -07:00
2026-09-01 20:26:22 -07:00
2026-09-01 20:26:20 -07:00
2026-09-01 20:26:19 -07:00
2026-08-24 18:43:03 -07:00
2025-11-20 13:43:57 -08:00
2026-01-20 19:24:50 -08:00
2025-11-20 13:43:57 -08:00
2026-08-04 19:18:42 -07:00
2026-07-28 21:12:00 -07:00
2026-09-01 20:26:22 -07:00
2025-09-21 14:22:21 -07:00
2026-05-26 11:02:01 +02:00
2026-08-24 18:43:00 -07:00
2026-08-24 18:42:53 -07:00
2026-08-24 18:43:24 -07:00
2026-08-24 18:43:24 -07:00
2026-09-01 20:26:21 -07:00
2026-08-24 18:43:18 -07:00
2026-08-24 18:43:02 -07:00
2026-06-19 10:14:34 -07:00
2025-07-09 22:42:22 -07:00
2026-09-01 20:26:21 -07:00
2026-08-24 18:43:10 -07:00
2026-08-04 19:19:00 -07:00
2026-08-23 09:17:38 -07:00
2026-09-01 20:26:20 -07:00
2026-08-24 18:43:03 -07:00
2026-08-27 09:17:06 -07:00
2026-05-04 14:03:16 +00:00
2026-08-06 18:57:01 -07:00
2026-08-06 18:56:59 -07:00
2026-08-24 18:42:51 -07:00
2026-04-05 13:53:33 -07:00
2026-08-27 09:17:06 -07:00
2026-09-01 20:26:22 -07:00
2026-07-08 18:31:27 +02:00
2026-07-28 17:37:31 -07:00
2026-01-09 11:53:51 +02:00
2026-09-01 20:26:20 -07:00
2026-08-24 18:42:53 -07:00
2026-08-06 18:57:15 -07:00
2026-08-06 18:57:03 -07:00
2026-08-27 09:17:06 -07:00
2026-08-04 19:18:45 -07:00
2026-08-06 18:57:04 -07:00
2026-01-31 14:22:51 -08:00
2026-08-06 18:57:03 -07:00
2026-04-05 13:53:05 -07:00
2026-08-04 19:19:04 -07:00
2026-08-24 18:42:56 -07:00
2026-08-06 18:57:04 -07:00
2026-09-03 10:56:10 -07:00
2026-08-06 18:57:12 -07:00
2026-08-04 19:19:00 -07:00
2026-08-24 18:42:48 -07:00
2026-06-02 08:34:03 +03:00
2026-07-03 11:16:27 +03:00
2026-04-05 13:53:17 -07:00
2026-08-24 18:43:01 -07:00
2026-07-30 19:40:44 -07:00
2026-08-24 18:43:03 -07:00
2026-07-30 19:40:44 -07:00
2026-04-05 13:53:02 -07:00
2026-08-24 18:43:20 -07:00
2026-07-30 19:40:41 -07:00
2026-07-30 19:40:41 -07:00
2026-08-24 18:42:58 -07:00
2026-08-24 18:40:27 -07:00
2026-08-24 18:42:53 -07:00
2026-08-27 09:17:06 -07:00
2026-08-24 18:40:27 -07:00
2026-06-02 15:22:13 -07:00
2026-08-04 19:18:32 -07:00
2025-07-13 16:38:23 -07:00
2026-08-04 19:18:46 -07:00
2026-07-28 21:11:47 -07:00
2026-08-24 18:43:03 -07:00
2026-04-05 13:53:35 -07:00
2026-08-04 20:02:00 -07:00
2026-08-04 06:57:05 -06:00
2026-08-24 18:43:25 -07:00
2026-09-03 10:56:10 -07:00
2026-02-21 01:02:28 -08:00
2026-08-27 09:17:06 -07:00
2026-08-24 18:43:06 -07:00
2026-07-01 19:02:52 -07:00
2026-07-01 19:02:52 -07:00
2026-07-30 19:40:41 -07:00
2026-08-24 18:43:03 -07:00
2026-08-24 10:58:57 -07:00
2026-08-24 10:58:57 -07:00
2026-08-24 10:58:57 -07:00
2026-08-04 19:18:46 -07:00
2026-08-24 18:43:06 -07:00
2026-08-24 18:43:06 -07:00
2026-08-27 09:17:06 -07:00
2026-06-02 15:22:23 -07:00
2026-08-24 18:43:20 -07:00
2026-08-24 18:43:27 -07:00
2026-06-21 11:37:16 -07:00
2025-11-13 11:01:08 +01:00
2026-09-01 20:26:21 -07:00
2026-08-06 18:57:01 -07:00
2026-08-24 18:42:52 -07:00
2026-08-24 18:42:49 -07:00
2026-08-04 19:19:04 -07:00
2026-08-24 18:42:53 -07:00
2026-08-24 18:42:52 -07:00
2026-08-24 18:43:02 -07:00
2026-08-24 18:43:03 -07:00
2026-07-30 19:40:28 -07:00
2026-08-27 09:17:06 -07:00
2026-08-24 18:43:15 -07:00
2026-08-24 18:42:56 -07:00
2025-09-21 14:21:59 -07:00
2026-08-24 18:43:19 -07:00
2026-08-24 18:43:20 -07:00