Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'efi-fixes-for-v6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi

Pull EFI fix from Ard Biesheuvel:
"This fixes an oversight on my part in the recent EFI stub rework for
x86, which is needed to get Linux/x86 distro builds signed again for
secure boot by Microsoft. For this reason, most of this work is being
backported to v6.1, which is therefore also affected by this
regression.

- Explicitly wipe BSS in the native EFI entrypoint, so that globals
shared with the legacy decompressor are zero-initialized correctly"

* tag 'efi-fixes-for-v6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
x86/efistub: Clear decompressor BSS in native EFI entrypoint

+4 -2
+4 -2
drivers/firmware/efi/libstub/x86-stub.c
··· 21 21 #include "efistub.h" 22 22 #include "x86-stub.h" 23 23 24 + extern char _bss[], _ebss[]; 25 + 24 26 const efi_system_table_t *efi_system_table; 25 27 const efi_dxe_services_table_t *efi_dxe_table; 26 28 static efi_loaded_image_t *image = NULL; ··· 475 473 int options_size = 0; 476 474 efi_status_t status; 477 475 char *cmdline_ptr; 476 + 477 + memset(_bss, 0, _ebss - _bss); 478 478 479 479 efi_system_table = sys_table_arg; 480 480 ··· 974 970 void efi_handover_entry(efi_handle_t handle, efi_system_table_t *sys_table_arg, 975 971 struct boot_params *boot_params) 976 972 { 977 - extern char _bss[], _ebss[]; 978 - 979 973 memset(_bss, 0, _ebss - _bss); 980 974 efi_stub_entry(handle, sys_table_arg, boot_params); 981 975 }