]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafdada80828576067822826667d7f18bf3441981
tree79501e09f6e7b89f1d613fa37b50d24602aef2e4
parent7fbcec4a004241ec9ac021c63da51af2aad2be7e
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