summaryrefslogtreecommitdiffstats
path: root/mm/kasan/hw_tags.c
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2023-12-21 21:04:50 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 11:58:45 -0800
commit14c99b990cccd924ae6101bd36b85f8456eabb10 (patch)
treea41f8a4f9ad6dcdf3edcf1e668e10e5de6413aa2 /mm/kasan/hw_tags.c
parent58ee788cb23738abd57d6327d0b5096df5a53d31 (diff)
downloadlinux-stable-14c99b990cccd924ae6101bd36b85f8456eabb10.tar.gz
linux-stable-14c99b990cccd924ae6101bd36b85f8456eabb10.tar.bz2
linux-stable-14c99b990cccd924ae6101bd36b85f8456eabb10.zip
kasan: check kasan_vmalloc_enabled in vmalloc tests
Check that vmalloc poisoning is not disabled via command line when running the vmalloc-related KASAN tests. Skip the tests otherwise. Link: https://lkml.kernel.org/r/954456e50ac98519910c3e24a479a18eae62f8dd.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>
Diffstat (limited to 'mm/kasan/hw_tags.c')
-rw-r--r--mm/kasan/hw_tags.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/kasan/hw_tags.c b/mm/kasan/hw_tags.c
index 80f11a3eccd5..2b994092a2d4 100644
--- a/mm/kasan/hw_tags.c
+++ b/mm/kasan/hw_tags.c
@@ -62,6 +62,7 @@ DEFINE_STATIC_KEY_TRUE(kasan_flag_vmalloc);
#else
DEFINE_STATIC_KEY_FALSE(kasan_flag_vmalloc);
#endif
+EXPORT_SYMBOL_GPL(kasan_flag_vmalloc);
#define PAGE_ALLOC_SAMPLE_DEFAULT 1
#define PAGE_ALLOC_SAMPLE_ORDER_DEFAULT 3