* Increasing EFI_MMAP_NR_SLACK_SLOTS
@ 2021-09-02 22:26 Víctor Gonzalo
0 siblings, 0 replies; only message in thread
From: Víctor Gonzalo @ 2021-09-02 22:26 UTC (permalink / raw)
I had an issue in a big server in which no linux distro I tried was
able to boot. It failed with the messages:
EFI stub: ERROR: exit_boot() failed!
EFI stub: ERROR: efi_main() failed!
Digging through the rabbit hole I reached the error in the call to
efi_bs_call(get_memory_map) inside efi_exit_boot_services() in
efi-stub-helper.c which returned EFI_BUFFER_TOO_SMALL, so everything
collapsed after that.
It looks like despite what the comment suggests, the headroom was not enough.
I fixed it by increasing the value of EFI_MMAP_NR_SLACK_SLOTS to 16.
Is this the right approach to fix the issue?
Would it be ok to change the value in the mainline?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-02 22:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 22:26 Increasing EFI_MMAP_NR_SLACK_SLOTS Víctor Gonzalo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).