[PATCH] arm64: syscall: unmask DAIF earlier for SVCs

Mark Brown broonie at kernel.org
Tue Aug 8 06:48:24 PDT 2023


On Tue, Aug 08, 2023 at 11:11:48AM +0100, Mark Rutland wrote:

>   As fp_user_discard() operates on the live FP/SVE/SME register state,
>   this needs to occur before we clear DAIF.IF, as interrupts could
>   result in preemption which would cause this state to become foreign.
>   As fp_user_discard() is the first function called within do_el0_svc(),
>   it has no dependency on other parts of do_el0_svc() and can be moved
>   earlier so long as it is called prior to unmasking DAIF.IF.

The FP bits of this look good:

Reviewed-by: Mark Brown <broonie at kernel.org>

(the rest makes sense too but I didn't check in detail.)
-------------- 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/20230808/ec378489/attachment.sig>


More information about the linux-arm-kernel mailing list