opnsense-src/tests/sys
Eric Badger 82a4538f31 Defer ptracestop() signals that cannot be delivered immediately
When a thread is stopped in ptracestop(), the ptrace(2) user may request
a signal be delivered upon resumption of the thread. Heretofore, those signals
were discarded unless ptracestop()'s caller was issignal(). Fix this by
modifying ptracestop() to queue up signals requested by the ptrace user that
will be delivered when possible. Take special care when the signal is SIGKILL
(usually generated from a PT_KILL request); no new stop events should be
triggered after a PT_KILL.

Add a number of tests for the new functionality. Several tests were authored
by jhb.

PR:		212607
Reviewed by:	kib
Approved by:	kib (mentor)
MFC after:	2 weeks
Sponsored by:	Dell EMC
In collaboration with:	jhb
Differential Revision:	https://reviews.freebsd.org/D9260
2017-02-20 15:53:16 +00:00
..
acl Expect 01:main to fail 2016-12-03 02:24:15 +00:00
aio Fix build of aio_test on MIPS, where the compiler warns about the local 2017-01-28 12:26:22 +00:00
fifo Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
file Remove unused vars to fix -Wunused issues 2017-01-14 04:10:04 +00:00
fs Use _SED instead of hacking tests rewriting mknod ... p as mkfifo 2017-01-16 17:53:58 +00:00
geom A forced commit to note other portion of the Makefile change accidentally 2017-02-19 22:00:11 +00:00
kern Defer ptracestop() signals that cannot be delivered immediately 2017-02-20 15:53:16 +00:00
kqueue Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
mac Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:29:26 +00:00
mqueue Export the mq_getfd_np() symbol from librt.so, which allows to get 2016-10-02 17:02:59 +00:00
netinet Add fibs_test:udp_dontroute6, another IPv6 multi-FIB test 2017-02-07 17:40:59 +00:00
opencrypto Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
pjdfstest DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
posixshm Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
sys DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
vfs Mark testcases which use cap_enter as expected failures until the 2017-01-15 09:13:41 +00:00
vm Revert r313565 -- :mmap__bad_arguments passes again after r313655 2017-02-11 20:31:57 +00:00
Makefile Integrate contrib/netbsd-tests/fs/tmpfs into the FreeBSD test suite 2016-10-21 05:24:08 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Enable WARNS?= 6 across all of tests/sys 2017-01-14 04:20:06 +00:00