[PATCH] arm64/efi: only disable the EFI runtime service that faulted
Ard Biesheuvel
ardb at kernel.org
Wed Oct 21 23:05:17 PDT 2026
Hello Hamza,
On Thu, 22 Oct 2026, at 01:05, Hamza Mahfooz wrote:
> When the firmware faults while executing an EFI runtime service, arm64
> recovers from the exception, returns EFI_ABORTED to the caller and
> disables all EFI runtime services for the remainder of the boot.
>
> That is a rather big hammer.
It does not just return EFI_ABORTED to the caller. It basically does a
longjmp() out of the faulting context straight back to the caller in
the kernel, skipping all execution that would have occurred on the
way back out if the fault had not occurred.
Assuming that the runtime services are still in a sane state after this
is not justified, so I don't think making this change is a good idea.
Do the systems in question expose the RTC via the standardized ACPI
methods as well? I'd be fine with some logic that avoids rtc-efi
entirely if the RTC can be driven by a native ACPI driver: that
seems a worthwhile improvement in its own right, given that EFI
runtime services are evil and should be avoided where possible.
More information about the linux-arm-kernel
mailing list