]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/signal: Always accept SVE signal frames on SME only systems
authorMark Brown <broonie@kernel.org>
Tue, 27 Dec 2022 17:12:05 +0000 (17:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:17 +0000 (11:58 +0100)
commitde41e0e521a140df55283becb68e6466c847844b
treef74c6bdce6e549e6aeb7100a34ca48a027ca4aea
parenta2f8551520ba2019a994cb078590426b9aaec8ca
arm64/signal: Always accept SVE signal frames on SME only systems

commit 803f54d457ea5f60dd196bde01883031e4fcfaec upstream.

Currently we reject an attempt to restore a SVE signal frame on a system
with SME but not SVE supported. This means that it is not possible to
disable streaming mode via signal return as this is configured via the
flags in the SVE signal context. Instead accept the signal frame, we will
require it to have a vector length of 0 specified and no payload since the
task will have no SVE vector length configured.

Fixes: e877f490cfc5 ("arm64/sme: Implement streaming SVE signal handling")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221223-arm64-fix-sme-only-v1-2-938d663f69e5@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/signal.c