MFC r275368:
When passing LUN IDs through treat ASCII values as fixed-length, not
interpreating NULLs as EOLs, but converting them to spaces.

SPC-4 does not tell that T10-based IDs should be NULL-terminated/padded.
And while it tells that it should include only ASCII chars (0x20-0x7F),
there are some USB sticks (SanDisk Ultra Fit), that have NULLs inside
the value.  Treating NULLs as EOLs there made those LUN IDs non-unique.


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

ctld(8) doesn't require -lcam or -lssl; remove those from DPADD and LDADD.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r274628: l2arc: restore correct rounding up of asize of compressed data


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275045: callout(9): add sbt flavors of callout_schedule

Not applicable to earlier releases.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275610 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275046: whitespace and cosmetic changes in callout_reset family of macros

Not applicable to earlier releases.


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

Reinstitate send() after syslogd restarts.

In r228193 the test of CONNPRIV have been moved to before the _usleep
and send in vsyslog().  When syslogd restarts, this would prevent the
message being logged after the disconnect/connect dance for
scenario #1.

PR:		194751
Submitted by:	Peter Creath <pjcreath+freebsd gmail com>
Reviewed By:	glebius


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

  Attempt to report a better error if sanitize is not supported


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

Let GNU ld be less obscure about missing symbols and DSOs.  If the BFD
object looks like a typical shared library, suggest adding '-l<foo>',
where <foo> has the 'lib' prefix and '.so<bar>' or '.a' suffix removed.

Otherwise, suggest adding '-l:<foo>', where <foo> is the full DT_SONAME.

Submitted by:	Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by:	EMC / Isilon storage division
Reviewed by:	emaste
PR:		194296
Differential Revision: https://reviews.freebsd.org/D1152


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

Add support for sending redirections to iSCSI target.

MFC r274309:

Fix several nits in redirection handling - don't use wrong CSG,
and avoid use-after-free.

Sponsored by:	The FreeBSD Foundation


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

Add HISTORY section to ctld(8).

Sponsored by:	The FreeBSD Foundation


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

  Allow multiple devices to mmap.  It's impossible to prevent this with
  checks on the open/close functions.


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

Fix buffer overflow in stdio.

Security:	FreeBSD-SA-14:27.stdio
Security:	CVE-2014-8611


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

Fix multiple vulnerabilities in file(1) and libmagic(3).

Security:	FreeBSD-SA-14:28.file
Security:	CVE-2014-3710, CVE-2014-8116, CVE-2014-8117


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275446: Plug memory leaks on UNMAP and XCOPY with invalid parameters.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275452: Do not corrupt the listen string when parsing it.

This fixes problem with ctld reload when it is configured to listen on two
portals with same IP, but different ports.


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

Correctly define constants.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275478: Swap resource count scopes for used/available space.

Used count should be reported as per-LUN, while available should not.


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

Pull in r174303 from upstream gcc trunk (by Jason Merrill):

  PR c++/48211
  * name-lookup.h (cp_class_binding): Make base a pointer.
  * name-lookup.c (new_class_binding): Adjust.
  (poplevel_class): Adjust.

This fixes a potential segfault when compiling gold, a part of the
devel/binutils port, with gcc.  See also the upstream bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211

Thanks to Jason Merrill, Tom Callaway and Red Hat legal for approving
the use of this patch under the GNU GPL, version 2 or later.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r274411: Improve CAM's reaction on asymmetric access errors.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275722 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275636:
Move OFED init a bit earlier so that PXE boot works.

Sponsored by:	Mellanox Technologies


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