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