Skip to content
Commit 61da7c8e authored by Mark Brown's avatar Mark Brown Committed by Will Deacon
Browse files

arm64/signal: Don't assume that TIF_SVE means we saved SVE state



When we are in a syscall we will only save the FPSIMD subset even though
the task still has access to the full register set, and on context switch
we will only remove TIF_SVE when loading the register state. This means
that the signal handling code should not assume that TIF_SVE means that
the register state is stored in SVE format, it should instead check the
format that was recorded during save.

Fixes: 8c845e27 ("arm64/sve: Leave SVE enabled on syscall if we don't context switch")
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240130-arm64-sve-signal-regs-v2-1-9fc6f9502782@kernel.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 54be6c6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment