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