Re: [PATCH 1/2] x86/boot/compressed/64: Remove .bss/.pgtable from bzImage

From: Sergey Shatunov
Date: Sun Apr 05 2020 - 12:37:26 EST


This patch causes some strange things happens with my laptop.

Cold boot crashed in some early initilization logic with message 'Failed to execute /esp/.../linux.efi: Buffer Too Small'.
After couple reboots into firmware setup (bios) or hot reboot from other working kernel (without that commit) helps it to boot.
During bisecting couple times I saw different message: 'exit_efi() failed; efi_main() failed', but above tricks helps it too.
So bisect points to that commit and I tried to compile kernel with that commit reverted and it works flawlessly.

Some notes about my setup:
Kernel tree I used: Torvalds git (which recently pulls that commit).
Kernel itself with initrd and cmdline packed into systemd-boot stub (probably here can be issues too, not sure).
Secure boot enabled with custom keyring.

I can provide more info or change my setup (for example get rid of systemd-boot stub) if needed for sure.