]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Add rseq registration
authorFlorian Weimer <fweimer@redhat.com>
Thu, 9 Dec 2021 08:49:32 +0000 (09:49 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 9 Dec 2021 08:49:32 +0000 (09:49 +0100)
commit95e114a0919d844d8fe07839cb6538b7f5ee920e
tree530964270c0a6baf1dd741e00c4f5f205631d70e
parent8d1927d8dc5aad0f01c929123086be3a5b799d18
nptl: Add rseq registration

The rseq area is placed directly into struct pthread.  rseq
registration failure is not treated as an error, so it is possible
that threads run with inconsistent registration status.

<sys/rseq.h> is not yet installed as a public header.

Co-Authored-By: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
16 files changed:
nptl/descr.h
nptl/pthread_create.c
sysdeps/nptl/dl-tls_init_tp.c
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/aarch64/bits/rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/arm/bits/rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/bits/rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/mips/bits/rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/bits/rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/rseq-internal.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/s390/bits/rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/sys/rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq-nptl.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/x86/bits/rseq.h [new file with mode: 0644]