]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC 286369:
jhb [Thu, 1 Oct 2015 22:08:16 +0000 (22:08 +0000)]
MFC 286369:
Convert the map_at_zero test case to ATF.  In particular, this will
facilitate adding more mmap() tests.

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

8 years agoMFC 286177:
jhb [Thu, 1 Oct 2015 21:57:15 +0000 (21:57 +0000)]
MFC 286177:
Fix a couple of markup typos.

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

8 years agoMFC 286256:
jhb [Thu, 1 Oct 2015 21:54:43 +0000 (21:54 +0000)]
MFC 286256:
kgdb uses td_oncpu to determine if a thread is running and should use
a pcb from stoppcbs[] rather than the thread's PCB.  However, exited threads
retained td_oncpu from the last time they ran, and newborn threads had their
CPU fields cleared to zero during fork and thread creation since they are
in the set of fields zeroed when threads are setup.  To fix, explicitly
update the CPU fields for exiting threads in sched_throw() to reflect the
switch out and reset the CPU fields for new threads in sched_fork_thread()
to NOCPU.

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

8 years agoMFC 284175:
jhb [Thu, 1 Oct 2015 20:54:19 +0000 (20:54 +0000)]
MFC 284175:
Handle X2APIC entries in the MADT for APICs with an ID < 255.  At least one
BIOS has been seen to include such entries even though the relevant specs
require that X2APIC entries only be used for CPUs with an APIC ID >= 255.

This was tested on a system with "plain" local APIC entries in the MADT
to ensure no regressions, but it has not yet been tested on a system with
X2APIC entries in the MADT.  Currently such systems do not boot at all,
and with this change they might now boot correctly.

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

8 years agoMFC 283121:
jhb [Thu, 1 Oct 2015 20:49:10 +0000 (20:49 +0000)]
MFC 283121:
Use the proper mask when reloading sampling PMCs for Core CPUs.

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

8 years agoMFC 283624,283630:
jhb [Thu, 1 Oct 2015 17:09:20 +0000 (17:09 +0000)]
MFC 283624,283630:
Export a list of VM objects in the system via a sysctl.  The list can be
examined via 'vmstat -o'.  It can be used to determine which files are
using physical pages of memory and how much each is using.

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

8 years agoMFC r288341, r288345, r288347:
gjb [Thu, 1 Oct 2015 00:47:30 +0000 (00:47 +0000)]
MFC r288341, r288345, r288347:

r288341:
  Honor VMFORMATS and VMSIZE if set in release.conf. [1]

r288345:
  In followup to r288341, ensure VMFORMATS and VMSIZE are not
  set to empty values, which would result in nonintuitive build
  errors.

r288347:
  Append VMFORMATS and VMSIZE to RELEASE_RMAKEFLAGS only if
  WITH_VMIMAGES is set.

PR: 203420 [1]
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r287927:
delphij [Thu, 1 Oct 2015 00:44:45 +0000 (00:44 +0000)]
MFC r287927:

Use strlcpy() instead of strncpy() because subsequent mkstemps expects
the string be nul-terminated.

Reviewed by: neel

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

8 years agoMFC r288278:
markj [Wed, 30 Sep 2015 03:36:41 +0000 (03:36 +0000)]
MFC r288278:
Document the interface for applying advice up to the end of a file.

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

8 years agoMFC r288276:
markj [Wed, 30 Sep 2015 03:35:58 +0000 (03:35 +0000)]
MFC r288276:
Fix argument ordering in vn_printf().

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

8 years agoMFC r287806:
markj [Wed, 30 Sep 2015 03:33:28 +0000 (03:33 +0000)]
MFC r287806:
Preserve the device queue status before retrying a sense request in
chdone().

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

8 years agoMFC 269727:
jhb [Wed, 30 Sep 2015 00:11:06 +0000 (00:11 +0000)]
MFC 269727:
Update vmstat usage for last-argument count/wait parameters

Correct the usage in both the manpage and in usage() to indicate
that the wait interval and repetition count may be given either
with the respective -w/-c arguments, or as the final positional
arguments. [0]

The corresponding code to implement the positional arguments has
been conditional on the (always-enabled) BACKWARD_COMPATIBILITY
macro since the original 4.4-lite import.  It's no longer reasonable
to remove the functionality, so remove the macro and conditional
instead.

Note that multiple disks may be given on the command line.

While here, sort arguments and apply minor mdoc fixes.

PR: 184755 [0]

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

