[RFC PATCH 33/36] arm64/efi: Add ALLINT to IRQ flags checks
Jinjie Ruan
ruanjinjie at huawei.com
Mon Jul 13 01:03:48 PDT 2026
On 7/9/2026 8:13 PM, Vladimir Murzin wrote:
> EFI is not expected to modify PSTATE.ALLINT, so check that it remains
> unchanged across EFI runtime calls.
>
> Signed-off-by: Vladimir Murzin <vladimir.murzin at arm.com>
> ---
> arch/arm64/include/asm/efi.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h
> index 479741d52c90..ea8403c7bdaf 100644
> --- a/arch/arm64/include/asm/efi.h
> +++ b/arch/arm64/include/asm/efi.h
> @@ -78,6 +78,10 @@ do { \
> pr_err_ratelimited(FW_BUG "DAIF+PMR corrupted (0x%x + 0x%x=>0x%x + 0x%x) by EFI call from %pS\n", \
> __expected.daif, __expected.pmr, __actual.daif, __actual.pmr, \
> caller ?: __builtin_return_address(0)); \
> + } else if (system_uses_nmi()) { \
> + pr_err_ratelimited(FW_BUG "DAIF+ALLINT corrupted (0x%x + 0x%x=>0x%x + 0x%x) by EFI call from %pS\n", \
> + __expected.daif, __expected.allint, __actual.daif, __actual.allint, \
> + caller ?: __builtin_return_address(0)); \
Reviewed-by: Jinjie Ruan <ruanjinjie at huawei.com>
> } else { \
> pr_err_ratelimited(FW_BUG "DAIF corrupted (0x%x=>0x%x) by EFI call from %pS\n", \
> __expected.daif, __actual.daif, \
More information about the linux-arm-kernel
mailing list