Re: [PATCH] arm64/ptrace: Ensure that SME is set up for target when writing SSVE state

From: Catalin Marinas
Date: Thu Aug 17 2023 - 14:55:21 EST


On Thu, 10 Aug 2023 12:28:19 +0100, Mark Brown wrote:
> When we use NT_ARM_SSVE to either enable streaming mode or change the
> vector length for a process we do not currently do anything to ensure that
> there is storage allocated for the SME specific register state. If the
> task had not previously used SME or we changed the vector length then
> the task will not have had TIF_SME set or backing storage for ZA/ZT
> allocated, resulting in inconsistent register sizes when saving state
> and spurious traps which flush the newly set register state.
>
> [...]

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

[1/1] arm64/ptrace: Ensure that SME is set up for target when writing SSVE state
https://git.kernel.org/arm64/c/5d0a8d2fba50

--
Catalin