Skip to content

arm64: efi: Robustify EFI runtime wrapper code

Ard Biesheuvel linux-arm-kernel linux-efi stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64: efi: Execute runtime services from a dedicated stackarch/arm64/include/asm/efi.h arch/arm64/kernel/efi-rt-wrapper.S arch/arm64/kernel/efi.c+40 -116 replies
2/2arm64: efi: Recover from synchronous exceptions occurring in firmwarearch/arm64/include/asm/efi.h arch/arm64/kernel/efi-rt-wrapper.S arch/arm64/kernel/efi.c +2 more+61 -50 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchCatalin Marinas
1/2
2/2A-b

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

Read the v1 thread

Cover letter [PATCH 0/2] arm64: efi: Robustify EFI runtime wrapper code

Make the EFI runtime wrapper code more robust, by switching to a dedicated stack and dealing with sync exceptions occurring in firmware by unwinding it. While at it, move the backup copy of register X18 onto the base of that stack too so we can can restore it if needed without reloading it from the ordinary stack.

Patch #2 is a v2 of a patch that got merged and reverted again in v6.1-rc.

This supersedes 'arm64: efi: Move runtime services asm wrapper out of .text'

Cc Sami Tolvanen <[email protected]>
Cc Kees Cook <[email protected]>

Ard Biesheuvel (2):
arm64: efi: Execute runtime services from a dedicated stack
arm64: efi: Recover from synchronous exceptions occurring in firmware

 arch/arm64/include/asm/efi.h            | 11 +++++
 arch/arm64/kernel/efi-rt-wrapper.S      | 38 ++++++++++++++--
 arch/arm64/kernel/efi.c                 | 47 ++++++++++++++++++++
 arch/arm64/mm/fault.c                   |  4 ++
 drivers/firmware/efi/runtime-wrappers.c |  1 +
 5 files changed, 98 insertions(+), 3 deletions(-)
Signature · 1 line
2.35.1