8 years agoMFC r288154:
bdrewery [Tue, 29 Sep 2015 22:00:03 +0000 (22:00 +0000)]
MFC r288154:

  Similar to r266147, don't define PROG in the test subdirs.

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

8 years agoMFC r288091:
bdrewery [Tue, 29 Sep 2015 21:54:09 +0000 (21:54 +0000)]
MFC r288091:

  vfs_mountroot_shuffle() never returns non-zero.

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

8 years agoMFC r287979:
bdrewery [Tue, 29 Sep 2015 21:47:50 +0000 (21:47 +0000)]
MFC r287979:

  Remove redundant beforeinstall.

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

8 years agoMFC r287935:
bdrewery [Tue, 29 Sep 2015 21:45:23 +0000 (21:45 +0000)]
MFC r287935:

  Optimize makeman slightly by removing uneeded cat and extra test -s.

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

8 years agoDocument SA-15:24.
gjb [Tue, 29 Sep 2015 19:14:52 +0000 (19:14 +0000)]
Document SA-15:24.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC 283613,287374:
jhb [Tue, 29 Sep 2015 18:39:58 +0000 (18:39 +0000)]
MFC 283613,287374:
Use the cpuset API more consistently:
- Fetch the root set from cpuset_getaffinity() instead of assuming all CPUs
  from 0 to hw.ncpu are the root set.
- Use CPU_SETSIZE and CPU_FFS.
- The original notion of halted CPUs the manpage and code refers to is gone.
  Use the term "available" instead.

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

8 years agoThe Sun RPC framework uses a netbuf structure to represent the
delphij [Tue, 29 Sep 2015 18:06:27 +0000 (18:06 +0000)]
The Sun RPC framework uses a netbuf structure to represent the
transport specific form of a universal transport address.  The
structure is expected to be opaque to consumers.  In the current
implementation, the structure contains a pointer to a buffer
that holds the actual address.

In rpcbind(8), netbuf structures are copied directly, which would
result in two netbuf structures that reference to one shared
address buffer.  When one of the two netbuf structures is freed,
access to the other netbuf structure would result in an undefined
result that may crash the rpcbind(8) daemon.

Fix this by making a copy of the buffer that is going to be freed
instead of doing a shallow copy.

Security: FreeBSD-SA-15:24.rpcbind
Security: CVE-2015-7236

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

8 years agoMFC r288092:
bdrewery [Tue, 29 Sep 2015 16:56:28 +0000 (16:56 +0000)]
MFC r288092:

  Avoid adding duplicates into OBJS.  bsd.lib.mk already handles adding entries
  to OBJS based on SRCS.

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

8 years agoMFC r287978:
bdrewery [Tue, 29 Sep 2015 16:54:22 +0000 (16:54 +0000)]
MFC r287978:

  Fix LIBRARIES_ONLY

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

8 years agoMFC r288111: Allow AHCI driver attach to all known chips reporting RAID class.
mav [Tue, 29 Sep 2015 05:25:34 +0000 (05:25 +0000)]
MFC r288111: Allow AHCI driver attach to all known chips reporting RAID class.

Reported by: Michael BlackHeart <amdmiek@gmail.com>

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

8 years agoMFC r287819: Make CAM log errors that make it wait.
mav [Tue, 29 Sep 2015 05:23:26 +0000 (05:23 +0000)]
MFC r287819: Make CAM log errors that make it wait.

Waiting can take minutes, and it would be good for user to know what is
going on.

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

8 years agoMFC r287770: MFV r277429:
delphij [Mon, 28 Sep 2015 18:58:27 +0000 (18:58 +0000)]
MFC r287770: MFV r277429:

Document -S option when zfs inherit fails on quota and
in manual pages.

Illumos ZFS issues:

    5410 Document -S option to zfs inherit
    https://illumos.org/issues/5410

    5412 Mention -S option when zfs inherit fails on quota
    https://illumos.org/issues/5412

illumos/illumos-gate@5ff8cfa92ec8ea0f8593ad21aa2a04829b0ef5ea

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

8 years agoMFC r287289: Attach pass driver to LUNs is OFFLINE state.
mav [Mon, 28 Sep 2015 12:30:22 +0000 (12:30 +0000)]
MFC r287289: Attach pass driver to LUNs is OFFLINE state.

Previously such LUNs were silently ignored.  But while they indeed unable
to process most of SCSI commands, some, like RTPG, they still can.

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

8 years agoMFC r266588
alc [Sun, 27 Sep 2015 05:45:16 +0000 (05:45 +0000)]
MFC r266588
  There is no reason to perform the pmap_remove() on the kernel pmap while
  the kmem object lock is held.  Do the pmap_remove() before acquiring the
  kmem object lock.

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

