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