x86/efistub: Drop redundant clearing of BSS
authorArd Biesheuvel <ardb@kernel.org>
Thu, 4 Jul 2024 09:03:24 +0000 (11:03 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 8 Jul 2024 08:17:45 +0000 (10:17 +0200)
commitebf5a79acf9a2970e93d30a9e97b08913ef15711
treecc03da135b0e386a378e862a42480c76069fde1e
parentfb318ca0a522295edd6d796fb987e99ec41f0ee5
x86/efistub: Drop redundant clearing of BSS

As it turns out, clearing the BSS was not the right fix for the issue
that was ultimately fixed by commit decd347c2a75 ("x86/efistub:
Reinstate soft limit for initrd loading"), and given that the Windows
EFI loader becomes very unhappy when entered with garbage in BSS, this
is one thing that x86 PC EFI implementations can be expected to get
right.

So drop it from the pure PE entrypoint. The handover protocol entrypoint
still needs this - it is used by the flaky distro bootloaders that
barely implement PE/COFF at all.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/x86-stub.c