efi: Allow initrd LoadFile2 proto on loaded image
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 0 repliesNew
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- pass 'end of device path' to LoadFile2() when grabbing the protocol from the loaded image instead of from the initrd global device path
- add Ilias's tags
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | efi/libstub: Use const qualified device path protocol pointersdrivers/ drivers/ drivers/ | +5 | 0 replies | |
| 2/3 | efi/libstub: Pass loaded image EFI handle to efi_load_initrd()drivers/ drivers/ drivers/ +1 more | +8 | 0 replies | |
| 3/3 | efi/libstub: Look for initrd LoadFile2 protocol on image handledrivers/ include/ include/ | +35 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Ilias Apalodimas |
|---|---|
| 1/3 | |
| 2/3 | T-b R-b |
| 3/3 | T-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] efi: Allow initrd LoadFile2 proto on loaded image
Rework the code that loads the initrd via LoadFile2 so that it looks for the protocol on the loaded image handle first, and only if it doesn't find it here, on the global singleton device path. This works around reported issues where intermediate loader stages are providing an initrd via this mechanism, and subsequently loading another intermediate boot stage that does the same.
Changes since v1:
- pass 'end of device path' to LoadFile2() when grabbing the protocol from the loaded image instead of from the initrd global device path
- add Ilias's tags
Ard Biesheuvel (3):
efi/libstub: Use const qualified device path protocol pointers efi/libstub: Pass loaded image EFI handle to efi_load_initrd() efi/libstub: Look for initrd LoadFile2 protocol on image handle
drivers/firmware/efi/libstub/efi-stub-helper.c | 56 ++++++++++++-------- drivers/firmware/efi/libstub/efi-stub.c | 4 +- drivers/firmware/efi/libstub/efistub.h | 7 +-- drivers/firmware/efi/libstub/file.c | 2 +- drivers/firmware/efi/libstub/x86-stub.c | 4 +- include/linux/efi.h | 1 + include/linux/pe.h | 2 +- 7 files changed, 46 insertions(+), 30 deletions(-)
Signature · 1 line
2.39.2