diff options
author | Nylon Chen <nylon7@andestech.com> | 2021-01-16 06:58:35 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-02-19 08:17:59 +0100 |
commit | e178d670f251b6947d6be99c0014e9a57ad4f0e0 (patch) | |
tree | dcc49dea6830ab12c8034fd918a01219893d85bc /arch/riscv/Kconfig | |
parent | riscv: Covert to reserve_initrd_mem() (diff) | |
download | linux-e178d670f251b6947d6be99c0014e9a57ad4f0e0.tar.xz linux-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/Kconfig | 1 |
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 |