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