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