Patch "x86/efistub: Don't try to print after ExitBootService()" 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

    x86/efistub: Don't try to print after ExitBootService()

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:
     x86-efistub-don-t-try-to-print-after-exitbootservice.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 ec9ab9048622ed295ccf498c5a5b2be4f622b9e3
Author: Nikolay Borisov <nik.borisov@xxxxxxxx>
Date:   Wed Oct 11 22:25:28 2023 +0300

    x86/efistub: Don't try to print after ExitBootService()
    
    [ Upstream commit ff07186b4d774ac22a5345d30763045af4569416 ]
    
    setup_e820() is executed after UEFI's ExitBootService has been called.
    This causes the firmware to throw an exception because the Console IO
    protocol is supposed to work only during boot service environment. As
    per UEFI 2.9, section 12.1:
    
     "This protocol is used to handle input and output of text-based
     information intended for the system user during the operation of code
     in the boot services environment."
    
    So drop the diagnostic warning from this function. We might add back a
    warning that is issued later when initializing the kernel itself.
    
    Signed-off-by: Nikolay Borisov <nik.borisov@xxxxxxxx>
    Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c
index 146477da2b98c..a5a856a7639e1 100644
--- a/drivers/firmware/efi/libstub/x86-stub.c
+++ b/drivers/firmware/efi/libstub/x86-stub.c
@@ -648,11 +648,8 @@ setup_e820(struct boot_params *params, struct setup_data *e820ext, u32 e820ext_s
 			break;
 
 		case EFI_UNACCEPTED_MEMORY:
-			if (!IS_ENABLED(CONFIG_UNACCEPTED_MEMORY)) {
-				efi_warn_once(
-"The system has unaccepted memory,  but kernel does not support it\nConsider enabling CONFIG_UNACCEPTED_MEMORY\n");
+			if (!IS_ENABLED(CONFIG_UNACCEPTED_MEMORY))
 				continue;
-			}
 			e820_type = E820_TYPE_RAM;
 			process_unaccepted_memory(d->phys_addr,
 						  d->phys_addr + PAGE_SIZE * d->num_pages);



[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