]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Move the rseq area to the 'extra TLS' block
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 10 Jul 2024 19:48:49 +0000 (15:48 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 10 Jan 2025 20:20:27 +0000 (20:20 +0000)
commit93d0bfbe8ffa9c3dcbfc8e953216542f500dac07
treee7e47bb8b3f6202e13f0a32f71c375ba1e4e9dcd
parent494d65129ed5ae1154b75cc189bbdde5e9ecf1df
nptl: Move the rseq area to the 'extra TLS' block

Move the rseq area to the newly added 'extra TLS' block, this is the
last step in adding support for the rseq extended ABI. The size of the
rseq area is now dynamic and depends on the rseq features reported by
the kernel through the elf auxiliary vector. This will allow
applications to use rseq features past the 32 bytes of the original rseq
ABI as they become available in future kernels.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
12 files changed:
nptl/pthread_create.c
sysdeps/nptl/dl-tls_init_tp.c
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/dl-parse_auxv.h
sysdeps/unix/sysv/linux/rseq-internal.h
sysdeps/unix/sysv/linux/sched_getcpu.c
sysdeps/unix/sysv/linux/tst-rseq-disable-static.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq-disable.c
sysdeps/unix/sysv/linux/tst-rseq-nptl-static.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq-static.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq.c
sysdeps/unix/sysv/linux/tst-rseq.h