kselftest/arm64: Fix SVE write data generation for SME only systems
authorMark Brown <broonie@kernel.org>
Fri, 18 Jul 2025 22:14:51 +0000 (23:14 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Jul 2025 08:34:00 +0000 (09:34 +0100)
commitaa7d3c8bc27d32dec940c924d6d270fa312e731f
treef04a7976c01284cfe8ff4a9034a908b66b1f0666
parentb021f45d39f37f67005948a96abea84736890463
kselftest/arm64: Fix SVE write data generation for SME only systems

fp-ptrace does not handle SME only systems correctly when generating data,
on SME only systems scenarios where we are not in streaming mode will not
have an expected vector length. This leads to attempts to do memcpy()s of
zero byte arrays which can crash, fix this by skipping generation of SVE
data for cases where we do not expect to have an active vector length.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250718-arm64-fp-ptrace-sme-only-v1-2-3b96dd19a503@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/fp-ptrace.c