MFC r267689:

Consider the total number of descriptors available (and not just those
that are ready to be reclaimed) when deciding whether to resume tx after
a stall.


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

Honor jails for unbound SCTP sockets when selecting source addresses,
reporting IP-addresses to the peer during the handshake, adding
addresses to the host, reporting the addresses via the sysctl
interface (used by netstat, for example) and reporting the
addresses to the application via socket options.
This issue was reported by Bernd Walter.


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

Fix a bug in the setsockopt()-handling of the SCTP
specific option SCTP_PEER_ADDR_THLDS: Use the
provided address as intended.


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

Fix a bug which incorrectly allowed two listening SCTP sockets on
the same port bound to the wildcard address.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267254:
Make mmap(MAP_STACK) search for the available address space.

MFC r267497 (by alc):
Use local variable instead of sgrowsiz.


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

Avoid the USB device disconnected and controller shutdown clutter on system
shutdown by putting the former under !rebooting and turning the latter into
debug messages.

Reviewed by:	hps
Sponsored by:	Bally Wulff Games & Entertainment GmbH


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

Don't denounce peripherals on system shutdown. Together with r267321
(MFCed to stable/10 in r267775), we're now back to the pre-r228483
level of default verbosity. This in turn again typically allows for
reading information that userland might have printed on the screen
before initiating a halt, but still permits to debug potential device
shutdown problems on system shutdown via CAM_DEBUG etc.

Reviewed by:	mav
Sponsored by:	Bally Wulff Games & Entertainment GmbH


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267778 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267124, r267582:

  Install VT support files

  They can be disabled by setting WITHOUT_VT_SUPPORT=yes in src.conf.


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

stdtime: style(9) fixes.

Obtained from:	illumos


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

Strict value checking will cause problem.
Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD.
This behaviour is bug-compatible with Linux-3.13.5.

References:
http://d.hatena.ne.jp/syuu1228/20140326
http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094

Submitted by: syuu
PR: 187966


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Undo bad merge.


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

Strict value checking will cause problem.
Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD.
This behaviour is bug-compatible with Linux-3.13.5.

References:
http://d.hatena.ne.jp/syuu1228/20140326
http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094

Submitted by: syuu
PR: 187966


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

Pull in r211435 from upstream llvm trunk (by Benjamin Kramer):

  Legalizer: Add support for splitting insert_subvectors.

  We handle this by spilling the whole thing to the stack and doing the
  insertion as a store.

  PR19492. This happens in real code because the vectorizer creates
  v2i128 when AVX is enabled.

This fixes a "fatal error: error in backend: Do not know how to split
the result of this operator!" message encountered during compilation of
the net-p2p/libtorrent-rasterbar port.

Reported by:	Evgeniy <iron@mail.ua>

MFC r267705:

Add the llvm patch for r267704.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267564:
In msdosfs_setattr(), add a check for result of the utimes(2) permissions test.
Refactor the permission checks for utimes(2).


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

  - Add a LOCAL_ITOOLS to allow adding additional tools required for the
    installworld and distributeworld targets

PR:		179562


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix multiple vulnerabilities in file(1) and libmagic(3).

Security:	FreeBSD-SA-14:16.file
Approved by:	so


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document FreeBSD-SA-14:15.iconv and FreeBSD-SA-14:16.file

Sponsored by:	The FreeBSD Foundation


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

cxgbe(4): Update the bundled T4 and T5 firmwares to versions 1.11.27.0

Obtained from:	Chelsio


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

Fix the keyfile being cleared prematurely after r259428 (MFCed to stable/10
in r266749).

PR:		185084
Submitted by:	fk@fabiankeil.de
Reviewed by:	pjd


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267860 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267634: Fix case where fastroute or "to interface" is used with
incorrect FIB.

PR:		183065
Submitted by:	p-freebsd-bugs@ziemba.us
Approved by:	glebius (mentor)


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