Kees Cook
189f164e57
Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses
Conversion performed via this Coccinelle script:
// SPDX-License-Identifier: GPL-2.0-only
// Options: --include-headers-for-types --all-includes --include-headers --keep-comments
virtual patch
@gfp depends on patch && !(file in "tools") && !(file in "samples")@
identifier ALLOC = {kmalloc_obj,kmalloc_objs,kmalloc_flex,
kzalloc_obj,kzalloc_objs,kzalloc_flex,
kvmalloc_obj,kvmalloc_objs,kvmalloc_flex,
kvzalloc_obj,kvzalloc_objs,kvzalloc_flex};
@@
ALLOC(...
- , GFP_KERNEL
)
$ make coccicheck MODE=patch COCCI=gfp.cocci
Build and boot tested x86_64 with Fedora 42's GCC and Clang:
Linux version 6.19.0+ (user@host) (gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7), GNU ld version 2.44-12.fc42) #1 SMP PREEMPT_DYNAMIC 1970-01-01
Linux version 6.19.0+ (user@host) (clang version 20.1.8 (Fedora 20.1.8-4.fc42), LLD 20.1.8) #1 SMP PREEMPT_DYNAMIC 1970-01-01
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-02-22 08:26:33 -08:00
..
2026-01-22 11:11:17 +01:00
2020-03-25 11:50:48 +01:00
2021-04-07 16:11:05 +02:00
2025-09-25 09:57:15 +02:00
2018-11-08 11:20:57 -08:00
2020-09-21 22:14:24 +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
2020-03-05 16:47:35 +01:00
2025-12-15 22:20:50 +01:00
2020-03-05 16:47:35 +01:00
2020-12-28 22:32:28 +01:00
2024-10-23 18:10:24 +02:00
2020-05-22 09:12:52 +02:00
2025-02-21 10:19:34 +01:00
2025-08-29 22:34:31 +02:00
2023-12-10 17:21:41 -08:00
2022-04-29 14:37:59 -07:00
2018-10-31 08:54:16 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2024-08-25 15:26:30 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2018-07-17 09:40:17 -07: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
2020-10-12 12:04:50 +02:00
2025-12-01 10:07:25 +01:00
2025-12-01 10:34:34 +01:00
2025-08-07 10:07:06 +02:00
2025-01-11 12:32:12 +01:00
2020-03-05 16:47:35 +01:00
2025-04-27 10:12:03 +02:00
2022-03-01 10:07:22 +01:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:32 -07:00
2022-03-14 15:02:53 +01:00
2022-11-11 15:46:03 +01:00
2021-02-15 12:23:54 +01:00
2024-01-08 10:39:12 +01:00
2023-12-10 17:21:38 -08: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
2023-12-10 17:21:38 -08: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
2019-06-19 17:09:55 +02:00
2021-02-04 21:55:45 +01:00
2025-02-21 10:19:34 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2024-11-12 15:46:20 +01:00
2025-11-21 13:24:05 +01:00
2024-10-29 15:32:45 -05:00
2020-06-09 09:39:13 -07:00
2025-07-14 22:27:47 -07:00
2023-08-15 10:22:23 +02:00
2018-06-14 12:21:18 +09:00
2023-12-10 17:21:38 -08: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
2018-02-11 14:34:03 -08: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-02-12 12:13:01 -08: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
2025-05-25 15:00:23 +02:00
2021-03-14 14:09:49 +01:00
2025-01-11 12:31:21 +01:00
2019-05-21 10:50:45 +02: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
2025-02-21 09:54:02 +01:00
2024-11-27 09:36:01 +09:00
2024-02-23 10:13:47 +01:00
2026-02-21 17:09:51 -08:00
2020-05-07 11:55:47 +02:00