[RFC PATCH glibc 00/13] Restartable Sequences enablement
Mathieu Desnoyers
mathieu.desnoyers@efficios.com
Fri Dec 20 21:37:00 GMT 2019
Hi,
Please find the rseq-enablement patchset for comments in this series.
It has been modified following the discussions at the GNU Cauldron
in Montreal this Fall.
I will be on vacation for the next 2 weeks, so feedback from me
may be delayed until early January 2020.
This patch series is based on glibc master branch at commit
a059f9505b tunables: report sbrk() failure
Thanks for the feedback!
Mathieu
Florian Weimer (8):
Introduce <elf_machine_sym_no_match.h>
Implement __libc_early_init
nptl: Start new threads with all signals blocked [BZ #25098]
Linux: Add tables with system call numbers
Linux: Use system call tables during build
build-many-glibcs.py: Introduce LinuxHeadersPolicyForBuild
build-many-glibcs.py: Introduce glibc build policy classes
build-many-glibcs.py: Implement update-syscalls command
Mathieu Desnoyers (5):
glibc: Perform rseq(2) registration at C startup and thread creation
(v13)
glibc: sched_getcpu(): use rseq cpu_id TLS on Linux (v5)
support record failure: allow use from constructor
support: implement xpthread key create/delete (v3)
rseq registration tests (v7)
ChangeLog.old/ChangeLog.19 | 109 ++++
NEWS | 13 +-
csu/init-first.c | 4 -
csu/libc-start.c | 5 +
elf/Makefile | 5 +-
elf/Versions | 1 +
elf/dl-call-libc-early-init.c | 41 ++
elf/dl-load.c | 9 +
elf/dl-lookup-direct.c | 116 +++++
elf/dl-lookup.c | 10 +-
elf/dl-open.c | 24 +
elf/elf_machine_sym_no_match.h | 34 ++
elf/libc-early-init.h | 35 ++
elf/libc_early_init.c | 30 ++
elf/rtld.c | 4 +
manual/threads.texi | 17 +
misc/rseq-internal.h | 33 ++
nptl/descr.h | 10 +-
nptl/pthread_create.c | 57 ++-
scripts/build-many-glibcs.py | 285 +++++++----
support/Makefile | 2 +
support/check.h | 4 +
support/support_record_failure.c | 18 +-
support/xpthread_key_create.c | 25 +
support/xpthread_key_delete.c | 24 +
support/xthread.h | 2 +
sysdeps/generic/ldsodefs.h | 17 +
sysdeps/ia64/start.S | 1 -
sysdeps/mach/hurd/i386/init-first.c | 4 -
sysdeps/microblaze/backtrace_linux.c | 2 +-
sysdeps/mips/dl-machine.h | 15 -
sysdeps/mips/elf_machine_sym_no_match.h | 43 ++
sysdeps/unix/sysv/linux/Makefile | 84 +++-
sysdeps/unix/sysv/linux/Versions | 3 +
.../unix/sysv/linux/aarch64/arch-syscall.h | 290 +++++++++++
sysdeps/unix/sysv/linux/aarch64/bits/rseq.h | 43 ++
sysdeps/unix/sysv/linux/aarch64/libc.abilist | 1 +
sysdeps/unix/sysv/linux/alpha/arch-syscall.h | 468 ++++++++++++++++++
.../unix/sysv/linux/alpha/kernel-features.h | 5 -
sysdeps/unix/sysv/linux/alpha/libc.abilist | 1 +
sysdeps/unix/sysv/linux/alpha/sysdep.h | 25 -
sysdeps/unix/sysv/linux/arm/arch-syscall.h | 392 +++++++++++++++
sysdeps/unix/sysv/linux/arm/bits/rseq.h | 83 ++++
sysdeps/unix/sysv/linux/arm/dl-machine.h | 2 +-
.../unix/sysv/linux/arm/fixup-asm-unistd.h | 24 +
sysdeps/unix/sysv/linux/arm/le/libc.abilist | 1 +
sysdeps/unix/sysv/linux/arm/sysdep.h | 4 -
sysdeps/unix/sysv/linux/arm/tls.h | 2 +-
sysdeps/unix/sysv/linux/bits/rseq.h | 29 ++
sysdeps/unix/sysv/linux/csky/arch-syscall.h | 309 ++++++++++++
sysdeps/unix/sysv/linux/csky/libc.abilist | 1 +
sysdeps/unix/sysv/linux/fixup-asm-unistd.h | 28 ++
sysdeps/unix/sysv/linux/glibcsyscalls.py | 165 ++++++
sysdeps/unix/sysv/linux/hppa/arch-syscall.h | 371 ++++++++++++++
sysdeps/unix/sysv/linux/hppa/clone.S | 1 -
sysdeps/unix/sysv/linux/hppa/libc.abilist | 1 +
sysdeps/unix/sysv/linux/i386/arch-syscall.h | 425 ++++++++++++++++
sysdeps/unix/sysv/linux/i386/libc.abilist | 1 +
sysdeps/unix/sysv/linux/ia64/arch-syscall.h | 340 +++++++++++++
sysdeps/unix/sysv/linux/ia64/brk.S | 1 -
sysdeps/unix/sysv/linux/ia64/clone2.S | 4 +-
sysdeps/unix/sysv/linux/ia64/libc.abilist | 1 +
sysdeps/unix/sysv/linux/ia64/syscall.S | 2 +-
sysdeps/unix/sysv/linux/ia64/sysdep.S | 2 +-
sysdeps/unix/sysv/linux/ia64/sysdep.h | 5 +-
sysdeps/unix/sysv/linux/include/sys/syscall.h | 29 ++
sysdeps/unix/sysv/linux/m68k/arch-syscall.h | 407 +++++++++++++++
.../sysv/linux/m68k/coldfire/libc.abilist | 1 +
.../unix/sysv/linux/m68k/m680x0/libc.abilist | 1 +
.../unix/sysv/linux/microblaze/arch-syscall.h | 429 ++++++++++++++++
.../sysv/linux/microblaze/le/libc.abilist | 1 +
sysdeps/unix/sysv/linux/mips/bits/rseq.h | 62 +++
.../sysv/linux/mips/mips32/arch-syscall.h | 402 +++++++++++++++
.../sysv/linux/mips/mips32/fpu/libc.abilist | 1 +
.../sysv/linux/mips/mips32/nofpu/libc.abilist | 1 +
.../sysv/linux/mips/mips64/n32/arch-syscall.h | 362 ++++++++++++++
.../sysv/linux/mips/mips64/n32/libc.abilist | 1 +
.../sysv/linux/mips/mips64/n64/arch-syscall.h | 338 +++++++++++++
.../sysv/linux/mips/mips64/n64/libc.abilist | 1 +
sysdeps/unix/sysv/linux/mips/vfork.S | 1 -
sysdeps/unix/sysv/linux/nios2/arch-syscall.h | 311 ++++++++++++
sysdeps/unix/sysv/linux/nios2/libc.abilist | 1 +
sysdeps/unix/sysv/linux/nios2/sysdep.h | 1 -
sysdeps/unix/sysv/linux/powerpc/bits/rseq.h | 37 ++
.../linux/powerpc/powerpc32/arch-syscall.h | 417 ++++++++++++++++
.../linux/powerpc/powerpc32/fpu/libc.abilist | 1 +
.../powerpc/powerpc32/nofpu/libc.abilist | 1 +
.../linux/powerpc/powerpc64/arch-syscall.h | 389 +++++++++++++++
.../linux/powerpc/powerpc64/be/libc.abilist | 1 +
.../linux/powerpc/powerpc64/le/libc.abilist | 1 +
sysdeps/unix/sysv/linux/riscv/flush-icache.c | 1 +
.../unix/sysv/linux/riscv/rv64/arch-syscall.h | 291 +++++++++++
.../unix/sysv/linux/riscv/rv64/libc.abilist | 1 +
sysdeps/unix/sysv/linux/rseq-internal.h | 77 +++
sysdeps/unix/sysv/linux/rseq-sym.c | 43 ++
sysdeps/unix/sysv/linux/s390/bits/rseq.h | 37 ++
.../sysv/linux/s390/s390-32/arch-syscall.h | 406 +++++++++++++++
.../unix/sysv/linux/s390/s390-32/libc.abilist | 1 +
.../sysv/linux/s390/s390-64/arch-syscall.h | 354 +++++++++++++
.../unix/sysv/linux/s390/s390-64/libc.abilist | 1 +
sysdeps/unix/sysv/linux/sched_getcpu.c | 25 +-
sysdeps/unix/sysv/linux/sh/arch-syscall.h | 400 +++++++++++++++
sysdeps/unix/sysv/linux/sh/le/libc.abilist | 1 +
.../sysv/linux/sparc/sparc32/arch-syscall.h | 405 +++++++++++++++
sysdeps/unix/sysv/linux/sparc/sparc32/clone.S | 1 -
.../sysv/linux/sparc/sparc32/libc.abilist | 1 +
.../sysv/linux/sparc/sparc64/arch-syscall.h | 368 ++++++++++++++
sysdeps/unix/sysv/linux/sparc/sparc64/clone.S | 1 -
.../sysv/linux/sparc/sparc64/libc.abilist | 1 +
sysdeps/unix/sysv/linux/sys/rseq.h | 30 ++
sysdeps/unix/sysv/linux/sys/syscall.h | 11 +-
sysdeps/unix/sysv/linux/tst-glibcsyscalls.py | 88 ++++
sysdeps/unix/sysv/linux/tst-mman-consts.py | 12 +-
sysdeps/unix/sysv/linux/tst-rseq-nptl.c | 353 +++++++++++++
sysdeps/unix/sysv/linux/tst-rseq.c | 114 +++++
.../unix/sysv/linux/update-syscall-lists.py | 66 +++
sysdeps/unix/sysv/linux/x86/bits/rseq.h | 30 ++
.../unix/sysv/linux/x86_64/64/arch-syscall.h | 347 +++++++++++++
.../unix/sysv/linux/x86_64/64/libc.abilist | 1 +
.../unix/sysv/linux/x86_64/x32/arch-syscall.h | 336 +++++++++++++
.../unix/sysv/linux/x86_64/x32/libc.abilist | 1 +
121 files changed, 10871 insertions(+), 243 deletions(-)
create mode 100644 elf/dl-call-libc-early-init.c
create mode 100644 elf/dl-lookup-direct.c
create mode 100644 elf/elf_machine_sym_no_match.h
create mode 100644 elf/libc-early-init.h
create mode 100644 elf/libc_early_init.c
create mode 100644 misc/rseq-internal.h
create mode 100644 support/xpthread_key_create.c
create mode 100644 support/xpthread_key_delete.c
create mode 100644 sysdeps/mips/elf_machine_sym_no_match.h
create mode 100644 sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/aarch64/bits/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/alpha/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/arm/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/arm/bits/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/arm/fixup-asm-unistd.h
create mode 100644 sysdeps/unix/sysv/linux/bits/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/csky/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/fixup-asm-unistd.h
create mode 100644 sysdeps/unix/sysv/linux/glibcsyscalls.py
create mode 100644 sysdeps/unix/sysv/linux/hppa/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/i386/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/ia64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/include/sys/syscall.h
create mode 100644 sysdeps/unix/sysv/linux/m68k/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/mips/bits/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/nios2/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/rseq-internal.h
create mode 100644 sysdeps/unix/sysv/linux/rseq-sym.c
create mode 100644 sysdeps/unix/sysv/linux/s390/bits/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/sh/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/sys/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/tst-glibcsyscalls.py
create mode 100644 sysdeps/unix/sysv/linux/tst-rseq-nptl.c
create mode 100644 sysdeps/unix/sysv/linux/tst-rseq.c
create mode 100644 sysdeps/unix/sysv/linux/update-syscall-lists.py
create mode 100644 sysdeps/unix/sysv/linux/x86/bits/rseq.h
create mode 100644 sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
create mode 100644 sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
--
2.17.1
More information about the Libc-alpha
mailing list