Kees Cook
0af298e62e
treewide: refresh kmalloc_obj() conversions
...
Refresh the tree with run of the existing Coccinelle rules in
scripts/coccinelle/api/kmalloc_objs.cocci, now that they also convert
arrays of multi-byte integers.
The conversions break down as:
435 kzalloc_objs()
169 kmalloc_objs()
52 kvzalloc_objs()
47 kzalloc_obj()
42 kvmalloc_objs()
8 kmalloc_obj()
2 kzalloc_flex()
2 kvmalloc_flex()
and 37 existing kmalloc_obj() family calls drop a redundant GFP_KERNEL.
Build tested with allmodconfig on x86_64 with GCC 16.2.0, and, together
with the devm_kmalloc_obj() conversion that follows, on x86_64, arm64,
i386, arm, riscv, s390, m68k, mips, parisc, sparc, loongarch, arc,
xtensa, and openrisc with GCC 16.2.0 with no new warnings.
Signed-off-by: Kees Cook <[email protected] >
2026-11-05 21:55:37 -08:00
..
2026-07-27 17:18:00 +02:00
2025-09-25 09:57:15 +02:00
2021-09-01 10:29:10 +02:00
2025-01-11 12:33:01 +01:00
2025-02-27 10:46:30 +01:00
2025-12-15 22:20:50 +01:00
2024-10-23 18:10:24 +02:00
2026-05-26 16:35:36 +02:00
2026-04-01 21:53:50 +02:00
2026-04-01 21:53:50 +02:00
2022-04-29 14:37:59 -07:00
2026-08-10 16:25:21 +02:00
2024-07-12 13:09:25 +02:00
2022-03-01 10:07:22 +01:00
2024-07-12 13:09:25 +02:00
2025-12-01 10:07:25 +01:00
2025-12-01 10:34:34 +01:00
2026-07-17 12:43:09 +02:00
2025-01-11 12:32:12 +01:00
2025-04-27 10:12:03 +02:00
2022-03-01 10:07:22 +01:00
2026-05-26 16:35:36 +02:00
2022-11-11 15:46:03 +01:00
2024-01-08 10:39:12 +01:00
2026-03-23 12:41:57 +01:00
2023-12-10 17:21:42 -08:00
2025-06-07 14:38:07 +09:00
2023-08-15 10:22:23 +02:00
2025-07-16 18:34:49 +02:00
2022-04-26 15:11:25 +02:00
2026-06-15 12:17:27 +02:00
2025-01-11 12:31:21 +01:00
2022-01-27 09:04:19 +01:00
2026-02-21 17:09:51 -08:00
2023-08-15 10:22:23 +02:00
2025-05-21 13:57:47 +02:00
2026-09-02 13:10:45 +02:00
2026-11-05 21:55:37 -08:00
2026-07-17 12:41:43 +02:00
2025-11-21 13:24:05 +01:00
2024-10-29 15:32:45 -05:00
2026-08-21 12:39:49 -07:00
2023-08-15 10:22:23 +02:00
2026-04-06 14:01:59 +02:00
2023-08-15 10:22:23 +02:00
2023-08-15 10:22:23 +02:00
2024-01-08 10:39:12 +01:00
2026-02-09 12:49:29 +01:00
2022-05-19 19:30:31 +02:00
2024-03-07 17:18:50 +01:00
2025-02-13 12:41:18 +01:00
2024-04-09 16:52:21 +02:00
2024-04-09 16:52:21 +02:00
2024-04-09 16:52:21 +02:00
2022-09-19 16:40:17 +02:00
2026-04-13 15:36:36 +02:00
2023-12-10 17:21:38 -08:00
2023-12-10 17:21:39 -08:00
2023-12-10 17:21:38 -08:00
2023-12-10 17:21:39 -08:00
2024-01-17 11:20:50 -08:00
2024-06-27 10:44:36 +02:00
2026-02-22 08:26:33 -08:00
2023-06-09 10:34:14 +02:00
2026-06-15 12:20:33 +02:00
2025-01-11 12:31:21 +01:00
2024-07-03 16:50:12 +02:00
2023-12-10 17:21:38 -08:00
2023-07-25 19:21:03 +02:00
2022-04-29 15:52:00 +02:00
2022-03-22 15:57:10 -07:00
2025-04-27 10:12:44 +02:00
2023-12-10 17:21:38 -08:00
2026-01-06 16:34:27 +01:00
2026-10-15 17:33:20 +02:00
2026-02-26 11:50:19 -07:00
2024-02-23 10:13:47 +01:00
2026-02-21 17:09:51 -08:00