diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-11-29 12:15:58 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-12-12 11:06:27 +0000 |
commit | a22fc8e102dc475e91dc13e6e1e395f4d95ae684 (patch) | |
tree | aff4d6df8a93cef7e4de6b99a874670651ec9286 /arch/arm64/kernel | |
parent | 3dfdc2750c6cdc6a5ebf5effb07f92db761de35d (diff) | |
download | linux-stable-a22fc8e102dc475e91dc13e6e1e395f4d95ae684.tar.gz linux-stable-a22fc8e102dc475e91dc13e6e1e395f4d95ae684.tar.bz2 linux-stable-a22fc8e102dc475e91dc13e6e1e395f4d95ae684.zip |
arm64: mm: Take potential load offset into account when KASLR is off
We enable CONFIG_RELOCATABLE even when CONFIG_RANDOMIZE_BASE is
disabled, and this permits the loader (i.e., EFI) to place the kernel
anywhere in physical memory as long as the base address is 64k aligned.
This means that the 'KASLR' case described in the header that defines
the size of the statically allocated page tables could take effect even
when CONFIG_RANDMIZE_BASE=n. So check for CONFIG_RELOCATABLE instead.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20231129111555.3594833-45-ardb@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions