freebsd-dev/sys
Konstantin Belousov ab74c84333 Do not go into sleep in sleepq_catch_signals() when SIGSTOP from
PT_ATTACH was consumed.

In particular, do not clear TDP_FSTP in ptracestop() if td_wchan is
non-NULL. Leave it to sleepq_catch_signal() to clear and convert zero
return code to EINTR.

Otherwise, per submitter report, if the PT_ATTACH SIGSTOP was
delivered right after the thread was added to the sleepqueue but not
yet really sleep, and cursig() caused debugger attach, the thread
sleeps instead of returning to the userspace boundary with EINTR.

PR: 231445
Reported by:	Efi Weiss <valmarelox@gmail.com>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D20381
2019-05-29 14:05:27 +00:00
..
amd64 Correct some inconsistencies in the earliest created kernel page 2019-05-27 15:21:26 +00:00
arm Implement the ffs and fls functions, and their longer counterparts, in 2019-05-28 15:47:00 +00:00
arm64 arm64 nexus: remove incorrect warning 2019-05-26 23:04:21 +00:00
bsm
cam Simplify math added in r310524. 2019-05-22 15:39:35 +00:00
cddl powerpc/dtrace: Fix fbt function probing for ELFv2 2019-05-27 03:18:56 +00:00
compat Do not leak sa in linux_recvmsg() call if kern_recvit() fails. 2019-05-21 18:08:19 +00:00
conf Implement the ffs and fls functions, and their longer counterparts, in 2019-05-28 15:47:00 +00:00
contrib Contuation of r343701, removal of irrelevant #ifdefs. 2019-05-28 01:41:08 +00:00
crypto aesni(4): Fix trivial type typo 2019-05-27 00:47:51 +00:00
ddb
dev revert r273728 and parts of r306589, iicbus no-stop by default feature 2019-05-29 09:08:20 +00:00
dts
fs pseudofs: Ignore unsupported commands in vop_setattr. 2019-05-28 20:54:59 +00:00
gdb
geom When using the destroy option to shut down a nop GEOM module, I/O 2019-05-25 00:07:49 +00:00
gnu
i386 typo: suppported. 2019-05-29 02:08:23 +00:00
isa
kern Do not go into sleep in sleepq_catch_signals() when SIGSTOP from 2019-05-29 14:05:27 +00:00
kgssapi
libkern
mips Display CPU model in dmesg on mips targets 2019-05-24 01:43:35 +00:00
modules Add an AESNI-optimized version of the CCM/CBC cryptographic and authentication 2019-05-25 07:26:30 +00:00
net if_bridge(4): Complete bpf auditing of local traffic over the bridge 2019-05-29 01:08:30 +00:00
net80211 Restructure mbuf send tags to provide stronger guarantees. 2019-05-24 22:30:40 +00:00
netgraph
netinet When an ACK segment as the third message of the three way handshake is 2019-05-26 17:18:14 +00:00
netinet6 Restructure mbuf send tags to provide stronger guarantees. 2019-05-24 22:30:40 +00:00
netipsec Add deprecation warnings for IPsec algorithms deprecated in RFC 8221. 2019-05-23 22:06:57 +00:00
netpfil Remove an uneeded indentation introduced in r223637 to silence gcc warnging 2019-05-25 23:58:09 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto cryptodeflate: Drop z_stream zbuf.state->dummy from SDT probe. 2019-05-24 02:44:15 +00:00
powerpc powerpc64/pmap: Reapply r334235 to OEA64 pmap, clearing HID0_RADIX 2019-05-25 04:56:06 +00:00
riscv Include ktr.h in more compilation units 2019-05-21 20:38:48 +00:00
rpc
security
sparc64
sys Update __FreeBSD_version and Makefile check for r348347 2019-05-29 02:26:15 +00:00
teken
tests
tools
ufs Add a missing bresle() in seldom-used error return. 2019-05-28 17:31:35 +00:00
vm Reduce the code size and number of ffsl calls in vm_reserv_break. Use 2019-05-28 00:51:23 +00:00
x86 Add a constant for the LS config MSR on AMD CPUs. 2019-05-23 23:37:11 +00:00
xdr
xen
Makefile