Patch "efi/x86: Ensure that EFI_RUNTIME_MAP is enabled for kexec" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    efi/x86: Ensure that EFI_RUNTIME_MAP is enabled for kexec

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     efi-x86-ensure-that-efi_runtime_map-is-enabled-for-k.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit bbaae37a00b9ab43ab81b3bda67300f9966f10c5
Author: Ard Biesheuvel <ardb@xxxxxxxxxx>
Date:   Wed Aug 2 17:17:04 2023 +0200

    efi/x86: Ensure that EFI_RUNTIME_MAP is enabled for kexec
    
    [ Upstream commit aba7e066c738d4b349413a271b2a236aa55bacbc ]
    
    CONFIG_EFI_RUNTIME_MAP needs to be enabled in order for kexec to be able
    to provide the required information about the EFI runtime mappings to
    the incoming kernel, regardless of whether kexec_load() or
    kexec_file_load() is being used. Without this information, kexec boot in
    EFI mode is not possible.
    
    The CONFIG_EFI_RUNTIME_MAP option is currently directly configurable if
    CONFIG_EXPERT is enabled, so that it can be turned on for debugging
    purposes even if KEXEC is not enabled. However, the upshot of this is
    that it can also be disabled even when it shouldn't.
    
    So tweak the Kconfig declarations to avoid this situation.
    
    Reported-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
    Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index e36261b4ea14f..68ce4f786dcd1 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1955,6 +1955,7 @@ config EFI
 	select UCS2_STRING
 	select EFI_RUNTIME_WRAPPERS
 	select ARCH_USE_MEMREMAP_PROT
+	select EFI_RUNTIME_MAP if KEXEC_CORE
 	help
 	  This enables the kernel to use EFI runtime services that are
 	  available (such as the EFI variable services).
@@ -2030,7 +2031,6 @@ config EFI_MAX_FAKE_MEM
 config EFI_RUNTIME_MAP
 	bool "Export EFI runtime maps to sysfs" if EXPERT
 	depends on EFI
-	default KEXEC_CORE
 	help
 	  Export EFI runtime memory regions to /sys/firmware/efi/runtime-map.
 	  That memory map is required by the 2nd kernel to set up EFI virtual



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux