Skip to content

Commit f8566aa

Browse files
committed
Merge tag 'x86-urgent-2023-07-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Thomas Gleixner: "A single regression fix for x86: Moving the invocation of arch_cpu_finalize_init() earlier in the boot process caused a boot regression on IBT enabled system. The root cause is not the move of arch_cpu_finalize_init() itself. The system fails to boot because the subsequent efi_enter_virtual_mode() code has a non-IBT safe EFI call inside. This was not noticed before because IBT was enabled after the EFI initialization. Switching the EFI call to use the IBT safe wrapper cures the problem" * tag 'x86-urgent-2023-07-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/efi: Make efi_set_virtual_address_map IBT safe
2 parents ad28859 + 0303c97 commit f8566aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/platform/efi/efi_64.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,9 +853,9 @@ efi_set_virtual_address_map(unsigned long memory_map_size,
853853

854854
/* Disable interrupts around EFI calls: */
855855
local_irq_save(flags);
856-
status = efi_call(efi.runtime->set_virtual_address_map,
857-
memory_map_size, descriptor_size,
858-
descriptor_version, virtual_map);
856+
status = arch_efi_call_virt(efi.runtime, set_virtual_address_map,
857+
memory_map_size, descriptor_size,
858+
descriptor_version, virtual_map);
859859
local_irq_restore(flags);
860860

861861
efi_fpu_end();

0 commit comments

Comments
 (0)