summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorNylon Chen <nylon7@andestech.com>2021-01-16 13:58:35 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-02-18 23:17:59 -0800
commite178d670f251b6947d6be99c0014e9a57ad4f0e0 (patch)
treedcc49dea6830ab12c8034fd918a01219893d85bc /arch/riscv/Kconfig
parentaec33b54af55ef025e03e3dfbab3b8abe00eaa22 (diff)
downloadlinux-stable-e178d670f251b6947d6be99c0014e9a57ad4f0e0.tar.gz
linux-stable-e178d670f251b6947d6be99c0014e9a57ad4f0e0.tar.bz2
linux-stable-e178d670f251b6947d6be99c0014e9a57ad4f0e0.zip
riscv/kasan: add KASAN_VMALLOC support
It references to x86/s390 architecture. So, it doesn't map the early shadow page to cover VMALLOC space. Prepopulate top level page table for the range that would otherwise be empty. lower levels are filled dynamically upon memory allocation while booting. Signed-off-by: Nylon Chen <nylon7@andestech.com> Signed-off-by: Nick Hu <nickhu@andestech.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/Kconfig')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 8eadd1cbd524..3832a537c5d6 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -57,6 +57,7 @@ config RISCV
select HAVE_ARCH_JUMP_LABEL
select HAVE_ARCH_JUMP_LABEL_RELATIVE
select HAVE_ARCH_KASAN if MMU && 64BIT
+ select HAVE_ARCH_KASAN_VMALLOC if MMU && 64BIT
select HAVE_ARCH_KGDB
select HAVE_ARCH_KGDB_QXFER_PKT
select HAVE_ARCH_MMAP_RND_BITS if MMU