[PATCH] arm64/ptrace: Don't clear calling process' TIF_SME on OOM

Will Deacon will at kernel.org
Thu Sep 8 07:06:31 PDT 2022


On Fri, 2 Sep 2022 14:28:02 +0100, Mark Brown wrote:
> If allocating memory for the target SVE state in za_set() fails we clear
> TIF_SME for the ptracing task which is obviously not correct.  If we are
> here we know that the target task already had neither TIF_SVE nor
> TIF_SME set since we only need to allocate if either the target had not
> used either SVE or SME and had no need to allocate state before or we
> just changed the vector length with vec_set_vector_length() which clears
> TIF_ for us on allocation failure so just remove the clear entirely.
> 
> [...]

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

[1/1] arm64/ptrace: Don't clear calling process' TIF_SME on OOM
      https://git.kernel.org/arm64/c/d105d6920ec7

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list