]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kasan: respect CONFIG_KASAN_VMALLOC for kasan_flag_vmalloc
authorAndrey Konovalov <andreyknvl@google.com>
Thu, 21 Dec 2023 20:04:49 +0000 (21:04 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 19:58:45 +0000 (11:58 -0800)
commit58ee788cb23738abd57d6327d0b5096df5a53d31
treea7a05b6a5170f8dd56d047cbec0756e255f052ae
parent99f3fe416c71aa3d5aba69174c274309ededfd42
kasan: respect CONFIG_KASAN_VMALLOC for kasan_flag_vmalloc

Never enable the kasan_flag_vmalloc static branch unless
CONFIG_KASAN_VMALLOC is enabled.

This does not fix any observable bugs (vmalloc annotations for the HW_TAGS
mode are no-op with CONFIG_KASAN_VMALLOC disabled) but rather just cleans
up the code.

Link: https://lkml.kernel.org/r/3e5c933c8f6b59bd587efb05c407964be951772c.1703188911.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Marco Elver <elver@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/hw_tags.c
mm/kasan/kasan.h