[PATCH] arm64/entry: Mask DAIF in cpu_switch_to(), call_on_irq_stack()
Will Deacon
will at kernel.org
Tue Jul 22 08:59:45 PDT 2025
On Fri, 18 Jul 2025 15:28:14 +0100, Ada Couprie Diaz wrote:
> `cpu_switch_to()` and `call_on_irq_stack()` manipulate SP to change
> to different stacks along with the Shadow Call Stack if it is enabled.
> Those two stack changes cannot be done atomically and both functions
> can be interrupted by SErrors or Debug Exceptions which, though unlikely,
> is very much broken : if interrupted, we can end up with mismatched stacks
> and Shadow Call Stack leading to clobbered stacks.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64/entry: Mask DAIF in cpu_switch_to(), call_on_irq_stack()
https://git.kernel.org/arm64/c/d42e6c20de61
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list