riscv/kasan: add KASAN_VMALLOC support
authorNylon Chen <nylon7@andestech.com>
Sat, 16 Jan 2021 05:58:35 +0000 (13:58 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 19 Feb 2021 07:17:59 +0000 (23:17 -0800)
commite178d670f251b6947d6be99c0014e9a57ad4f0e0
treedcc49dea6830ab12c8034fd918a01219893d85bc
parentaec33b54af55ef025e03e3dfbab3b8abe00eaa22
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>
arch/riscv/Kconfig
arch/riscv/mm/kasan_init.c