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