glibc/sysdeps
Florian Weimer eae81d7057 nptl: pthread_kill must send signals to a specific thread [BZ #28407]
The choice between the kill vs tgkill system calls is not just about
the TID reuse race, but also about whether the signal is sent to the
whole process (and any thread in it) or to a specific thread.

This was caught by the openposix test suite:

  LTP: openposix test suite - FAIL: SIGUSR1 is member of new thread pendingset.
  <https://gitlab.com/cki-project/kernel-tests/-/issues/764>

Fixes commit 526c3cf11e ("nptl: Fix race
between pthread_kill and thread exit (bug 12889)").

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
2021-10-01 18:16:41 +02:00
..
aarch64 aarch64: Disable A64FX memcpy/memmove BTI unconditionally 2021-09-24 13:26:59 +01:00
alpha Update alpha libm-test-ulps 2021-09-30 09:06:21 -03:00
arc elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
arm elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
csky elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
generic Disable symbol hack in libc_nonshared.a 2021-09-27 07:46:25 -07:00
gnu Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
hppa elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
htl htl: Reimplement GSCOPE 2021-09-16 01:04:17 +02:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 i386: Port elf_machine_{load_address,dynamic} from x86-64 2021-09-24 09:36:32 -07:00
ia64 Add narrowing fma functions 2021-09-22 21:25:31 +00:00
ieee754 Add fmaximum, fminimum functions 2021-09-28 23:31:35 +00:00
m68k elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
mach Add fmaximum, fminimum functions 2021-09-28 23:31:35 +00:00
microblaze elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
mips ld.so: Replace DL_RO_DYN_SECTION with dl_relocate_ld [BZ #28340] 2021-09-22 11:12:43 -07:00
nios2 elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
nptl nptl: Use FUTEX_LOCK_PI2 when available 2021-10-01 08:09:13 -03:00
posix posix: Remove spawni.c 2021-09-27 12:44:25 -03:00
powerpc powerpc: Fix unrecognized instruction errors with recent binutils 2021-09-29 14:42:20 -05:00
pthread nptl: pthread_kill must send signals to a specific thread [BZ #28407] 2021-10-01 18:16:41 +02:00
riscv Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s390 elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
sh elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
sparc Add narrowing fma functions 2021-09-22 21:25:31 +00:00
unix Linux: Add FUTEX_LOCK_PI2 2021-10-01 08:09:13 -03:00
wordsize-32 Disable symbol hack in libc_nonshared.a 2021-09-27 07:46:25 -07:00
wordsize-64 Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
x86 Fix sysdeps/x86/fpu/s_ffma.c for 32-bit FMA processor case 2021-09-24 17:59:22 +00:00
x86_64 Add narrowing fma functions 2021-09-22 21:25:31 +00:00