riscv: Move KASAN mapping next to the kernel mapping
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Mon, 6 Dec 2021 10:46:45 +0000 (11:46 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 01:54:04 +0000 (17:54 -0800)
commitf7ae02333d13f598da6ff6b94cf643255707f752
tree79501e09f6e7b89f1d613fa37b50d24602aef2e4
parentdb1503d355a79d1d4255a9996f20e72848b74a56
riscv: Move KASAN mapping next to the kernel mapping

Now that KASAN_SHADOW_OFFSET is defined at compile time as a config,
this value must remain constant whatever the size of the virtual address
space, which is only possible by pushing this region at the end of the
address space next to the kernel mapping.

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Documentation/riscv/vm-layout.rst
arch/riscv/Kconfig
arch/riscv/include/asm/kasan.h
arch/riscv/include/asm/page.h
arch/riscv/include/asm/pgtable.h
arch/riscv/mm/init.c