Skip to content

efi/arm64: work around Image placement issues

Ard Biesheuvel linux-arm-kernel linux-efi stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesIn review
  2. v22 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4efi/libstub: arm64: Force Image reallocation if BSS was not reserveddrivers/firmware/efi/libstub/arm64-stub.c+48 -10 replies
2/4efi/libstub: arm64: Relax 2M alignment again for relocatable kernelsdrivers/firmware/efi/libstub/arm64-stub.c+13 -150 replies
3/4efi/libstub: arm64: Warn when efi_random_alloc() failsdrivers/firmware/efi/libstub/arm64-stub.c+2 -00 replies
4/4efi/libstub: arm64: Double check image alignment at entrydrivers/firmware/efi/libstub/arm64-stub.c+4 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchBenjamin Herrenschmidt
SeriesT-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] efi/arm64: work around Image placement issues

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 <[email protected]>

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(-)
Signature · 1 line
2.20.1