[PATCH v2 2/4] arm64/signal: Flush FPSIMD register state when disabling streaming mode

Catalin Marinas catalin.marinas at arm.com
Wed Aug 17 07:09:46 PDT 2022


On Mon, Aug 15, 2022 at 02:28:32PM +0100, Mark Brown wrote:
> When handling a signal delivered to a context with streaming mode enabled
> we will disable streaming mode for the signal handler, when doing so we
> should also flush the saved FPSIMD register state like exiting streaming
> mode in the hardware would do so that if that state is reloaded we get the
> same behaviour. Without this we will reload whatever the last FPSIMD state
> that was saved for the task was.
> 
> Fixes: 40a8e87bb3285 ("arm64/sme: Disable ZA and streaming mode when handling signals")
> Signed-off-by: Mark Brown <broonie at kernel.org>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list