]> 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)
commitca4df571bf321c0fc397a5866b6f6d9318bb092d
treef74c6bdce6e549e6aeb7100a34ca48a027ca4aea
parente708a76facf300f726c39794425454cf8187bd7e
arm64/signal: Always accept SVE signal frames on SME only systems

commit 7dde62f0687c8856b6c0660066c7ee83a6a6f033 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: d2ffdd115b0a ("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