[PATCH 13/14] arm64/fpsimd: signal: Always save+flush state early

Mark Brown broonie at kernel.org
Mon Apr 7 12:12:22 PDT 2025


On Fri, Apr 04, 2025 at 06:44:34PM +0100, Mark Rutland wrote:
> There are several issues with the way the native signal handling code
> manipulates FPSIMD/SVE/SME state, described in detail below. These
> issues largely result from races with preemption and inconsistent
> handling of live state vs saved state.

> ---
>  arch/arm64/include/asm/fpsimd.h |  1 -
>  arch/arm64/kernel/fpsimd.c      | 28 --------------
>  arch/arm64/kernel/signal.c      | 66 ++++++---------------------------
>  3 files changed, 12 insertions(+), 83 deletions(-)

The diffstat involves a lot of no longer needed comments but it's a good
sign of the improvements we're seeing here:

Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250407/121b2352/attachment.sig>


More information about the linux-arm-kernel mailing list