diff options
author | 2025-05-13 13:11:59 +0200 | |
---|---|---|
committer | 2025-05-14 10:06:35 +0200 | |
commit | 64797551baec252f953fa8234051f88b0c368ed5 (patch) | |
tree | a58dc31c5e0d2799bdfa1070bfa7fb6234607b71 /scripts/gdb/linux/utils.py | |
parent | x86/bugs: Fix SRSO reporting on Zen1/2 with SMT disabled (diff) | |
download | linux-rng-64797551baec252f953fa8234051f88b0c368ed5.tar.xz linux-rng-64797551baec252f953fa8234051f88b0c368ed5.zip |
x86/boot: Defer initialization of VM space related global variables
The global pseudo-constants 'page_offset_base', 'vmalloc_base' and
'vmemmap_base' are not used extremely early during the boot, and cannot be
used safely until after the KASLR memory randomization code in
kernel_randomize_memory() executes, which may update their values.
So there is no point in setting these variables extremely early, and it
can wait until after the kernel itself is mapped and running from its
permanent virtual mapping.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250513111157.717727-9-ardb+git@google.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions