aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLecopzer Chen <[email protected]>2021-03-24 12:05:20 +0800
committerCatalin Marinas <[email protected]>2021-03-29 12:35:05 +0100
commit71b613fc0c69080262f4ebe810c3d909d7ff8132 (patch)
treed56cdc9d4961506cd26e685293e92956fede59e9
parent7d7b88ff5f8fd79a72baacc521407a3101f0ffae (diff)
arm64: Kconfig: support CONFIG_KASAN_VMALLOC
We can backed shadow memory in vmalloc area after vmalloc area isn't populated at kasan_init(), thus make KASAN_VMALLOC selectable. Signed-off-by: Lecopzer Chen <[email protected]> Acked-by: Andrey Konovalov <[email protected]> Tested-by: Andrey Konovalov <[email protected]> Tested-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
-rw-r--r--arch/arm64/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 5656e7aacd69..3e54fa938234 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -138,6 +138,7 @@ config ARM64
select HAVE_ARCH_JUMP_LABEL
select HAVE_ARCH_JUMP_LABEL_RELATIVE
select HAVE_ARCH_KASAN if !(ARM64_16K_PAGES && ARM64_VA_BITS_48)
+ select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
select HAVE_ARCH_KFENCE