MFC 243152,255478: Two SOCK_SEQPACKET fixes:
- Update comment.
- Provide pr_ctloutput method for AF_LOCAL/SOCK_SEQPACKET sockets.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260598 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260110:

Eliminate unused drbr_stats_update implementation in oce(4) driver.

Noticed by:	dim


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260604 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r259921,259950:

Provide the manual page for aio_fsync(2).


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r257705:

Clean up -Wtautological-compare -Wformat warnings.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r260545:

ext2fs: fix inode flag conversion.

After r252890 we are naively attempting to pass through the
inode flags.  This is technically incorrect as the ext2
inode flags don't match the UFS/system values used in
FreeBSD and a clean conversion is needed.

Some filtering was left in place so the change didn't cause
significant changes in FreeBSD but some of the garbage passed
is likely to be the cause for warning messages in linux.

Fix the issue by resetting the flags before conversion as was
done previously. This also means we will not pass the EXT4_*
inode flags into FreeBSD's inode.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260630 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260636:

Fix bsnmpd remote denial of service vulnerability.

Reported by:	dinoex
Submitted by:	harti
Security:	FreeBSD-SA-14:01.bsnmpd
Security:	CVE-2014-1452


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260637:

Disable 'monitor' feature in ntpd by default.

Security:	FreeBSD-SA-14:02.ntpd
Approved by:	so


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
On stable/8 and stable/9, disable hardware random number generators
by default.  This is a direct commit to stable/ branches because
HEAD and stable/10 have superior implementation of random device.

Approved by:	so


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260644 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix  BIND remote denial of service vulnerability.

Security:	FreeBSD-SA-14:04.bind
Security:	CVE-2014-0591


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 238423,238426,238428,258063,258063,258066,258097,258185,259134:
The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260336,r260355: find: Fix -lname and -ilname:

* Take into account that readlink() does not add a terminating '\0'.

* Do not match symlinks that are followed because of -H or -L. This is
  explicitly documented in GNU find's info file and is like -type l.

* Fix matching symlinks in subdirectories when fts changes directories.

As before, symlinks of length PATH_MAX or more are not handled correctly.
(These can only be created on other operating systems.)

Also, avoid some readlink() calls on files that are obviously not symlinks
(because of fts(3) restrictions, not all of them).

PR:		bin/185393
Submitted by:	Ben Reser (parts, original version)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260651 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260481:
  Add MRT6_DLOG() macro for debugging.
  Reduce number of MRT6DEBUG ifdefs and fix some broken format strings.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r253821,254753,256259

MFV r253783: 3834 incremental replication of 'holey' file systems is
slow

MFV r254747:4047 panic from dbuf_free_range() from dmu_free_object()
while doing zfs receive

MFV r255257: 4082 zfs receive gets EFBIG from dmu_tx_hold_free()


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260722 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258354: taskqueue_cancel: garbage collect a write-only variable


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258351: fsx: new option to disable msync(MS_SYNC) after each write


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl

Sponsored by:	HybridCluster


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258647: zfsboottest: properly specify a library dependency


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258648: use saner calculations in should_yield


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258628: opensolaris taskq: some cosmetic changes


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@260740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f