glibc/nptl
Adhemerval Zanella 89b53077d2 nptl: Fix Race conditions in pthread cancellation [BZ#12683]
The current racy approach is to enable asynchronous cancellation
before making the syscall and restore the previous cancellation
type once the syscall returns, and check if cancellation has happen
during the cancellation entrypoint.

As described in BZ#12683, this approach shows 2 problems:

  1. Cancellation can act after the syscall has returned from the
     kernel, but before userspace saves the return value.  It might
     result in a resource leak if the syscall allocated a resource or a
     side effect (partial read/write), and there is no way to program
     handle it with cancellation handlers.

  2. If a signal is handled while the thread is blocked at a cancellable
     syscall, the entire signal handler runs with asynchronous
     cancellation enabled.  This can lead to issues if the signal
     handler call functions which are async-signal-safe but not
     async-cancel-safe.

For the cancellation to work correctly, there are 5 points at which the
cancellation signal could arrive:

	[ ... )[ ... )[ syscall ]( ...
	   1      2        3    4   5

  1. Before initial testcancel, e.g. [*... testcancel)
  2. Between testcancel and syscall start, e.g. [testcancel...syscall start)
  3. While syscall is blocked and no side effects have yet taken
     place, e.g. [ syscall ]
  4. Same as 3 but with side-effects having occurred (e.g. a partial
     read or write).
  5. After syscall end e.g. (syscall end...*]

And libc wants to act on cancellation in cases 1, 2, and 3 but not
in cases 4 or 5.  For the 4 and 5 cases, the cancellation will eventually
happen in the next cancellable entrypoint without any further external
event.

The proposed solution for each case is:

  1. Do a conditional branch based on whether the thread has received
     a cancellation request;

  2. It can be caught by the signal handler determining that the saved
     program counter (from the ucontext_t) is in some address range
     beginning just before the "testcancel" and ending with the
     syscall instruction.

  3. SIGCANCEL can be caught by the signal handler and determine that
     the saved program counter (from the ucontext_t) is in the address
     range beginning just before "testcancel" and ending with the first
     uninterruptable (via a signal) syscall instruction that enters the
      kernel.

  4. In this case, except for certain syscalls that ALWAYS fail with
     EINTR even for non-interrupting signals, the kernel will reset
     the program counter to point at the syscall instruction during
     signal handling, so that the syscall is restarted when the signal
     handler returns.  So, from the signal handler's standpoint, this
     looks the same as case 2, and thus it's taken care of.

  5. For syscalls with side-effects, the kernel cannot restart the
     syscall; when it's interrupted by a signal, the kernel must cause
     the syscall to return with whatever partial result is obtained
     (e.g. partial read or write).

  6. The saved program counter points just after the syscall
     instruction, so the signal handler won't act on cancellation.
     This is similar to 4. since the program counter is past the syscall
     instruction.

So The proposed fixes are:

  1. Remove the enable_asynccancel/disable_asynccancel function usage in
     cancellable syscall definition and instead make them call a common
     symbol that will check if cancellation is enabled (__syscall_cancel
     at nptl/cancellation.c), call the arch-specific cancellable
     entry-point (__syscall_cancel_arch), and cancel the thread when
     required.

  2. Provide an arch-specific generic system call wrapper function
     that contains global markers.  These markers will be used in
     SIGCANCEL signal handler to check if the interruption has been
     called in a valid syscall and if the syscalls has side-effects.

     A reference implementation sysdeps/unix/sysv/linux/syscall_cancel.c
     is provided.  However, the markers may not be set on correct
     expected places depending on how INTERNAL_SYSCALL_NCS is
     implemented by the architecture.  It is expected that all
     architectures add an arch-specific implementation.

  3. Rewrite SIGCANCEL asynchronous handler to check for both canceling
     type and if current IP from signal handler falls between the global
     markers and act accordingly.

  4. Adjust libc code to replace LIBC_CANCEL_ASYNC/LIBC_CANCEL_RESET to
     use the appropriate cancelable syscalls.

  5. Adjust 'lowlevellock-futex.h' arch-specific implementations to
     provide cancelable futex calls.

Some architectures require specific support on syscall handling:

  * On i386 the syscall cancel bridge needs to use the old int80
    instruction because the optimized vDSO symbol the resulting PC value
    for an interrupted syscall points to an address outside the expected
    markers in __syscall_cancel_arch.  It has been discussed in LKML [1]
    on how kernel could help userland to accomplish it, but afaik
    discussion has stalled.

    Also, sysenter should not be used directly by libc since its calling
    convention is set by the kernel depending of the underlying x86 chip
    (check kernel commit 30bfa7b3488bfb1bb75c9f50a5fcac1832970c60).

  * mips o32 is the only kABI that requires 7 argument syscall, and to
    avoid add a requirement on all architectures to support it, mips
    support is added with extra internal defines.

Checked on aarch64-linux-gnu, arm-linux-gnueabihf, powerpc-linux-gnu,
powerpc64-linux-gnu, powerpc64le-linux-gnu, i686-linux-gnu, and
x86_64-linux-gnu.

[1] https://lkml.org/lkml/2016/3/8/1105
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2024-08-23 14:27:43 -03:00
..
alloca_cutoff.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
allocatestack.c elf: Clarify and invert second argument of _dl_allocate_tls_init 2024-08-05 18:26:42 +02:00
cancellation.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
cleanup_compat.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
cleanup_defer_compat.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
cleanup_defer.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
cleanup_routine.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
cleanup.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
default-sched.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
descr-const.sym nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
descr.h nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
DESIGN-systemtap-probes.txt nptl: Add POSIX-proposed pthread_mutex_clocklock 2019-07-12 13:36:25 +00:00
elision-conf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
elision-conf.h
elision-lock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
elision-timed.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
elision-trylock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
elision-unlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
errno-loc.c
events.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
futex-internal.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
libc-cleanup.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
libpthread-compat.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
lowlevellock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Makefile nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
nptl_deallocate_tsd.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
nptl_free_tcb.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nptl_lock_constants.pysym New pthread rwlock that is more scalable. 2017-01-10 11:50:17 +01:00
nptl_nthreads.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nptl_setxid.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nptl-printers.py treewide: python-scripts: use is None for none-equality 2024-02-23 08:50:00 -03:00
nptl-stack.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nptl-stack.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nptlfreeres.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
old_pthread_cond_broadcast.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
old_pthread_cond_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
old_pthread_cond_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
old_pthread_cond_signal.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
old_pthread_cond_timedwait.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
old_pthread_cond_wait.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
perf.c Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
pthread_attr_copy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_extension.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getaffinity.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getdetachstate.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getguardsize.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getinheritsched.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getschedparam.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getschedpolicy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getscope.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getsigmask.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getstack.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getstackaddr.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_getstacksize.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setaffinity.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setdetachstate.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setguardsize.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setinheritsched.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setschedparam.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setschedpolicy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setscope.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setsigmask_internal.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setsigmask.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setstack.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setstackaddr.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_attr_setstacksize.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_barrier_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_barrier_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_barrier_wait.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_barrierattr_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_barrierattr_getpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_barrierattr_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_barrierattr_setpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_cancel.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
pthread_cleanup_upto.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_clockjoin.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_cond_broadcast.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_cond_common.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_cond_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_cond_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_cond_signal.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_cond_wait.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_condattr_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_condattr_getclock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_condattr_getpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_condattr_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_condattr_setclock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_condattr_setpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_create.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_detach.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_equal.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_exit.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
pthread_getaffinity.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_getattr_default_np.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_getattr_np.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_getconcurrency.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_getcpuclockid.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_getname.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_getschedparam.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_getspecific.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_join_common.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_join.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_key_create.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_key_delete.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_keys.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_kill_other_threads.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_kill.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_cond_lock.c nptl: Move core mutex functions into libc 2021-04-21 19:49:51 +02:00
pthread_mutex_conf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_consistent.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_getprioceiling.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_lock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_setprioceiling.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_timedlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_trylock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutex_unlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_getprioceiling.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_getprotocol.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_getpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_getrobust.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_gettype.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_setprioceiling.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_setprotocol.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_setpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_setrobust.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_mutexattr_settype.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_once.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_clockrdlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_clockwrlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_common.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_rdlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_timedrdlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_timedwrlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_tryrdlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_trywrlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_unlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlock_wrlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlockattr_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlockattr_getkind_np.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlockattr_getpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlockattr_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlockattr_setkind_np.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_rwlockattr_setpshared.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_self.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_setaffinity.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_setattr_default_np.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_setcancelstate.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
pthread_setcanceltype.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
pthread_setconcurrency.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_setname.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_setschedparam.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_setschedprio.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_setspecific.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_sigmask.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_sigqueue.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_spin_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_spin_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_spin_lock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_spin_trylock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_spin_unlock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_testcancel.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
pthread_timedjoin.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_tryjoin.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_yield.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_clockwait.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_destroy.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_getvalue.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_init.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_post.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_timedwait.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_wait.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem_waitcommon.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
semaphoreP.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
shlib-versions
test-cond-printers.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-cond-printers.py Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-condattr-printers.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-condattr-printers.py Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-mutex-printers.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-mutex-printers.py Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-mutexattr-printers.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-mutexattr-printers.py Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-rwlock-printers.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-rwlock-printers.py Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-rwlockattr-printers.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-rwlockattr-printers.py Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
thrd_current.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
thrd_yield.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
TODO Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
TODO-kernel
TODO-testing
tpp.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-attr2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-attr3.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-audit-threads-mod1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-audit-threads-mod2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-audit-threads.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-audit-threads.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-barrier5.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cancel4_1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cancel4_2-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-cancel4_2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cancel7.c nptl: Fix stray process left by tst-cancel7 blocking testing 2024-08-07 19:46:21 +01:00
tst-cancel17.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cancel24-static.cc
tst-cancel24.cc
tst-cancel31.c nptl: Fix Race conditions in pthread cancellation [BZ#12683] 2024-08-23 14:27:43 -03:00
tst-cancelx7.c
tst-cancelx17.c
tst-cleanup4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cleanup4aux.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cleanupx4.c
tst-cleanupx4aux.c Compile tst-cleanupx4 test with -fexceptions 2016-06-29 20:24:44 -07:00
tst-clock2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-compat-forwarder-mod.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-compat-forwarder.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cond22.c nptl: Extract <bits/atomic_wide_counter.h> from pthread_cond_common.c 2021-11-17 12:20:13 +01:00
tst-cond26.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-context1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-default-attr.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-dlsym1.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
tst-eintr1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-exec4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-exec5.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-execstack-threads-mod.c nptl: Rename tst-execstack to tst-execstack-threads 2023-11-20 09:22:21 +01:00
tst-execstack-threads.c nptl: Rename tst-execstack to tst-execstack-threads 2023-11-20 09:22:21 +01:00
tst-initializers1-c11.c
tst-initializers1-c89.c
tst-initializers1-c99.c
tst-initializers1-gnu11.c
tst-initializers1-gnu89.c
tst-initializers1-gnu99.c
tst-initializers1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-minstack-cancel.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-minstack-exit.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-minstack-throw.cc Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-mutex5a.c
tst-mutex7a.c
tst-mutex8-static.c
tst-mutex8.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-mutexpi1.c
tst-mutexpi2.c
tst-mutexpi3.c
tst-mutexpi4.c
tst-mutexpi5.c
tst-mutexpi6.c
tst-mutexpi7.c
tst-mutexpi8-static.c
tst-mutexpi8.c
tst-mutexpi9.c
tst-mutexpi10.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-mutexpi11.c nptl: Reformat Makefile. 2023-05-18 12:39:47 -04:00
tst-mutexpi12.c nptl: Reformat Makefile. 2023-05-18 12:39:47 -04:00
tst-mutexpp1.c
tst-mutexpp5.c nptl: Fix PTHREAD_PRIO_PROTECT timed lock 2020-11-27 09:59:13 -03:00
tst-mutexpp6.c
tst-mutexpp9.c nptl: Fix PTHREAD_PRIO_PROTECT timed lock 2020-11-27 09:59:13 -03:00
tst-mutexpp10.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-oddstacklimit.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-once5.cc Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread_exit-nothreads-static.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread_exit-nothreads.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread-attr-affinity-fail.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread-attr-affinity.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread-attr-sigmask.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread-defaultattr-free.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread-gdb-attach-static.c nptl_db: Support different libpthread/ld.so load orders (bug 27744) 2021-04-21 11:50:43 +02:00
tst-pthread-gdb-attach.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread-getattr.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-pthread-key1-static.c nptl: Add tst-pthread-key1-static for BZ #21777 2024-04-09 05:27:03 -07:00
tst-pthread-timedlock-lockloop.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-robust-fork.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-robustpi1.c
tst-robustpi2.c
tst-robustpi3.c
tst-robustpi4.c
tst-robustpi5.c
tst-robustpi6.c
tst-robustpi7.c
tst-robustpi8.c
tst-robustpi9.c
tst-rwlock2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock3.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock6.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock7.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock8.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock9.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock10.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock11.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock15.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock17.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock18.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock19.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock20.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-rwlock21.c nptl: Reformat Makefile. 2023-05-18 12:39:47 -04:00
tst-rwlock22.c nptl: Reformat Makefile. 2023-05-18 12:39:47 -04:00
tst-rwlock-pwn.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-sched1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-sem11-static.c
tst-sem11.c nptl: Convert tst-sem11 and tst-sem12 tests to use the test driver 2024-07-12 20:41:08 +02:00
tst-sem12-static.c
tst-sem12.c nptl: Convert tst-sem11 and tst-sem12 tests to use the test driver 2024-07-12 20:41:08 +02:00
tst-sem13.c nptl: Add POSIX-proposed sem_clockwait 2019-07-12 13:36:23 +00:00
tst-sem17.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-setgetname.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-setgroups.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-setuid1-static.c
tst-setuid1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-setuid2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-signal3.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-signal7.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-stack2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-stack3.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-stack4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-stack4mod.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-stackguard1-static.c
tst-stackguard1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-thread_local1.cc Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-thread-affinity-pthread2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-thread-affinity-pthread.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-thread-affinity-sched.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-thread-exit-clobber.cc Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-thread-setspecific.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tls3-malloc.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tls3.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tls3mod.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tls5.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tls5.h Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-tls5mod.c
tst-tls5moda.c
tst-tls5modb.c
tst-tls5modc.c
tst-tls5modd.c
tst-tls5mode.c
tst-tls5modf.c
tst-tls6.sh Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tpp.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tsd3.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tsd4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
unwind.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
unwindbuf.sym
vars.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Versions nptl: Use out-of-line wake function in __libc_lock_unlock slow path 2021-07-09 10:59:22 +02:00