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