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