mirror-linux/tools/testing/selftests/arm64/abi
Mark Rutland be45e63f79 kselftest/arm64: tpidr2: Adjust to new clone() behaviour
In order to fix an ABI problem, we recently changed the way that a
clone() syscall manipulates TPIDR2 and PSTATE.ZA. Historically the child
would inherit the parent's TPIDR2 value unless CLONE_SETTLS was set, and
now the child will inherit the parent's TPIDR2 value unless CLONE_VM is
set.

Update the tpidr2 test for the new behaviour.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Daniel Kiss <daniel.kiss@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Richard Sandiford <richard.sandiford@arm.com>
Cc: Sander De Smalen <sander.desmalen@arm.com>
Cc: Tamas Petz <tamas.petz@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Yury Khrustalev <yury.khrustalev@arm.com>
Link: https://lore.kernel.org/r/20250508132644.1395904-23-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
2025-05-08 15:45:24 +01:00
..
.gitignore Merge branch 'for-next/kselftest' into for-next/core 2022-09-30 09:18:11 +01:00
Makefile Merge branch 'for-next/kselftest' into for-next/core 2022-09-30 09:18:11 +01:00
hwcap.c kselftest/arm64: Add 2024 dpISA extensions to hwcap test 2025-01-08 13:41:07 +00:00
ptrace.c kselftest/arm64: Fix build warnings for ptrace 2024-08-30 16:26:47 +01:00
syscall-abi-asm.S kselftest/arm64: abi: fix SVCR detection 2024-12-13 14:59:37 +00:00
syscall-abi.c kselftest/arm64: Fix printf() compiler warnings in the arm64 syscall-abi.c tests 2024-11-11 22:45:42 +00:00
syscall-abi.h kselftest/arm64: Add SME support to syscall ABI test 2022-04-28 17:57:12 +01:00
tpidr2.c kselftest/arm64: tpidr2: Adjust to new clone() behaviour 2025-05-08 15:45:24 +01:00