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>
This commit is contained in:
Nylon Chen 2021-01-16 13:58:35 +08:00 • committed by Palmer Dabbelt
commit e178d670f2
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
2 changed files with 57 additions and 1 deletions