All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] arm64/signal: Support TPIDR2
@ 2022-10-28 18:50 Mark Brown
  2022-10-28 18:50 ` [PATCH v1 1/4] arm64/sme: Document ABI for TPIDR2 signal information Mark Brown
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mark Brown @ 2022-10-28 18:50 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Shuah Khan, Shuah Khan
  Cc: Szabolcs Nagy, linux-arm-kernel, Mark Brown

When SME support was merged support for TPIDR2 in signal frames was
omitted, meaning that it was not possible for signal handers to inspect
or modify it. This will present an issue for programs using signals to
implement lightweight threads so let's provide access to TPIDR2 in
signal handlers.

Implement a new record type for TPIDR2 using the same format as we use
for ESR and add coverage to make sure that this appears in the signal
context as expected.  Due to TPIDR2 being reserved for libc we only
validate that the value is unchanged, meaning we're likely to just be
validating the default value of 0 on current systems. I have tested with
a modified version that sets an explicit value.

Mark Brown (4):
  arm64/sme: Document ABI for TPIDR2 signal information
  arm64/signal: Include TPIDR2 in the signal context
  kselftest/arm64: Add TPIDR2 to the set of known signal context records
  kselftest/arm64: Add test case for TPIDR2 signal frame records

 Documentation/arm64/sme.rst                   |  3 +
 arch/arm64/include/uapi/asm/sigcontext.h      |  8 ++
 arch/arm64/kernel/signal.c                    | 59 ++++++++++++
 .../testing/selftests/arm64/signal/.gitignore |  1 +
 .../arm64/signal/testcases/testcases.c        |  4 +
 .../arm64/signal/testcases/tpidr2_siginfo.c   | 90 +++++++++++++++++++
 6 files changed, 165 insertions(+)
 create mode 100644 tools/testing/selftests/arm64/signal/testcases/tpidr2_siginfo.c


base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-10-31 15:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 18:50 [PATCH v1 0/4] arm64/signal: Support TPIDR2 Mark Brown
2022-10-28 18:50 ` [PATCH v1 1/4] arm64/sme: Document ABI for TPIDR2 signal information Mark Brown
2022-10-28 18:50 ` [PATCH v1 2/4] arm64/signal: Include TPIDR2 in the signal context Mark Brown
2022-10-31 15:05   ` Szabolcs Nagy
2022-10-31 15:34     ` Mark Brown
2022-10-31 15:47       ` Szabolcs Nagy
2022-10-31 15:52         ` Mark Brown
2022-10-28 18:50 ` [PATCH v1 3/4] kselftest/arm64: Add TPIDR2 to the set of known signal context records Mark Brown
2022-10-28 18:50 ` [PATCH v1 4/4] kselftest/arm64: Add test case for TPIDR2 signal frame records Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.