[PATCH 3/3] arm64: Unmask Debug + SError in do_notify_resume()

Mark Brown broonie at kernel.org
Thu Feb 8 06:08:27 PST 2024


On Tue, Feb 06, 2024 at 12:38:48PM +0000, Mark Rutland wrote:
> When returning to a user context, the arm64 entry code masks all DAIF
> exceptions before handling pending work in exit_to_user_mode_prepare()
> and do_notify_resume(), where it will transiently unmask all DAIF
> exceptions. This is a holdover from the old entry assembly, which
> conservatively masked all DAIF exceptions, and it's only necessary to
> mask interrupts at this point during the exception return path, so long
> as we subsequently mask all DAIF exceptions before the actual exception
> return.

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/20240208/0c28efc3/attachment.sig>


More information about the linux-arm-kernel mailing list