aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2023-11-29 12:15:58 +0100
committerWill Deacon <[email protected]>2023-12-12 11:06:27 +0000
commita22fc8e102dc475e91dc13e6e1e395f4d95ae684 (patch)
treeaff4d6df8a93cef7e4de6b99a874670651ec9286 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent3dfdc2750c6cdc6a5ebf5effb07f92db761de35d (diff)
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 <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions