MFC r263775:

Avoid "cc1: warning: is shorter than expected" when using GNU cpp in
combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs"
shebang lines.  This is because dtrace positions the file pointer after
the shebang line, before passing the file to GNU cpp.

To fix the warning, adjust the size downwards by the current position,
after a bit of sanity checking.

Suggested by:	avg
MFC r263385:

Remove unused option -r from zpool.

Submitted by:	Richard Yao <ryao gentoo org>
MFC r263809

Fix crash on resume in vt(9).
Statically allocated terminal window have not initialized callout handler, so we
have to initialize it even for existing window if it is console window.

Sponsored by:	The FreeBSD Foundation
Document that the FreeBSD/i386 instability with
vfs.unmapped_buf_allowed=1 may be present on VMs
running on hypervisors other than VirtualBox.

Sponsored by:	The FreeBSD Foundation
MFC r263812:

  Update build(7) with LOCAL_* vars
o Provide a compatibility shim for netstat(1) to obtain output queue
  drops via NET_RT_IFLISTL sysctl. The sysctl handler appends oqdrops
  at the end of struct if_msghdrl, and netstat(1) sees that as an
  additional field of struct if_data. This allows us to fetch the data
  keeping ABI and API compatibility.
  This is direct commit to stable/10.

o Merge r263331 from head, to restore printing of queue drops.

Sponsored by:	Nginx, Inc.
Sponsored by:	Netflix
MFC r263116

Replace 4.4BSD Lite's unix domain socket backpressure hack with a cleaner
mechanism, based on the new SB_STOP sockbuf flag.  The old hack dynamically
changed the sending sockbuf's high water mark whenever adding or removing
data from the receiving sockbuf.  It worked for stream sockets, but it never
worked for SOCK_SEQPACKET sockets because of their atomic nature.  If the
sockbuf was partially full, it might return EMSGSIZE instead of blocking.

The new solution is based on DragonFlyBSD's fix from commit
3a6117bbe0ed6a87605c1e43e12a1438d8844380 on 2008-05-27.  It adds an SB_STOP
flag to sockbufs.  Whenever uipc_send surpasses the socket's size limit, it
sets SB_STOP on the sending sockbuf.  sbspace() will then return 0 for that
sockbuf, causing sosend_generic and friends to block.  uipc_rcvd will
likewise clear SB_STOP.  There are two fringe benefits: uipc_{send,rcvd} no
longer need to call chgsbsize() on every send and receive because they don't
change the sockbuf's high water mark.  Also, uipc_sense no longer needs to
acquire the UIPC linkage lock, because it's simpler to compute the
st_blksizes.

There is one drawback: since sbspace() will only ever return 0 or the
maximum, sosend_generic will allow the sockbuf to exceed its nominal maximum
size by at most one packet of size less than the max.  I don't think that's
a serious problem.  In fact, I'm not even positive that FreeBSD guarantees a
socket will always stay within its nominal size limit.

sys/sys/sockbuf.h
	Add the SB_STOP flag and adjust sbspace()

sys/sys/unpcb.h
	Delete the obsolete unp_cc and unp_mbcnt fields from struct unpcb.

sys/kern/uipc_usrreq.c
	Adjust uipc_rcvd, uipc_send, and uipc_sense to use the SB_STOP
	backpressure mechanism.  Removing obsolete unpcb fields from
	db_show_unpcb.

tests/sys/kern/unix_seqpacket_test.c
	Clear expected failures from ATF.
MFC r263428

share/man/man7/tests.7
	Added a section on test suite configuration, and cleaned up up grammar
	errors and awkward prose.  The config variables were discussed on
	freebsd-testing.
MFC r262810, r262862, r264105:
r262810:
  Merge enabling building FreeBSD/arm images as part of the
  release build process.

r262862:
  Provide backwards-compatibility with release.conf SVNROOT
  entries that do not have a trailing '/'.

r264105:
  Add ZEDBOARD support for release builds.

* Local modifications:
  - Set SRCBRANCH from head/ to stable/10/.
  - Strip svn:merginfo from ^/projects/release-embedded to avoid
    pollution.

Sponsored by:	The FreeBSD Foundation
MFC r264107:
  Remove only-works-on-amd64 restriction.

Sponsored by:	The FreeBSD Foundation
Merge r262341:
  - Improve logging of send errors, reporting error code and interface.
  - Reduce code duplication between INET and INET6.
MFC r263885

o Add new vd_driver method to do bitblt with mask, named vd_maskbitbltchr.
o Move vd_bitbltchr vga's driver method to vd_maskbitbltchr.
o Implement new vd_bitbltchr method for vga driver. (It do single write for 8
	pixels, have to be a bit faster).

Sponsored by:	The FreeBSD Foundation
MFC r261521 by antoine: Add files to remove WITHOUT_NIS

PR:		misc/186412
Sponsored by:	The FreeBSD Foundation
MFC r263001

Move asm IPIs handlers to C code, so both Xen and native IPI handlers
share the same code.

Approved by: gibbs
Sponsored by: Citrix Systems R&D
MFC r263878:
Several fixes for the PCID implementation.
Document a potential panic or hang when using sas2flash to
update firmware on mps(4) LSI controllers.

Submitted by:	smh
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
backport ASLR and PIE support to FreeBSD 10-STABLE

based on my previous work + lattera's extension:

upstream git-id: 401a161083850a9a4ce916f37520c084cff1543b

 Changes to be committed:
	modified:   bin/sh/Makefile
	modified:   libexec/getty/Makefile
	modified:   libexec/rtld-elf/rtld.c
	modified:   sbin/dhclient/Makefile
	modified:   sbin/hastd/Makefile
	modified:   sbin/natd/Makefile
	modified:   sbin/nfsiod/Makefile
	modified:   sbin/rtsol/Makefile
	modified:   secure/usr.sbin/sshd/Makefile
	modified:   share/mk/bsd.own.mk
	modified:   share/mk/bsd.prog.mk
	new file:   sys/amd64/conf/OP-ASLR
	modified:   sys/amd64/include/vmparam.h
	modified:   sys/compat/freebsd32/freebsd32_misc.c
	modified:   sys/conf/files
	modified:   sys/conf/options
	modified:   sys/kern/imgact_elf.c
	modified:   sys/kern/kern_exec.c
	modified:   sys/kern/kern_jail.c
	new file:   sys/kern/kern_pax.c
	modified:   sys/sys/jail.h
	new file:   sys/sys/pax.h
	modified:   sys/vm/vm_map.c
	modified:   sys/vm/vm_map.h
	modified:   sys/vm/vm_mmap.c
	new file:   tools/build/options/WITH_PIE
	modified:   usr.sbin/apmd/Makefile
	modified:   usr.sbin/auditd/Makefile
	modified:   usr.sbin/auditdistd/Makefile
	modified:   usr.sbin/bsnmpd/bsnmpd/Makefile
	modified:   usr.sbin/ctld/Makefile
	modified:   usr.sbin/daemon/Makefile
	modified:   usr.sbin/iscsid/Makefile
	modified:   usr.sbin/jail/Makefile
	modified:   usr.sbin/jexec/Makefile
	modified:   usr.sbin/mountd/Makefile
	modified:   usr.sbin/moused/Makefile
	modified:   usr.sbin/nfsd/Makefile
	modified:   usr.sbin/nfsuserd/Makefile
	modified:   usr.sbin/powerd/Makefile
	modified:   usr.sbin/rpc.lockd/Makefile
	modified:   usr.sbin/rpc.statd/Makefile
	modified:   usr.sbin/rpc.yppasswdd/Makefile
	modified:   usr.sbin/rpc.ypupdated/Makefile
	modified:   usr.sbin/rpc.ypxfrd/Makefile
	modified:   usr.sbin/rpcbind/Makefile
	modified:   usr.sbin/syslogd/Makefile
	modified:   usr.sbin/tcpdump/tcpdump/Makefile
	modified:   usr.sbin/watchdogd/Makefile

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
PaX ASLR: fixed tunables in kern_pax.c

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
PAX ASLR: remove dirty hack to determine which pax_init should use

probably this fixed some issue with linuxulator on amd64

bump __FreeBSD_version to 1000706

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
PAX ASLR: updated debug messages

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>