Files
linux/arch
Yueyi Li 672c45ded4 arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region
[ Upstream commit c8a43c18a9 ]

When KASLR is enabled (CONFIG_RANDOMIZE_BASE=y), the top 4K of kernel
virtual address space may be mapped to physical addresses despite being
reserved for ERR_PTR values.

Fix the randomization of the linear region so that we avoid mapping the
last page of the virtual address space.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: liyueyi <liyueyi@live.com>
[will: rewrote commit message; merged in suggestion from Ard]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
2023-05-15 12:22:27 +09:00
..
2023-05-15 11:34:34 +09:00
2018-05-19 14:06:17 +02:00
2018-05-30 13:19:56 +02:00
2023-05-15 12:06:01 +09:00
2018-02-17 14:52:07 +01:00
2023-05-15 09:19:11 +09:00