glibc/sysdeps
Adhemerval Zanella 2ac88eecc5 Refactor Linux raise implementation (BZ#15368)
This patch changes both the nptl and libc Linux raise implementation
to avoid the issues described in BZ#15368.  The strategy used is
summarized in bug report first comment:

 1. Block all signals (including internal NPTL ones);
 2. Get pid and tid directly from syscall (not relying on cached
    values);
 3. Call tgkill;
 4. Restore old signal mask.

Tested on x86_64 and i686.

	[BZ #15368]
	* sysdeps/unix/sysv/linux/nptl-signals.h
	(__nptl_clear_internal_signals): New function.
	(__libc_signal_block_all): Likewise.
	(__libc_signal_block_app): Likewise.
	(__libc_signal_restore_set): Likewise.
	* sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
	implementation.
	* sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
	the cached pid/tid value in pthread structure.
2016-07-13 17:08:51 +01:00
..
aarch64 [AArch64] Fix libc internal asm profiling code 2016-07-11 09:50:41 +01:00
alpha
arm
generic Treat STV_HIDDEN and STV_INTERNAL symbols as STB_LOCAL 2016-07-01 23:48:52 +01:00
gnu
hppa hppa: Update libm-test-ulps. 2016-07-06 14:45:23 +02:00
i386 Regenerate i686 libm-test-ulps with GCC 6.1 at -O3 [BZ #20347] 2016-07-13 08:02:10 -07:00
ia64
ieee754
init_array
m68k m68k: suppress -Wframe-address warning 2016-07-04 23:15:29 +02:00
mach
microblaze
mips
nacl
nios2
nptl
posix
powerpc ppc: Fix modf (sNaN) for pre-POWER5+ CPU (bug 20240). 2016-07-08 11:24:34 +02:00
pthread
s390 S390: Use DT_JUMPREL in prelink undo code. 2016-07-06 15:22:35 +02:00
sh
sparc SPARC: fix nearbyint on sNaN input 2016-07-01 16:36:41 +02:00
tile
unix Refactor Linux raise implementation (BZ#15368) 2016-07-13 17:08:51 +01:00
wordsize-32
wordsize-64
x86 Fixed wrong vector sincos/sincosf ABI to have it compatible with 2016-07-01 14:15:38 +03:00
x86_64 x86-64: Properly align stack in _dl_tlsdesc_dynamic [BZ #20309] 2016-07-12 06:30:08 -07:00