linux/arch/riscv/kernel/pi
Alexandre Ghiti 84fe419dc7
riscv: Introduce virtual kernel mapping KASLR
KASLR implementation relies on a relocatable kernel so that we can move
the kernel mapping.

The seed needed to virtually move the kernel is taken from the device tree,
so we rely on the bootloader to provide a correct seed. Zkr could be used
unconditionnally instead if implemented, but that's for another patch.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Tested-by: Song Shuai <songshuaishuai@tinylab.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Tested-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20230722123850.634544-2-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-09-05 19:49:27 -07:00
..
cmdline_early.c riscv: Introduce virtual kernel mapping KASLR 2023-09-05 19:49:27 -07:00
fdt_early.c riscv: Introduce virtual kernel mapping KASLR 2023-09-05 19:49:27 -07:00
Makefile riscv: Introduce virtual kernel mapping KASLR 2023-09-05 19:49:27 -07:00