summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/srat.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-06-24 17:06:49 +0200
committerWill Deacon <will@kernel.org>2022-06-24 17:18:10 +0100
commitfc5a89f75d2aad3e566e030675ac420aee49729c (patch)
tree617d0e0f991ec441847cc32f4215df0063cadbfa /arch/x86/mm/srat.c
parent005e12676af09a308f18cb94aa593bb30dee031e (diff)
downloadlinux-fc5a89f75d2aad3e566e030675ac420aee49729c.tar.bz2
arm64: kaslr: defer initialization to initcall where permitted
The early KASLR init code runs extremely early, and anything that could be deferred until later should be. So let's defer the randomization of the module region until much later - this also simplifies the arithmetic, given that we no longer have to reason about the link time vs load time placement of the core kernel explicitly. Also get rid of the global status variable, and infer the status reported by the diagnostic print from other KASLR related context. While at it, get rid of the special case for KASAN without KASAN_VMALLOC, which never occurs in practice. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20220624150651.1358849-20-ardb@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/x86/mm/srat.c')
0 files changed, 0 insertions, 0 deletions