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