freebsd-nq/sys
Eric Badger b38bd91f4f don't stop in issignal() if P_SINGLE_EXIT is set
Suppose a traced process is stopped in ptracestop() due to receipt of a
SIGSTOP signal, and is awaiting orders from the tracing process on how
to handle the signal. Before sending any such orders, the tracing
process exits. This should kill the traced process. But suppose a second
thread handles the SIGKILL and proceeds to exit1(), calling
thread_single(). The first thread will now awaken and will have a chance
to check once more if it should go to sleep due to the SIGSTOP.  It must
not sleep after P_SINGLE_EXIT has been set; this would prevent the
SIGKILL from taking effect, leaving a stopped orphan behind after the
tracing process dies.

Also add new tests for this condition.

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D9890
2017-03-07 13:41:01 +00:00
..
amd64 Regenerated Linuxulator syscall tables for r314782 2017-03-06 18:20:37 +00:00
arm o Another round fixes for mmc(4), mmcsd(4) and sdhci(4) regarding 2017-03-06 23:47:59 +00:00
arm64 Load the new sp_el0 with interrupts disabled in fork_trampoline. If an 2017-02-15 14:56:47 +00:00
boot loader.efi: fix an off-by-one bug in efi_verify_staging_size() 2017-03-07 03:35:50 +00:00
bsm
cam Reject userland CCBs that have CAM_UNLOCKED set. 2017-03-03 20:51:57 +00:00
cddl Fix null pointer dereference in zfs_freebsd_setacl(). 2017-03-02 23:23:28 +00:00
compat LinuxKPI workqueue cleanup. 2017-03-07 12:09:14 +00:00
conf LinuxKPI workqueue cleanup. 2017-03-07 12:09:14 +00:00
contrib Merge ACPICA 20170303. 2017-03-03 18:56:15 +00:00
crypto Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
ddb Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dev xen/netfront: fix inbound packet flags for checksum offload 2017-03-07 09:18:52 +00:00
fs remove procfs ctl interface 2017-03-05 03:05:24 +00:00
gdb
geom The kern.geom.part.auto_resize should be tunable. 2017-02-28 20:51:20 +00:00
gnu Import latest vendor DTS files for Intel Arria 10. 2017-03-03 14:17:07 +00:00
i386 Regenerated Linuxulator syscall tables for r314782 2017-03-06 18:20:37 +00:00
isa Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kern don't stop in issignal() if P_SINGLE_EXIT is set 2017-03-07 13:41:01 +00:00
kgssapi
libkern strstr.c was inadvertently blasted with a copy of isa_nmi.c. Revert 2017-03-01 02:07:51 +00:00
mips o Another round fixes for mmc(4), mmcsd(4) and sdhci(4) regarding 2017-03-06 23:47:59 +00:00
modules LinuxKPI workqueue cleanup. 2017-03-07 12:09:14 +00:00
net Introduce the concept of IPsec security policies scope. 2017-03-07 00:13:53 +00:00
net80211 net80211: fix ieee80211_htrateset setup, return EINVAL for an unsupported 2017-03-03 01:06:27 +00:00
netgraph mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. 2017-01-20 00:02:11 +00:00
netinet The patch provides the same socket option as Linux IP_ORIGDSTADDR. 2017-03-06 04:01:58 +00:00
netinet6 The patch provides the same socket option as Linux IP_ORIGDSTADDR. 2017-03-06 04:01:58 +00:00
netipsec Introduce the concept of IPsec security policies scope. 2017-03-07 00:13:53 +00:00
netnatm
netpfil pf: Fix a crash in low-memory situations 2017-03-06 23:41:23 +00:00
netsmb
nfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsclient Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsserver Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlm
ofed Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
opencrypto
powerpc Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
riscv Implement atomic_fcmpset_*() for RISC-V. 2017-02-05 00:32:12 +00:00
rpc Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
security Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM, 2016-11-22 00:41:24 +00:00
sparc64 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sys Export a sysctl dev.<clkdom>.<unit>.clocks for each clock domain containing 2017-03-05 07:13:29 +00:00
teken
tests
tools Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ufs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
vm Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
x86 mca: fix up couple of issues introduced with amd thresholding in r314636 2017-03-05 07:46:48 +00:00
xdr
xen xenstore: fix suspension when using the xenstore device 2017-03-07 09:17:48 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00