diff options
| author | Joerg Roedel <[email protected]> | 2020-09-07 15:15:17 +0200 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2020-09-07 19:45:25 +0200 |
| commit | ca0e22d4f011a56e974fa3a712d76e86a791559d (patch) | |
| tree | 6a4f203a78723d5e52d3d140fd2fac516cbe0ead /tools/perf/scripts/python | |
| parent | 8b0d3b3b41ab6f14f1ce6d4a6b1c5f60b825123f (diff) | |
x86/boot/compressed/64: Always switch to own page table
When booted through startup_64(), the kernel keeps running on the EFI
page table until the KASLR code sets up its own page table. Without
KASLR, the pre-decompression boot code never switches off the EFI page
table. Change that by unconditionally switching to a kernel-controlled
page table after relocation.
This makes sure the kernel can make changes to the mapping when
necessary, for example map pages unencrypted in SEV and SEV-ES guests.
Also, remove the debug_putstr() calls in initialize_identity_maps()
because the function now runs before console_init() is called.
[ bp: Massage commit message. ]
Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions