linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] RSEQ selftests uplift for glibc-2.35 compatibility
@ 2022-01-17 20:39 Mathieu Desnoyers
  2022-01-17 20:39 ` [RFC PATCH 1/5] selftests/rseq: Remove useless assignment to cpu variable Mathieu Desnoyers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Mathieu Desnoyers @ 2022-01-17 20:39 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: linux-kernel, Thomas Gleixner, Paul E . McKenney, Boqun Feng,
	H . Peter Anvin, Paul Turner, linux-api, Christian Brauner,
	Florian Weimer, David.Laight, carlos, Mathieu Desnoyers

glibc-2.35 will be released on 2022-02-01. It introduces a user-space ABI
based on the thread pointer to access a reserved area of the TCB.

The rseq selftests originally expected the rseq thread data to sit in a
__rseq_abi TLS variable.

Considering that the rseq ABI only allows a single rseq registration per
thread, both cannot actively coexist in a process.

Adapt the selftests librseq implementation to become compatible with
glibc-2.35. Keep a fallback implementation based on TLS available when
an older glibc is detected.

Feedback is welcome,

Thanks,

Mathieu

Mathieu Desnoyers (5):
  selftests/rseq: Remove useless assignment to cpu variable
  selftests/rseq: Remove volatile from __rseq_abi
  selftests/rseq: Introduce rseq_get_abi() helper
  selftests/rseq: Introduce thread pointer getters
  selftests/rseq: Uplift rseq selftests for compatibility with
    glibc-2.35

 tools/testing/selftests/rseq/Makefile         |   2 +-
 tools/testing/selftests/rseq/param_test.c     |   4 +-
 tools/testing/selftests/rseq/rseq-arm.h       |  32 ++--
 tools/testing/selftests/rseq/rseq-arm64.h     |  32 ++--
 .../rseq/rseq-generic-thread-pointer.h        |  25 +++
 tools/testing/selftests/rseq/rseq-mips.h      |  32 ++--
 .../selftests/rseq/rseq-ppc-thread-pointer.h  |  30 ++++
 tools/testing/selftests/rseq/rseq-ppc.h       |  32 ++--
 tools/testing/selftests/rseq/rseq-s390.h      |  24 +--
 .../selftests/rseq/rseq-thread-pointer.h      |  19 +++
 .../selftests/rseq/rseq-x86-thread-pointer.h  |  40 +++++
 tools/testing/selftests/rseq/rseq-x86.h       |  30 ++--
 tools/testing/selftests/rseq/rseq.c           | 161 +++++++++---------
 tools/testing/selftests/rseq/rseq.h           |  24 ++-
 14 files changed, 302 insertions(+), 185 deletions(-)
 create mode 100644 tools/testing/selftests/rseq/rseq-generic-thread-pointer.h
 create mode 100644 tools/testing/selftests/rseq/rseq-ppc-thread-pointer.h
 create mode 100644 tools/testing/selftests/rseq/rseq-thread-pointer.h
 create mode 100644 tools/testing/selftests/rseq/rseq-x86-thread-pointer.h

-- 
2.17.1


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

end of thread, other threads:[~2022-01-17 20:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-17 20:39 [RFC PATCH 0/5] RSEQ selftests uplift for glibc-2.35 compatibility Mathieu Desnoyers
2022-01-17 20:39 ` [RFC PATCH 1/5] selftests/rseq: Remove useless assignment to cpu variable Mathieu Desnoyers
2022-01-17 20:39 ` [RFC PATCH 2/5] selftests/rseq: Remove volatile from __rseq_abi Mathieu Desnoyers
2022-01-17 20:39 ` [RFC PATCH 3/5] selftests/rseq: Introduce rseq_get_abi() helper Mathieu Desnoyers
2022-01-17 20:39 ` [RFC PATCH 4/5] selftests/rseq: Introduce thread pointer getters Mathieu Desnoyers
2022-01-17 20:39 ` [RFC PATCH 5/5] selftests/rseq: Uplift rseq selftests for compatibility with glibc-2.35 Mathieu Desnoyers
2022-01-17 20:55 ` [RFC PATCH 0/5] RSEQ selftests uplift for glibc-2.35 compatibility Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).