freebsd-skq/sys
jhb dd16f28153 Only clear a pending thread event if one is pending.
This fixes a panic when attaching to an already-stopped process after
r325028.  While here, clean up a few other things in the control flow
of the 'sendsig' section:
- Only check for P_STOPPED_TRACE rather than either of P_STOPPED_SIG
  or P_STOPPED_TRACE for most ptrace requests.  The signal handling
  code in kern_sig.c never sets just P_STOPPED_SIG for a traced
  process, so if P_STOPPED_SIG is stopped, P_STOPPED_TRACE should be
  set anyway.  Remove a related debug printf.  Assuming P_STOPPED_TRACE
  permits simplifications in the 'sendsig:' block.
- Move the block to clear the pending thread state up into a new
  block conditional on P_STOPPED_TRACE and handle delivering pending
  signals to the reporting thread and clearing the reporting thread's
  state in this block.
- Consolidate case to send a signal to the process in a single case
  for PT_ATTACH.  The only case that could have been in the else before
  was a PT_ATTACH where P_STOPPED_SIG was not set, so both instances
  of kern_psignal() collapse down to just PT_ATTACH.

Reported by:	pho, mmel
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D12837
2017-11-13 19:58:58 +00:00
..
amd64 amd64: stop nesting preemption counter in spinlock_enter 2017-11-12 03:13:01 +00:00
arm arm: rpi2: Fix cpufreq(4) 2017-11-13 18:53:41 +00:00
arm64 Replace manyinstances of VM_WAIT with blocking page allocation flags 2017-11-08 02:39:37 +00:00
boot Use proper include file. While <boot/userboot/userboot.h> works, it 2017-11-13 00:30:38 +00:00
bsm
cam ctl: Make max_luns and max_ports tunable variables instead of hardcoded 2017-11-07 16:59:52 +00:00
cddl MFV r325609: 7531 Assign correct flags to prefetched buffers 2017-11-09 18:22:42 +00:00
compat Properly handle the case where the linux_cdev_handle_insert() function 2017-11-13 18:16:26 +00:00
conf Refactor the flowsteering APIs used by mlx5en(4). This change is needed by 2017-11-10 09:49:08 +00:00
contrib MFV: r325668 2017-11-10 18:46:34 +00:00
crypto aesni(4): CRYPTO_AES_NIST_GCM_16 mandates MAC 2017-10-04 21:15:45 +00:00
ddb Point people towards our https web site for documentation, http accesses are 2017-11-09 13:38:24 +00:00
dev Do not leak PMC_PO_OWNS_LOGFILE on error. 2017-11-13 10:45:31 +00:00
fs Replace manyinstances of VM_WAIT with blocking page allocation flags 2017-11-08 02:39:37 +00:00
gdb gdb kernel server: fixup Search:memory style 2017-10-17 01:12:17 +00:00
geom geom_slice: fix r325227, protect against multiple calls to g_slice_free 2017-11-01 10:53:10 +00:00
gnu dts: Update our device tree sources file fomr Linux 4.13 2017-10-21 15:47:40 +00:00
i386 Remove useless DEBUG printfs in i386 sendsig() implementations. 2017-11-08 13:05:14 +00:00
isa Use better hard-coded defaults for the cursor shape, and remove nearby 2017-08-19 19:33:16 +00:00
kern Only clear a pending thread event if one is pending. 2017-11-13 19:58:58 +00:00
kgssapi
libkern Continuing efforts to provide hardening of FFS, this change adds a 2017-09-22 12:45:15 +00:00
mips Replace manyinstances of VM_WAIT with blocking page allocation flags 2017-11-08 02:39:37 +00:00
modules Refactor the flowsteering APIs used by mlx5en(4). This change is needed by 2017-11-10 09:49:08 +00:00
net Do not leak control in raw_usend 2017-11-08 23:20:05 +00:00
net80211 [net80211] don't try to follow a NULL rxs pointer down the sink. 2017-10-13 06:49:07 +00:00
netgraph Correction after r323873: #include <sys/lock.h> in addition to <sys/rmlock.h> 2017-09-28 11:26:37 +00:00
netinet Cleanup the handling of control chunks. While there fix some minor 2017-11-12 21:43:33 +00:00
netinet6 Use hardware timestamps to report packet timestamps for SO_TIMESTAMP 2017-11-07 09:46:26 +00:00
netipsec Use correct pointer in key_updateaddresses() when updating NAT-T config. 2017-11-03 11:33:13 +00:00
netpfil Fix Dummynet AQM packet marking function ecn_mark() and fq_codel / 2017-10-26 10:11:35 +00:00
netsmb netsmb: Fix buggy/racy smb_strdupin() 2017-09-29 15:53:26 +00:00
nfs Improve FHA locality control for NFS read/write requests. 2017-07-31 15:23:19 +00:00
nfsclient
nfsserver
nlm
ofed Mark ipoib device as initialized on device open. 2017-11-10 08:58:42 +00:00
opencrypto crypto(9) is called from ipsec in CRYPTO_F_CBIFSYNC mode. This is working 2017-11-03 10:27:22 +00:00
powerpc Properly initialize the full md_page structure 2017-11-10 04:23:58 +00:00
riscv Update several more URLs 2017-10-29 08:17:03 +00:00
rpc
security Sprinkle __read_frequently on few obvious places. 2017-09-06 20:33:33 +00:00
sparc64 Replace manyinstances of VM_WAIT with blocking page allocation flags 2017-11-08 02:39:37 +00:00
sys Add __BEGIN_DECLS and __END_DECLS to <sys/umtx.h> 2017-11-13 16:53:36 +00:00
teken Fix syscons escape sequence for setting the local cursor type. This sequence 2017-08-18 15:40:40 +00:00
tests
tools embed_mfs: add error handling, usage 2017-10-17 21:13:26 +00:00
ufs Improve the message printed when the cylinder group checksum is wrong. 2017-11-05 13:28:48 +00:00
vm Fix operator priority. 2017-11-08 23:25:05 +00:00
x86 Add Intel Processor Trace (PT) MSRs. 2017-11-12 23:13:04 +00:00
xdr
xen
Makefile