[PATCH v2 01/24] arm64/fpsimd: Do not discard modified SVE state

Will Deacon will at kernel.org
Thu May 8 08:02:57 PDT 2025


On Thu, 08 May 2025 14:26:21 +0100, Mark Rutland wrote:
> Historically SVE state was discarded deterministically early in the
> syscall entry path, before ptrace is notified of syscall entry. This
> permitted ptrace to modify SVE state before and after the "real" syscall
> logic was executed, with the modified state being retained.
> 
> This behaviour was changed by commit:
> 
> [...]

Applied kernel changes to arm64 (for-next/sme-fixes), thanks!

[01/24] arm64/fpsimd: Do not discard modified SVE state
        https://git.kernel.org/arm64/c/398edaa12f9c
[02/24] arm64/fpsimd: signal: Clear PSTATE.SM when restoring FPSIMD frame only
        https://git.kernel.org/arm64/c/1bf663a86a45
[03/24] arm64/fpsimd: signal: Mandate SVE payload for streaming-mode state
        https://git.kernel.org/arm64/c/b465ace42620
[04/24] arm64/fpsimd: signal: Consistently read FPSIMD context
        https://git.kernel.org/arm64/c/be625d803c3b
[05/24] arm64/fpsimd: ptrace: Consistently handle partial writes to NT_ARM_(S)SVE
        https://git.kernel.org/arm64/c/316283f276eb
[06/24] arm64/fpsimd: Clarify sve_sync_*() functions
        https://git.kernel.org/arm64/c/b255be426913
[07/24] arm64/fpsimd: Factor out {sve,sme}_state_size() helpers
        https://git.kernel.org/arm64/c/8738288a08b8
[08/24] arm64/fpsimd: Add task_smstop_sm()
        https://git.kernel.org/arm64/c/6ef1d778ce56
[09/24] arm64/fpsimd: signal: Use SMSTOP behaviour in setup_return()
        https://git.kernel.org/arm64/c/99560c9452bb
[10/24] arm64/fpsimd: Remove redundant task->mm check
        https://git.kernel.org/arm64/c/8d61eef75679
[11/24] arm64/fpsimd: Consistently preserve FPSIMD state during clone()
        https://git.kernel.org/arm64/c/e0cb0f26594c
[12/24] arm64/fpsimd: Clear PSTATE.SM during clone()
        https://git.kernel.org/arm64/c/a6d066f70574
[13/24] arm64/fpsimd: Make clone() compatible with ZA lazy saving
        https://git.kernel.org/arm64/c/cde5c32db557
[14/24] arm64/fpsimd: ptrace/prctl: Ensure VL changes do not resurrect stale data
        https://git.kernel.org/arm64/c/49ce484187f7
[15/24] arm64/fpsimd: ptrace/prctl: Ensure VL changes leave task in a valid state
        https://git.kernel.org/arm64/c/b87c8c4aca11
[16/24] arm64/fpsimd: ptrace: Save task state before generating SVE header
        https://git.kernel.org/arm64/c/054d627c5554
[17/24] arm64/fpsimd: ptrace: Do not present register data for inactive mode
        https://git.kernel.org/arm64/c/b93e685ecff7
[18/24] arm64/fpsimd: ptrace: Mandate SVE payload for streaming-mode state
        https://git.kernel.org/arm64/c/f916dd32a943
[19/24] arm64/fpsimd: ptrace: Gracefully handle errors
        https://git.kernel.org/arm64/c/9f8bf718f292
[20/24] arm64/fpsimd: Allow CONFIG_ARM64_SME to be selected
        https://git.kernel.org/arm64/c/33c4618d0ac0

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list