]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kasan: call kasan_init_generic in kasan_init
authorSabyrzhan Tasbolatov <snovitoll@gmail.com>
Sun, 10 Aug 2025 12:57:46 +0000 (17:57 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:21:58 +0000 (14:21 -0700)
commite45085f2673b165687a3874d8e868437683fa8e4
tree085c7b001c774d71f0b8a9b41a14cdeee970e50a
parent1e338f4d99e6814ede16bad1db1cc463aad8032c
kasan: call kasan_init_generic in kasan_init

Call kasan_init_generic() which handles Generic KASAN initialization.  For
architectures that do not select ARCH_DEFER_KASAN, this will be a no-op
for the runtime flag but will print the initialization banner.

For SW_TAGS and HW_TAGS modes, their respective init functions will handle
the flag enabling, if they are enabled/implemented.

Link: https://lkml.kernel.org/r/20250810125746.1105476-3-snovitoll@gmail.com
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217049
Signed-off-by: Sabyrzhan Tasbolatov <snovitoll@gmail.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com> [riscv]
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> [s390]
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Alexander Potapenko <glider@google.com>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: David Gow <davidgow@google.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Huacai Chen <chenhuacai@loongson.cn>
Cc: Marco Elver <elver@google.com>
Cc: Qing Zhang <zhangqing@loongson.cn>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/mm/kasan_init.c
arch/arm64/mm/kasan_init.c
arch/riscv/mm/kasan_init.c
arch/s390/kernel/early.c
arch/x86/mm/kasan_init_64.c
arch/xtensa/mm/kasan_init.c