[PATCH 3/3] arm64/fpsimd: signal: Fix restoration of SVE context

Mark Brown broonie at kernel.org
Tue Jan 20 08:15:22 PST 2026


On Tue, Jan 20, 2026 at 02:51:07PM +0000, Mark Rutland wrote:

> For consistency, I've pulled the manipulation of SVCR, TIF_SVE, TIF_SME,
> and fp_type earlier, immediately after the allocation of
> sve_state/sme_state, before the restore of the actual register state.
> This makes it easier to ensure that these are always modified
> consistently, even if a fault is taken while reading the register data
> from the signal context. I do not expect any software to depend on the
> exact state restored when a fault is taken while reading the context.

It'd be astonishing if that were an issue:

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/20260120/5706e302/attachment.sig>


More information about the linux-arm-kernel mailing list