MFC r234376:
Add some more SCSI mode pages from SPC-4 spec.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234638 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r232702

Free up allocated memory used by posix_fadvise(2).


git-svn-id: svn://svn.freebsd.org/base/stable/9@234659 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r232317:

Introduce VOP_UNP_BIND(), VOP_UNP_CONNECT(), and VOP_UNP_DETACH()
operations for setting and accessing vnode's v_socket field.

The operations are necessary to implement proper unix socket handling
on layered file systems like nullfs(5).

This change fixes the long standing issue with nullfs(5) being in that
unix sockets did not work between lower and upper layers: if we bound
to a socket on the lower layer we could connect only to the lower
path; if we bound to the upper layer we could connect only to the
upper path. The new behavior is one can connect to both the lower and
the upper paths regardless what layer path one binds to.

PR:		kern/51583, kern/159663
Suggested by:	kib
Reviewed by:	arch


git-svn-id: svn://svn.freebsd.org/base/stable/9@234660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234416:
Fix string buffer overflow when preparing the line of output.

PR:	bin/161739


git-svn-id: svn://svn.freebsd.org/base/stable/9@234667 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234414:
Alike to SCSI make adaclose() to not return error if device gone.
This fixes KASSERT panic inside GEOM if kernel built with INVARIANTS.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234207: bump INTRCNT_COUNT values to reflect actual numbers of IPI counters


git-svn-id: svn://svn.freebsd.org/base/stable/9@234671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234208: add actual interrupt counters to back ipi_invlcache_counts


git-svn-id: svn://svn.freebsd.org/base/stable/9@234673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r233257, r233258 from head:
  Don't run through time checks when entry is definitely oversized. This
  leads to newsyslog rotating on (size OR time) if both are specified.

  Fix a sentence in a paragraph that describes time and interval based
  trimming. This sentence vaguely can be interpreted as if it was speaking
  about time and size interaction, while it wasn't about it.

PR:	100018, 160432


git-svn-id: svn://svn.freebsd.org/base/stable/9@234674 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r233167 from head:
  Rotate auth.log and messages at the beginning of a year. Otherwise,
  daily security checks 800.loginfail and 900.tcpwrap may produce
  false positive alerts.

PR:		142467, 165331


git-svn-id: svn://svn.freebsd.org/base/stable/9@234675 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234338: intpm: add ATI IXP400 pci id

PR:		kern/136762


git-svn-id: svn://svn.freebsd.org/base/stable/9@234677 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234339: zfsboot: honor -q if it's present in boot.config


git-svn-id: svn://svn.freebsd.org/base/stable/9@234679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234574

Fix panic in ng_patch(4) caused by checksum flags being added to mbuf flags.

Tested by:        Maxim Ignatenko <gelraen.ua@gmail.com>
Approved by:      ae(mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@234681 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9