8 years agoMFC r283795
alc [Sun, 27 Sep 2015 05:26:22 +0000 (05:26 +0000)]
MFC r283795
  Document vm_page_alloc_contig()'s support for the VM_ALLOC_NODUMP option.

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

8 years agoMFC r288025
alc [Sun, 27 Sep 2015 04:47:08 +0000 (04:47 +0000)]
MFC r288025
  Correct a non-fatal error in vm_pageout_worker().  vm_pageout_worker()
  should not assume that vm_pages_needed will remain set while it sleeps.
  Other threads can clear vm_pages_needed by performing a sufficient
  number of vm_page_free() calls, e.g., process termination.  The effect
  of this error was that vm_pageout_worker() would free and/or launder
  pages when, in fact, there was no shortage of free pages.

  Rewrite a nearby comment to describe all of the possible cases and not
  just the most common case.  The problem being that the comment made
  the most common case seem like the only case.

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

8 years agoMFC r285282
alc [Sun, 27 Sep 2015 04:36:09 +0000 (04:36 +0000)]
MFC r285282
  The intention of r254304 was to scan the active queue continuously.
  However, I've observed the active queue scan stopping when there are
  frequent free page shortages and the inactive queue is steadily refilled
  by other mechanisms, such as the sequential access heuristic in vm_fault()
  or madvise(2).  To remedy this problem, record the time of the last active
  queue scan, and always scan a number of pages proportional to the time
  since the last scan, regardless of whether that last scan was a
  timeout-triggered ("pass == 0") or free-page-shortage-triggered ("pass >
  0") scan.

  Also, on a timeout-triggered scan, allow a full scan of the active queue
  when the system is short of inactive pages.

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

8 years agoMFC r286513, r286784
alc [Sun, 27 Sep 2015 04:25:07 +0000 (04:25 +0000)]
MFC r286513, r286784
  Revise the text about the atomicity of the defined operations across
  multiple processors.  In particular, clearly state that the operations
  are always atomic when they are applied to the default memory type
  that is used by the kernel (and applications).

  Stop describing an acquire operation as a read barrier and a release
  operation as a write barrier.  That description has never been correct,
  and it has caused confusion.

  Also, explicitly say that a thread doesn't see its own accesses being
  reordered.  The reordering of a thread's accesses is only (potentially)
  visible to another thread.

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

8 years agoMFC r285428
alc [Sun, 27 Sep 2015 04:17:08 +0000 (04:17 +0000)]
MFC r285428
  Correct the description of MADV_DONTNEED.

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

8 years agoMFC r288001:
kib [Sun, 27 Sep 2015 01:37:30 +0000 (01:37 +0000)]
MFC r288001:
Use tabs for indend.

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

8 years agoMFC r287121
alc [Sun, 27 Sep 2015 01:35:32 +0000 (01:35 +0000)]
MFC r287121
  Testing whether a page is dirty does not require the page lock.

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

8 years agoMFC r288000:
kib [Sun, 27 Sep 2015 01:33:43 +0000 (01:33 +0000)]
MFC r288000:
Add support for weak symbols to the kernel linkers.

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

8 years agoMFC r284654
alc [Sun, 27 Sep 2015 01:26:41 +0000 (01:26 +0000)]
MFC r284654
  Avoid pmap_is_modified() on pages that can't be mapped.

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

8 years agoMFC r287747: Add ID for Intel Panther Point KT Controller
mav [Sun, 27 Sep 2015 01:19:42 +0000 (01:19 +0000)]
MFC r287747: Add ID for Intel Panther Point KT Controller

Found on ASUS P8Q77-M motherboard.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

8 years agoMFC r287944
alc [Sun, 27 Sep 2015 01:15:17 +0000 (01:15 +0000)]
MFC r287944
  Eliminate (many) unnecessary calls to pmap_remove_all().

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

8 years agoMFC r288044:
kib [Sun, 27 Sep 2015 01:06:45 +0000 (01:06 +0000)]
MFC r288044:
Ensure that when a blockable open of fifo returns success, a valid
file descriptor opened for complimentary access exists as well.

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

8 years agoMFC r287674, r287675. Fix ipfilter bug 3600459 NAT bucket count wrong.
cy [Sat, 26 Sep 2015 03:51:53 +0000 (03:51 +0000)]
MFC r287674, r287675. Fix ipfilter bug 3600459 NAT bucket count wrong.

Obtained from: ipfilter cvs repo r1.48.2.25

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

8 years agoMFC: r288116
jkim [Fri, 25 Sep 2015 22:19:35 +0000 (22:19 +0000)]
MFC: r288116

Remove unsupported S5 (power off) state.

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

8 years agoMFC: r267248, r267260, r267261, r267320
jkim [Fri, 25 Sep 2015 22:08:20 +0000 (22:08 +0000)]
MFC: r267248, r267260, r267261, r267320

Document 'k' option for acpiconf(8).

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

8 years agoMFC 288208
jpaetzel [Fri, 25 Sep 2015 03:54:10 +0000 (03:54 +0000)]
MFC 288208

Fix typo.

Sponsored by: iXsystems

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

8 years agoMFC r287650:
delphij [Fri, 25 Sep 2015 01:17:24 +0000 (01:17 +0000)]
MFC r287650:

Use strlcpy() in favor of strncpy() as it's defined to have a nul character
at the end of string buffer, and the code context do expects this to behave
correctly (e.g. strchr).

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

8 years agoMFC r286010: ar: enable deterministic mode by default
emaste [Fri, 25 Sep 2015 00:23:36 +0000 (00:23 +0000)]
MFC r286010: ar: enable deterministic mode by default

Ar cannot handle UIDs with more than 6 digits, and storing the mtime,
uid, gid and mode provides little to negative value anyhow for ar's
uses. Turn on deterministic (-D) mode by default; it can be disabled by
the user with -U.

Also MFC follow-on fixes in r286024 and r287324.

PR: 196929
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r274349: Add /usr/lib/debug directory to hier(7)
emaste [Thu, 24 Sep 2015 21:01:34 +0000 (21:01 +0000)]
MFC r274349: Add /usr/lib/debug directory to hier(7)

The canonical standalone debug directory established by the GNU
toolchain is /usr/lib/debug, and we use it when WITH_DEBUG_FILES is set.
Mention it in the file system hierarchy page.

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

8 years agoMFC r279248: Unconditionally install debug directory hierarchy
emaste [Thu, 24 Sep 2015 20:56:26 +0000 (20:56 +0000)]
MFC r279248: Unconditionally install debug directory hierarchy

This avoids various failure modes (e.g., when building and installing a
single binary with debug data on a system that otherwise does not have
it enabled).

It is also consistent with the way other directory hierarchies are
handled (e.g. share/man).

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

8 years agoMFC r276636: add NT_PPC_VMX note type definition
emaste [Thu, 24 Sep 2015 20:03:00 +0000 (20:03 +0000)]
MFC r276636: add NT_PPC_VMX note type definition

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

8 years agoMFC r279698: Update the ELFOSABI_* constants.
emaste [Thu, 24 Sep 2015 20:01:52 +0000 (20:01 +0000)]
MFC r279698: Update the ELFOSABI_* constants.

Two new operating systems have been added in the meantime.
ELFOSABI_FENIXOS that uses value 16 (published in the latest draft) and
ELFOSABI_CLOUDABI that uses value 17 (to be published in the next draft).

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

8 years agoMFC r280858: Fill out arm64 dynamic relocation #defines
emaste [Thu, 24 Sep 2015 20:00:20 +0000 (20:00 +0000)]
MFC r280858: Fill out arm64 dynamic relocation #defines

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

8 years agoMFC r281308: Add R_AARCH64_NONE, the null relocation.
emaste [Thu, 24 Sep 2015 19:59:32 +0000 (19:59 +0000)]
MFC r281308: Add R_AARCH64_NONE, the null relocation.

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

8 years agoMFC r275903: Add AArch64 64-bit relocation values.
emaste [Thu, 24 Sep 2015 19:53:24 +0000 (19:53 +0000)]
MFC r275903: Add AArch64 64-bit relocation values.

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

8 years agoMFC r283929: Correct grdc(1) 12-hour display between 12:00 and 13:00
emaste [Thu, 24 Sep 2015 19:37:34 +0000 (19:37 +0000)]
MFC r283929: Correct grdc(1) 12-hour display between 12:00 and 13:00

PM starts at 12:00, not 13:00.

PR: 194291, 200133
Submitted by: Nick Price

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

8 years agoMFC r256692: Fix .debug_line prologue header length calculation for 64-bit DWARF
emaste [Thu, 24 Sep 2015 19:33:35 +0000 (19:33 +0000)]
MFC r256692: Fix .debug_line prologue header length calculation for 64-bit DWARF

The header_length field is the number of bytes following the field to
the first byte of the line number program.  The hard-coded constants
previously here (4 + 2 + 4) were correct only for 32-bit DWARF.

Sponsored by: DARPA, AFRL

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

8 years agoMFC r256643: makesyscalls.sh: Error on failure to open specified config file
emaste [Thu, 24 Sep 2015 19:32:08 +0000 (19:32 +0000)]
MFC r256643: makesyscalls.sh: Error on failure to open specified config file

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

8 years agoMFC r284551: Import libcxxrt master e64e93f.
emaste [Thu, 24 Sep 2015 19:28:53 +0000 (19:28 +0000)]
MFC r284551: Import libcxxrt master e64e93f.

This includes a number of demangler fixes obtained from upstream
ELF Tool Chain.

PR: 200913
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r287340: vtfontcvt: fix buffer overflow for non-default size .hex fonts
emaste [Thu, 24 Sep 2015 13:06:19 +0000 (13:06 +0000)]
MFC r287340: vtfontcvt: fix buffer overflow for non-default size .hex fonts

And r287336 which introduced xmalloc.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r282916: Add ELF machine EM_IAMCU, 32-bit Intel MCU
emaste [Thu, 24 Sep 2015 12:54:50 +0000 (12:54 +0000)]
MFC r282916: Add ELF machine EM_IAMCU, 32-bit Intel MCU

It is e_machine 6, which was previously reserved for 486.

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

8 years agoMFC r287327: ar: Deobfuscate a while loop
emaste [Thu, 24 Sep 2015 12:47:31 +0000 (12:47 +0000)]
MFC r287327: ar: Deobfuscate a while loop

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

8 years agoMFC r285841: Add RISC-V ELF machine type definition
emaste [Thu, 24 Sep 2015 12:44:02 +0000 (12:44 +0000)]
MFC r285841: Add RISC-V ELF machine type definition

EM_RISCV is now officially registered as e_machine 243.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r287886:
smh [Thu, 24 Sep 2015 08:42:08 +0000 (08:42 +0000)]
MFC r287886:

Fix kqueue write events for files > 2GB

Sponsored by: Multiplay

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

8 years agoMFC r287634:
delphij [Thu, 24 Sep 2015 00:54:46 +0000 (00:54 +0000)]
MFC r287634:

login.c doesn't really need libutil.h, don't include it.

login_fbtab.c includes paths.h and pathnames.h, and pathnames.h includes
paths.h.  Eliminate the paths.h inclusion in login_fbtab.c.

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

8 years agoMFC r287633:
delphij [Thu, 24 Sep 2015 00:50:17 +0000 (00:50 +0000)]
MFC r287633:

 - Avoid accessing window properties directly, instead, use accessors.
   This should be no-op for now, but allows the code to work if we
   move to NCURSES_OPAQUE.
 - Use calloc() instead of malloc+bzero.

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

8 years agoMFC r287866: Fix fixed sense writing when passed more data then it can fit.
mav [Wed, 23 Sep 2015 05:14:48 +0000 (05:14 +0000)]
MFC r287866: Fix fixed sense writing when passed more data then it can fit.

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

8 years agoMFC r287590:
delphij [Wed, 23 Sep 2015 01:07:45 +0000 (01:07 +0000)]
MFC r287590:

w(1) is not setgid binary since r53279, so remove the setgid() call.

Reviewed By: wollman

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

8 years agoMFC r287541:
dim [Tue, 22 Sep 2015 22:35:42 +0000 (22:35 +0000)]
MFC r287541:

In libz's inflateMark(), avoid left-shifting a negative integer, which
is undefined.

Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D3344

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

8 years agoMFC r286733:
dim [Tue, 22 Sep 2015 22:27:45 +0000 (22:27 +0000)]
MFC r286733:

Avoid left-shifting negative signed values in bxe(4).

Reviewed by: davidcs

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

8 years agoMFC r286702:
dim [Tue, 22 Sep 2015 22:18:36 +0000 (22:18 +0000)]
MFC r286702:

In ipfw2, avoid left-shifting negative integers, which is undefined.
While here, make some other arguments to htonl(3) unsigned too.

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

8 years agoMFC r286699:
dim [Tue, 22 Sep 2015 22:07:42 +0000 (22:07 +0000)]
MFC r286699:

In gcc's libcpp, stop using the INTTYPE_MAXIMUM() macro, which relies on
undefined behavior.  The code used this macro to avoid problems on some
broken systems which define SSIZE_MAX incorrectly, but this is not
needed on FreeBSD, obviously.

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

8 years agoRemove extra space introduced in r287734. This is a stable/10 only fix
garga [Tue, 22 Sep 2015 14:33:43 +0000 (14:33 +0000)]
Remove extra space introduced in r287734. This is a stable/10 only fix
since original commit (r287094) is correct.

Approved by: loos
Sponsored by: Rubicon Communications (Netgate)

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

8 years agoLong overdue MFC r285444:
jlh [Tue, 22 Sep 2015 11:38:58 +0000 (11:38 +0000)]
Long overdue MFC r285444:
  Allow again periodic scripts to be run from command-line.

  PR:           188109
  Submitted by: Jason Unovitch

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

8 years agoLong overdue MFC r284378:
jlh [Tue, 22 Sep 2015 11:25:37 +0000 (11:25 +0000)]
Long overdue MFC r284378:
  nit: Rename racct_alloc_resource to racct_adjust_resource.

  This is more accurate as the amount can be negative.

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

8 years agoLong overdue MFC r284377:
jlh [Tue, 22 Sep 2015 10:48:28 +0000 (10:48 +0000)]
Long overdue MFC r284377:
  NetBSD commit log:
    Use a constant array for the MIB. Newer LLVM decided that mib[] warranted
    stack protections, with the obvious crash after the setup was done.
    As a positive side effect, code size shrinks a bit.

  I'm not sure why this hasn't bitten us yes, but it is certainly possible and
  there are no real drawbacks to this change anyway.

  Submitted by: pfg
  Obtained from:        NetBSD

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

8 years agoThe stable/10 branch uses mutex for vfs_hash. Fix build.
kib [Tue, 22 Sep 2015 10:31:48 +0000 (10:31 +0000)]
The stable/10 branch uses mutex for vfs_hash.  Fix build.

Submitted by: Jukka Ukkonen <jau789@gmail.com>

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

8 years agoMFC r287828:
garga [Tue, 22 Sep 2015 09:57:35 +0000 (09:57 +0000)]
MFC r287828:

Add support for Sierra MC7355 card

Submitted by: Jeremy Porter <jporter@netgate.com>
Approved by: loos
Obtained from: pfSense
Sponsored by: Rubicon Communications (Netgate)

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

8 years agoMFC r287807:
markj [Tue, 22 Sep 2015 00:45:16 +0000 (00:45 +0000)]
MFC r287807:
Remove an unneeded typedef of ip6_t from the DTrace ip provider library.

PR: 203092

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

8 years agoMFC of 281677:
mckusick [Tue, 22 Sep 2015 00:43:05 +0000 (00:43 +0000)]
MFC of 281677:

More accurately collect name-cache statistics in sysctl functions
sysctl_debug_hashstat_nchash() and sysctl_debug_hashstat_rawnchash().
These changes are in preparation for allowing changes in the size
of the vnode hash tables driven by increases and decreases in the
maximum number of vnodes in the system.

Reviewed by: kib@
Phabric:     D2265

MFC of 287497:

Track changes to kern.maxvnodes and appropriately increase or decrease
the size of the name cache hash table (mapping file names to vnodes)
and the vnode hash table (mapping mount point and inode number to vnode).
An appropriate locking strategy is the key to changing hash table sizes
while they are in active use.

Reviewed by: kib
Tested by:   Peter Holm
Differential Revision: https://reviews.freebsd.org/D2265

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

8 years agoFix a panic in SIOCSLAGG and SIOCGLAGGOPTS. This was caused by a
hrs [Mon, 21 Sep 2015 18:32:43 +0000 (18:32 +0000)]
Fix a panic in SIOCSLAGG and SIOCGLAGGOPTS.  This was caused by a
wrongly-MFC'd patch in r287723.

Pointy hat to: hrs

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

8 years agoRe-add deprecated options as no-op to prevent breakage of backward
hrs [Mon, 21 Sep 2015 03:03:57 +0000 (03:03 +0000)]
Re-add deprecated options as no-op to prevent breakage of backward
compatibility.

Spotted by: ume

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

8 years agoMFC 281734-281736,287997-287998:
hrs [Sun, 20 Sep 2015 22:27:19 +0000 (22:27 +0000)]
MFC 281734-281736,287997-287998:

- Fix a crash on a rpc entry when an IPv6 address is explicitly
  specified in -a flag.

- Fix a bug that sockaddr_in was used where sockaddr_in6 should have
  been used.  This was not actually harmful because offsetof(struct
  sockaddr_in, sin_port) is equal to offsetof(struct sockaddr_in6,
  sin6_port).

- Remove unused union p_un.

- Use NI_MAXHOST-long buffer for getnameinfo().
  Although INET6_ADDRSTRLEN was designed to hold the longest
  IPv6 address in IPv4-mapped address format a long time ago,
  getnameinfo() can return scope identifier in addition to it.

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

8 years agoMFC r287651, r287652, r287653.
cy [Sat, 19 Sep 2015 03:58:31 +0000 (03:58 +0000)]
MFC r287651, r287652, r287653.

Fix mutex errors, fixup typos in comments.

Obtained from: NetBSD r1.4.
-This lie, anr those below, will be ignored--
> Description of fields to fill in above:                     76 columns --|
> PR:                       If a GNATS PR is affected by the change.
> Submitted by:             If someone else sent in the change.
> Reviewed by:              If someone else reviewed your modification.
> Approved by:              If you needed approval for this commit.
> Obtained from:            If the change is from a third party.
> MFC after:                N [day[s]|week[s]|month[s]].  Request a reminder email.
> MFH:                      Ports tree branch name.  Request approval for merge.
> Relnotes:                 Set to 'yes' for mention in release notes.
> Security:                 Vulnerability reference (one per line) or description.
> Sponsored by:             If the change was sponsored by an organization.
> Differential Revision:    https://reviews.freebsd.org/D### (*full* phabric URL needed).
> Empty fields above will be automatically removed.

_M   .
M    sys/contrib/ipfilter/netinet/ip_state.c

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

8 years agoMFC r266310
melifaro [Fri, 18 Sep 2015 17:29:24 +0000 (17:29 +0000)]
MFC r266310

  Fix wrong formatting of 0.0.0.0/X table records in ipfw(8).

  Add `flags` u16 field to the hole in ipfw_table_xentry structure.
  Kernel has been guessing address family for supplied record based
  on xent length size.
  Userland, however, has been getting fixed-size ipfw_table_xentry structures
  guessing address family by checking address by IN6_IS_ADDR_V4COMPAT().

  Fix this behavior by providing specific IPFW_TCF_INET flag for IPv4 records.

PR: bin/189471,kern/200169

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

8 years agoMFC r280957
rstone [Thu, 17 Sep 2015 23:31:44 +0000 (23:31 +0000)]
MFC r280957

  Fix integer truncation bug in malloc(9)

  A couple of internal functions used by malloc(9) and uma truncated
  a size_t down to an int.  This could cause any number of issues
  (e.g. indefinite sleeps, memory corruption) if any kernel
  subsystem tried to allocate 2GB or more through malloc.  zfs would
  attempt such an allocation when run on a system with 2TB or more
  of RAM.

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

8 years agoMFC r279410:
rstone [Thu, 17 Sep 2015 18:21:47 +0000 (18:21 +0000)]
MFC r279410:

  Correct the use of an unitialized variable in sendfind_getobj()

  When sendfile_getobj() is called on a DTYPE_SHM file, it never
  initializes error, which is eventually returned to the caller.

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

8 years agoMFC r279413:
rstone [Thu, 17 Sep 2015 18:19:55 +0000 (18:19 +0000)]
MFC r279413:

  Add a missing include of an options header.

  watchdog.c does an #ifdef DDB but does not #include "opt_ddb.h".
  Fixing this turned up a missing include file.

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

8 years agoMFC r263109
rstone [Thu, 17 Sep 2015 17:56:23 +0000 (17:56 +0000)]
MFC r263109

  Add MSI support to puc(9)

  Add support for MSI interrupts in the puc(9) driver.  By default the driver
  will prefer MSI interrupts to legacy interrupts.  A tunable,
  hw.puc.msi_disable, has been added to force the allocation of legacy
  interrupts.

  Reviewed by:  jhb@
  MFC after:    2 weeks
  Sponsored by: Sandvine Inc.

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

8 years agoMFC r286970:
rstone [Thu, 17 Sep 2015 17:09:03 +0000 (17:09 +0000)]
MFC r286970:

  Prevent ticks rollover from preventing vm_lowmem event

  Currently vm_pageout_scan() uses a ticks-based scheme to rate-limit
  the number of times that the vm_lowmem event will happen.  However
  if no events happen for long enough for ticks to roll over, this
  leaves us in a long window in which vm_lowmem events will not
  happen.

  Replace the use of ticks with time_t to prevent rollover from ever
  being an issue.

  Reviewed by:  ian
  MFC after:    3 weeks
  Sponsored by: EMC / Isilon Storage Division
  Differential Revision:        https://reviews.freebsd.org/D3439

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

8 years agoMFC r286891, r286893:
pfg [Thu, 17 Sep 2015 00:36:18 +0000 (00:36 +0000)]
MFC r286891, r286893:
calendar(1): add a few more dates to the Christian calendar

Bring some well established holidays that also happen to be legal
holidays in many Catholic countries.

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

8 years agoMFC r287436:
bdrewery [Thu, 17 Sep 2015 00:24:50 +0000 (00:24 +0000)]
MFC r287436:

  Avoid sub-shell for realpath(1) for bmake by using its built-in :tA.

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

8 years agoDocument EN-15:16, EN-15:17, EN-15:18.
gjb [Wed, 16 Sep 2015 23:33:12 +0000 (23:33 +0000)]
Document EN-15:16, EN-15:17, EN-15:18.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC 281310, 287567:
imp [Wed, 16 Sep 2015 04:38:07 +0000 (04:38 +0000)]
MFC 281310, 287567:

r287567 | imp | 2015-09-08 11:47:56 -0600 (Tue, 08 Sep 2015) | 16 lines

Mark the swap pager as direct dispatch compatible.

r281310 | mav | 2015-04-09 07:09:05 -0600 (Thu, 09 Apr 2015) | 4 lines

Remove sleeps from geom_up thread on device destruction.

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

8 years agoMFC r287366:
kib [Wed, 16 Sep 2015 04:35:23 +0000 (04:35 +0000)]
MFC r287366:
Use SLIST_FOREACH_SAFE() to fix iteration.

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

8 years agoMFC r287599:
kib [Wed, 16 Sep 2015 04:23:08 +0000 (04:23 +0000)]
MFC r287599:
Correct handling of open("name", O_DIRECTORY | O_CREAT).

PR: 202892

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

8 years agoMFC r287591:
kib [Wed, 16 Sep 2015 04:20:39 +0000 (04:20 +0000)]
MFC r287591:
There is no reason in the current kernel to disallow write access to
the COW wired entry if the entry permissions allow it.  Remove the check.

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

8 years agoMFC r287361:
kib [Wed, 16 Sep 2015 04:15:46 +0000 (04:15 +0000)]
MFC r287361:
Handle excess of D_NEWBLK in the same way as excess of D_INODEDEP and
D_DIRREM, by scheduling ast to flush dependencies.

For 32bit arches, reduce the total amount of allowed dependencies by two.

MFC r287479:
Declare the writes around the call to VFS_SYNC() in
softdep_ast_cleanup_proc().

MFC r287483:
Do not consume extra reference.

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

8 years agoMFC r287238:
yongari [Wed, 16 Sep 2015 00:25:40 +0000 (00:25 +0000)]
MFC r287238:
  Set DMA alignment constraint of status, TX and RX LEs(List Elements
  in Marvell terms) to 32768.  32768 looks overkill but it will
  ensure correct DMAed update.  This change addresses occasional
  watchdog timeouts reported on 10.2-RELEASE.

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

8 years agoMFC: r287580
bapt [Tue, 15 Sep 2015 05:56:16 +0000 (05:56 +0000)]
MFC: r287580

Remove extra debug that crept in

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

8 years agoMFC: r287579
bapt [Tue, 15 Sep 2015 05:46:55 +0000 (05:46 +0000)]
MFC: r287579

Implement pubkey support for the bootstrap

Note that to not interfer with finger print it expects a signature on pkg itself
which is named pkg.txz.pubkeysign

To genrate it:
echo -n "$(sha256 -q pkg.txz)" | openssl dgst -sha256 -sign /thekey \
    -binary -out ./pkg.txz.pubkeysig

Note the "echo -n" which prevent signing the '\n' one would get otherwise

PR: 202622

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

8 years agoMFC r286700
hiren [Tue, 15 Sep 2015 05:19:10 +0000 (05:19 +0000)]
MFC r286700

Make LAG LACP fast timeout tunable through IOCTL.

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

8 years agoMFC r286062, r286063
cperciva [Mon, 14 Sep 2015 19:37:51 +0000 (19:37 +0000)]
MFC r286062, r286063

Add support to blkfront for blkif indirect segment I/Os.

Turn this support off by default in EC2 builds due to performance issues
on some EC2 instance types.

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

8 years agoMFC r284618, r284663, r284664, r284670, r284723
cperciva [Mon, 14 Sep 2015 19:35:33 +0000 (19:35 +0000)]
MFC r284618, r284663, r284664, r284670, r284723

Reorganization of blkfront code and updates to comments.  No functional
changes.

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