Ben reported that distro GRUB may fail to boot in some circumstances, and tracked it down to an issue in the way distro GRUB allocates space for the image. Due to an oversight (addressed in patch #2), this condition is rarely triggered, but let's work around it in any case (#1) Remaining patches add further warnings for conditions that are unlikely to occur, but should not be ignored. Build tested only. Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Ard Biesheuvel (4): efi/libstub: arm64: Force Image reallocation if BSS was not reserved efi/libstub: arm64: Relax 2M alignment again for relocatable kernels efi/libstub: arm64: Warn when efi_random_alloc() fails efi/libstub: arm64: Double check image alignment at entry drivers/firmware/efi/libstub/arm64-stub.c | 71 +++++++++++++++++--- 1 file changed, 61 insertions(+), 10 deletions(-) -- 2.20.1