]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kselftest/arm64: abi: fix SVCR detection
authorWeizhao Ouyang <o451686892@gmail.com>
Wed, 11 Dec 2024 11:16:39 +0000 (19:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:22 +0000 (18:13 +0100)
commit7ccd62135403ef2395406eeef9435db27b2a22a9
treeb4727cb05195eb5d96e93ba725367bac4b47166c
parenteea698975153f1c2d99a9af49ba6fa3a63cd1ab4
kselftest/arm64: abi: fix SVCR detection

[ Upstream commit ce03573a1917532da06057da9f8e74a2ee9e2ac9 ]

When using svcr_in to check ZA and Streaming Mode, we should make sure
that the value in x2 is correct, otherwise it may trigger an Illegal
instruction if FEAT_SVE and !FEAT_SME.

Fixes: 43e3f85523e4 ("kselftest/arm64: Add SME support to syscall ABI test")
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241211111639.12344-1-o451686892@gmail.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/arm64/abi/syscall-abi-asm.S