]> Gentwo Git Trees - linux/.git/commit
x86/efi: Apply EFI Memory Attributes after kexec
authorNicolas Saenz Julienne <nsaenz@amazon.com>
Tue, 12 Nov 2024 18:52:17 +0000 (18:52 +0000)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 15 Nov 2024 16:40:00 +0000 (17:40 +0100)
commit21b1a7f7ae2f53c914f584a72a85cb4f71227e28
tree0c14133f5d625efe93e5eacf1600c768b08aa52b
parent7eb4e1dd71009472215bc1f8226ee9a041da8d37
x86/efi: Apply EFI Memory Attributes after kexec

Kexec bypasses EFI's switch to virtual mode. In exchange, it has its own
routine, kexec_enter_virtual_mode(), which replays the mappings made by
the original kernel. Unfortunately, that function fails to reinstate
EFI's memory attributes, which would've otherwise been set after
entering virtual mode. Remediate this by calling
efi_runtime_update_mappings() within kexec's routine.

Signed-off-by: Nicolas Saenz Julienne <nsaenz@amazon.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/platform/efi/efi.c