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