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