]> www.infradead.org Git - users/dwmw2/linux.git/commit
kselftest/arm64: Add a test case for TPIDR2 restore
authorMark Brown <broonie@kernel.org>
Thu, 22 Jun 2023 13:39:46 +0000 (14:39 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 23 Jun 2023 17:32:10 +0000 (18:32 +0100)
commitf7a5d72edc522b9210521d9b3969eac221eb6ecb
tree22838016dfd53d0a1cb83e42a8aa7dc6a039bf87
parent616cb2f4b141852cac3dfffe8354c8bf19e9999d
kselftest/arm64: Add a test case for TPIDR2 restore

Due to the fact that TPIDR2 is intended to be managed by libc we don't
currently test modifying it via the signal context since that might
disrupt libc's usage of it and cause instability. We can however test the
opposite case with less risk, modifying TPIDR2 in a signal handler and
making sure that the original value is restored after returning from the
signal handler. Add a test which does this.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230621-arm64-fix-tpidr2-signal-restore-v2-2-c8e8fcc10302@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/signal/.gitignore
tools/testing/selftests/arm64/signal/testcases/tpidr2_restore.c [new file with mode: 0644]