mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
e546cd48cc
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 |
||
---|---|---|
.. | ||
.gitignore | ||
basic_percpu_ops_test.c | ||
basic_test.c | ||
Makefile | ||
param_test.c | ||
rseq-abi.h | ||
rseq-arm64.h | ||
rseq-arm.h | ||
rseq-mips.h | ||
rseq-ppc.h | ||
rseq-s390.h | ||
rseq-skip.h | ||
rseq-x86.h | ||
rseq.c | ||
rseq.h | ||
run_param_test.sh | ||
settings |