diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-06-24 17:06:49 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-06-24 17:18:10 +0100 |
commit | fc5a89f75d2aad3e566e030675ac420aee49729c (patch) | |
tree | 617d0e0f991ec441847cc32f4215df0063cadbfa /arch/x86/mm/srat.c | |
parent | 005e12676af09a308f18cb94aa593bb30dee031e (diff) | |
download | linux-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