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