[PATCH 0/3] arm64/fpsimd: State management fixes

Mark Rutland mark.rutland at arm.com
Tue Jan 20 06:51:04 PST 2026


Hi,

This series fixes some issues for FPSIMD/SVE/SME state management where
a task can be placed into an invalid state, resulting in subsequent
problems (warnings, kernel panics).

Patch 1 addresses an issue [1] reported by syzbot, which can only occur
on systems with SVE but not SME.

Patches 2 and 3 address issues I spotted while searching for similar
issues elsewhere. Thse issues can only occur on systems with SME.

While looking at this I spotted plenty of opportunities for cleanup and
improvement, but as that part became rather large/invasive I'm just
sending the fixes for now, and will follow up with the cleanups later.

Mark.

[1] https://lore.kernel.org/linux-arm-kernel/690a8dc2.050a0220.3d0d33.0018.GAE@google.com/

Mark Rutland (3):
  arm64/fpsimd: ptrace: Fix SVE writes on !SME systems
  arm64/fpsimd: signal: Allocate SSVE storage when restoring ZA
  arm64/fpsimd: signal: Fix restoration of SVE context

 arch/arm64/kernel/ptrace.c | 26 ++++++++++++--------------
 arch/arm64/kernel/signal.c | 26 ++++++++++++++++++++------
 2 files changed, 32 insertions(+), 20 deletions(-)

-- 
2.30.2




More information about the linux-arm-kernel mailing list