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