On Fri, 15 Mar 2024 at 15:12, Radek Podgorny radek@podgorny.cz wrote:
hi ard, thanks for the effort!
so, your first recommended patch (the memset thing), applied to current mainline (6.8) DOES NOT resolve the issue.
the second recommendation, a revert patch, applied to the same mainline tree, indeed DOES resolve the problem.
just to be sure, i'm attaching the revert patch.
Actually, that is not the patch I had in mind.
Please revert
x86/efi: Drop EFI stub .bss from .data section
commit fa244085025f4a8fb38ec67af635aed04297758d in v6.6
(or apply the changes below by hand if that is easier for you)
--- a/arch/x86/boot/compressed/vmlinux.lds.S +++ b/arch/x86/boot/compressed/vmlinux.lds.S @@ -47,6 +47,7 @@ SECTIONS _data = . ; *(.data) *(.data.*) + *(.bss.efistub)
/* Add 4 bytes of extra space for a CRC-32 checksum */ . = ALIGN(. + 4, 0x200);
--- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -108,6 +108,13 @@ # https://bugs.llvm.org/show_bug.cgi?id=46480 STUBCOPY_FLAGS-y += --remove-section=.note.gnu.property
+STUBCOPY_FLAGS-$(CONFIG_X86) += --rename-section .bss=.bss.efistub,load,alloc STUBCOPY_RELOC-$(CONFIG_X86_32) := R_386_32 STUBCOPY_RELOC-$(CONFIG_X86_64) := R_X86_64_64