public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: efi: Robustify EFI runtime wrapper code
@ 2022-12-05 20:12 Ard Biesheuvel
  2022-12-05 20:12 ` [PATCH 1/2] arm64: efi: Execute runtime services from a dedicated stack Ard Biesheuvel
  2022-12-05 20:12 ` [PATCH 2/2] arm64: efi: Recover from synchronous exceptions occurring in firmware Ard Biesheuvel
  0 siblings, 2 replies; 19+ messages in thread
From: Ard Biesheuvel @ 2022-12-05 20:12 UTC (permalink / raw)
  To: linux-efi
  Cc: linux-arm-kernel, will, catalin.marinas, mark.rutland,
	Ard Biesheuvel, Sami Tolvanen, Kees Cook

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 <samitolvanen@google.com>
Cc: Kees Cook <keescook@chromium.org>

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(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-03-09 10:15 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-05 20:12 [PATCH 0/2] arm64: efi: Robustify EFI runtime wrapper code Ard Biesheuvel
2022-12-05 20:12 ` [PATCH 1/2] arm64: efi: Execute runtime services from a dedicated stack Ard Biesheuvel
2022-12-09 10:51   ` Mark Rutland
2022-12-09 10:53     ` Ard Biesheuvel
2023-01-04 10:40   ` Lee Jones
2023-01-04 13:56     ` Ard Biesheuvel
2023-01-04 14:42       ` Lee Jones
2023-01-04 14:52         ` Greg KH
2023-01-04 16:13       ` Mark Rutland
2023-01-04 16:15         ` Ard Biesheuvel
2023-01-04 16:30           ` Mark Rutland
2023-01-04 16:32             ` Ard Biesheuvel
2023-01-05 11:13               ` Greg KH
2023-01-17 16:56                 ` Lee Jones
2023-01-22 13:48                   ` Greg KH
2025-03-09 10:14                   ` SDL
2023-01-05 12:56               ` Mark Rutland
2023-01-05 13:37                 ` Ard Biesheuvel
2022-12-05 20:12 ` [PATCH 2/2] arm64: efi: Recover from synchronous exceptions occurring in firmware Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox