[PATCH v2 0/2] efi/arm64: Simplify SVE/SME state preserve/restore

Ard Biesheuvel ardb at kernel.org
Sat Dec 6 11:01:15 PST 2025


The EFI specific SVE/SME state preserve/restore logic is unneeded, and
can be removed. Patch #1 adds some lkdtm test cases to emulate the
condition under which this code might be called.

v2:
- Document that BUG_IN_HARDIRQ and PANIC_IN_HARDIRQ will crash the
  system.
- Add Kees's R-b
- Rebase onto torvalds's tree of today so it is expected to apply
  cleanly to -rc1

Cc: Will Deacon <will at kernel.org>
Cc: Mark Rutland <mark.rutland at arm.com>
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: Mark Brown <broonie at kernel.org>
Cc: Kees Cook <keescook at chromium.org>

Ard Biesheuvel (2):
  lkdtm/bugs: Add cases for BUG and PANIC occurring in hardirq context
  arm64/efi: Remove unneeded SVE/SME fallback preserve/store handling

 arch/arm64/kernel/fpsimd.c              | 130 +++-----------------
 drivers/misc/lkdtm/bugs.c               |  53 ++++++++
 tools/testing/selftests/lkdtm/tests.txt |   2 +
 3 files changed, 75 insertions(+), 110 deletions(-)

-- 
2.47.3




More information about the linux-arm-kernel mailing list