-
- Downloads
selftests/rseq: Introduce rseq_get_abi() helper
This is done in preparation for the selftest uplift to become compatible with glibc-2.35. glibc-2.35 exposes the rseq per-thread data in the TCB, accessible at an offset from the thread pointer, rather than through an actual Thread-Local Storage (TLS) variable, as the kernel selftests initially expected. Introduce a rseq_get_abi() helper, initially using the __rseq_abi TLS variable, in preparation for changing this userspace ABI for one which is compatible with glibc-2.35. Note that the __rseq_abi TLS and glibc-2.35's ABI for per-thread data cannot actively coexist in a process, because the kernel supports only a single rseq registration per thread. Signed-off-by:Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20220124171253.22072-6-mathieu.desnoyers@efficios.com
Showing
- tools/testing/selftests/rseq/rseq-arm.h 16 additions, 16 deletionstools/testing/selftests/rseq/rseq-arm.h
- tools/testing/selftests/rseq/rseq-arm64.h 16 additions, 16 deletionstools/testing/selftests/rseq/rseq-arm64.h
- tools/testing/selftests/rseq/rseq-mips.h 16 additions, 16 deletionstools/testing/selftests/rseq/rseq-mips.h
- tools/testing/selftests/rseq/rseq-ppc.h 16 additions, 16 deletionstools/testing/selftests/rseq/rseq-ppc.h
- tools/testing/selftests/rseq/rseq-s390.h 12 additions, 12 deletionstools/testing/selftests/rseq/rseq-s390.h
- tools/testing/selftests/rseq/rseq-x86.h 15 additions, 15 deletionstools/testing/selftests/rseq/rseq-x86.h
- tools/testing/selftests/rseq/rseq.h 8 additions, 3 deletionstools/testing/selftests/rseq/rseq.h
Loading
Please register or sign in to comment