r325771 jhb Nov. 13, 2017, 7:58 p.m.
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
ViewVC
r325770 arichardson Nov. 13, 2017, 7:44 p.m.
The -fuse-ld flag is only meant to be passed to the compiler driver so
direct linker invocations should not include it.

Reviewed by:	emaste, jhb
Approved by:	jhb (mentor)
Differential Revision:	https://reviews.freebsd.org/D12910
ViewVC
r325769 gjb Nov. 13, 2017, 7:31 p.m.
Update the TARGET/TARGET_ARCH matching in release/release.sh and
release/Makefile.mirrors for simplification.

Discussed with:	mmel
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
ViewVC
r325768 manu Nov. 13, 2017, 6:53 p.m.
Since r324184 the root node compatible for rpi2 is "brcm,bcm2836", add
it to the compatible list of bcm2835_cpufreq.

Tested On: RPI2 v1.1 RPI2 v1.2

Reported by:	many on freebsd-arm@
ViewVC
r325767 hselasky Nov. 13, 2017, 6:16 p.m.
in the LinuxKPI returns NULL. This happens when the VM area's private
data handle already exists and could cause a so-called NULL pointer
dereferencing issue prior to this fix.

Found by:	greg@unrelenting.technology
MFC after:	1 week
Sponsored by:	Mellanox Technologies
ViewVC
r325766 vangyzen Nov. 13, 2017, 5:46 p.m.
Do not use macros in the -width of a .Bl, since mandoc does not support them.

Fix issues reported by igor and mandoc -Tlint.

Use a .Bl for list of clock IDs instead of a comma list.

MFC after:	3 days
Sponsored by:	Dell EMC
ViewVC
r325765 imp Nov. 13, 2017, 5:04 p.m.
Add notes to each of these that specifically state that results are
undefined if the strings overlap. In the case of memcpy, we document
the overlapping behavior on FreeBSD (pre-existing). For str*, it is
left unspecified, however, since the default (and x86) implementations
do not handle overlapping strings properly.

PR: 223653
Sponsored by: Netflix
ViewVC
r325764 vangyzen Nov. 13, 2017, 4:53 p.m.
This allows C++ programs to call _umtx_op().

MFC after:	3 days
Sponsored by:	Dell EMC
ViewVC
r325759 kib Nov. 13, 2017, 10:45 a.m.
Note that PMCLOG_RESERVE_WITH_ERROR() macro contains goto error;
statement and executed after the flag is set.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
ViewVC
r325758 kib Nov. 13, 2017, 10:43 a.m.
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
ViewVC
r325755 delphij Nov. 13, 2017, 7:47 a.m.
MFC after:	2 weeks
ViewVC
r325749 imp Nov. 13, 2017, 12:32 a.m.
historical use and general philosphy.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D12981
ViewVC
r325748 imp Nov. 13, 2017, 12:30 a.m.
only works because we have -Isys on the command line. We also have
-Isys/boot/userboot on the command line, so bring it in directly with
<userboot.h>. No functional change, but it removes one hard to see
dependency on the boot loader's location in sys/boot.

Sponsored by: Netflix
ViewVC
r325747 br Nov. 12, 2017, 11:13 p.m.
Sponsored by:	DARPA, AFRL
ViewVC
r325746 tuexen Nov. 12, 2017, 9:43 p.m.
bug related to clearing the assoc retransmit counter and the dup TSN
handling of NR-SACK chunks.

MFC after:	3 days
ViewVC