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