]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/arm64: tpidr2: Adjust to new clone() behaviour
authorMark Rutland <mark.rutland@arm.com>
Thu, 8 May 2025 13:26:42 +0000 (14:26 +0100)
committerWill Deacon <will@kernel.org>
Thu, 8 May 2025 14:45:24 +0000 (15:45 +0100)
commitbe45e63f79ecfea8373f18f50330838d77553a6b
treefa53bb834ce304ff2f6f47e981b19e974f006f0c
parent78b23877dbba7dbcda2b89383d17bed82ce8f663
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>
tools/testing/selftests/arm64/abi/tpidr2.c