From: Mark Brown broonie@kernel.org
mainline inclusion from mainline-v6.2-rc4 commit f26cd7372160da2eba31061d7943348ab9f2c01d category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8E73O CVE: NA
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=...
-------------------------------------------------
Currently we only allocate space for SVE signal frames on systems that support SVE, meaning that SME only systems do not allocate a signal frame for streaming mode SVE state. Change the check so space is allocated if either feature is supported.
Fixes: 85ed24dad290 ("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-3-938d663f69e5@kern... Signed-off-by: Will Deacon will@kernel.org Signed-off-by: Wang ShaoBo bobo.shaobowang@huawei.com --- arch/arm64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 07485ac445ee4..2292a0db6ec10 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -593,7 +593,7 @@ int setup_sigframe_layout(struct rt_sigframe_user_layout *user, bool add_all) return err; }
- if (system_supports_sve()) { + if (system_supports_sve() || system_supports_sme()) { unsigned int vq = 0;
if (add_all || test_thread_flag(TIF_SVE) ||