arm64/sme: Disable ZA and streaming mode when handling signals
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:25 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 22 Apr 2022 17:51:08 +0000 (18:51 +0100)
commit40a8e87bb32855b39839d35b5b5b125494b3a604
treefd4d7f65eb19a306cd43192eb8ca582ae99843c5
parent8bd7f91c03d886f41d35f6108078d20be5a4a1bd
arm64/sme: Disable ZA and streaming mode when handling signals

The ABI requires that streaming mode and ZA are disabled when invoking
signal handlers, do this in setup_return() when we prepare the task state
for the signal handler.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419112247.711548-18-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/signal.c