]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5036318a2e53ba8280df86cdb3659fc6859ef6d4
treedcc49dea6830ab12c8034fd918a01219893d85bc
parent5f99dca5f972ca5ceed3a0f8018cb8fbbc7bf10c
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