freebsd-dev/lib/libthr
Eric van Gyzen d25183e0a7 libthr: prevent setcontext() from masking SIGTHR
__thr_setcontext() mistakenly tested for the presence of SIGCANCEL
in its local ucontext_t instead of the parameter. Therefore,
if a thread calls setcontext() with a context whose signal mask
contains SIGTHR (a.k.a. SIGCANCEL), that signal will be blocked,
preventing the thread from being cancelled or suspended.

Reported by:	gcc 6.1 via RISC-V tinderbox
Reviewed by:	kib
MFC after:	3 days
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D10933
2017-05-26 15:51:51 +00:00
..
arch [mips] convert over =v to =r for the inline assembly. 2016-08-14 19:04:37 +00:00
support Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-01-20 04:32:19 +00:00
sys Fix known issues which blow up the process after dlopen("libthr.so") 2015-01-03 18:38:46 +00:00
tests Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
thread libthr: prevent setcontext() from masking SIGTHR 2017-05-26 15:51:51 +00:00
libthr.3 Fix markup. 2016-06-04 20:20:14 +00:00
Makefile Revert r318583 (libthr: use default WARNS level of 6) 2017-05-22 13:21:28 +00:00
Makefile.depend META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host. 2015-11-25 19:10:28 +00:00
plockstat.d Add the DTrace probe definitions for plockstat support. 2014-07-05 19:49:31 +00:00
pthread.map Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00