]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r271358: Fix array overrun, reported by Coverity.
mav [Mon, 6 Oct 2014 12:41:07 +0000 (12:41 +0000)]
MFC r271358: Fix array overrun, reported by Coverity.

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

9 years agoMFC r271354: Fix couple off-by-one range check errors, reported by Coverity.
mav [Mon, 6 Oct 2014 12:40:15 +0000 (12:40 +0000)]
MFC r271354: Fix couple off-by-one range check errors, reported by Coverity.

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

9 years agoMFC r271353: Fix memory leak on error, reported by Coverity.
mav [Mon, 6 Oct 2014 12:39:25 +0000 (12:39 +0000)]
MFC r271353: Fix memory leak on error, reported by Coverity.

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

9 years agoMFC r271352: Fix minor buffer overflow reported by Coverity.
mav [Mon, 6 Oct 2014 12:38:35 +0000 (12:38 +0000)]
MFC r271352: Fix minor buffer overflow reported by Coverity.

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

9 years agoMFC r271316: Report that DPO and FUA bits are supported after r271311.
mav [Mon, 6 Oct 2014 12:37:35 +0000 (12:37 +0000)]
MFC r271316: Report that DPO and FUA bits are supported after r271311.

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

9 years agoMFC r271311:
mav [Mon, 6 Oct 2014 12:36:42 +0000 (12:36 +0000)]
MFC r271311:
Add support for Mode Page Policy (0x87) VPD page.

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

9 years agoMFC r271309:
mav [Mon, 6 Oct 2014 12:35:41 +0000 (12:35 +0000)]
MFC r271309:
Improve cache control support, including DPO/FUA flags and the mode page.

At this moment it works only for files and ZVOLs in device mode since BIOs
have no respective respective cache control flags (DPO/FUA).

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

9 years agoMFC r271308:
mav [Mon, 6 Oct 2014 12:31:51 +0000 (12:31 +0000)]
MFC r271308:
Make ZVOL writes in device mode support IO_SYNC flag.

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

9 years agoMFC r272111
luigi [Mon, 6 Oct 2014 09:46:21 +0000 (09:46 +0000)]
MFC r272111
fix a panic when passing ifioctl from a netmap file descriptor to
the underlying device. This needs to be merged to 10.1

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

9 years agoMFC: r272398
bapt [Mon, 6 Oct 2014 09:15:09 +0000 (09:15 +0000)]
MFC: r272398

Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR: 193994
Submitted by: rodrigo
MFC after: 3 days

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

9 years agoMFC r272480:
hselasky [Mon, 6 Oct 2014 06:05:43 +0000 (06:05 +0000)]
MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.

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

9 years agoMFC r272410:
hselasky [Mon, 6 Oct 2014 06:03:25 +0000 (06:03 +0000)]
MFC r272410:
Add new USB ID.

PR: 194091

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

9 years agoMFC r272349, r272422 and r272479:
hselasky [Mon, 6 Oct 2014 06:01:46 +0000 (06:01 +0000)]
MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.

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

9 years agoMFC r272579:
bdrewery [Mon, 6 Oct 2014 00:27:08 +0000 (00:27 +0000)]
MFC r272579:

  Bump .Dd missed in r271424

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

9 years agoMFC r271424:
bdrewery [Sun, 5 Oct 2014 23:32:58 +0000 (23:32 +0000)]
MFC r271424:

  - Add $netif_ipexpand_max to specify the upper limit for the number of
    addresses generated by an address range specification.  The default value
    is 2048.  This can be increased by setting $netif_ipexpand_max in rc.conf.

PR: 186841

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

9 years agoMFC r272305
rodrigc [Sun, 5 Oct 2014 02:52:54 +0000 (02:52 +0000)]
MFC r272305

Fix pkill unit test.

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

9 years agoMFC r271351
alc [Sat, 4 Oct 2014 22:52:21 +0000 (22:52 +0000)]
MFC r271351
  Fix a boundary case error in vm_reserv_alloc_contig().

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

9 years agoMFC r272130:
kib [Sat, 4 Oct 2014 19:37:44 +0000 (19:37 +0000)]
MFC r272130:
In kern_linkat() and kern_renameat(), do not call namei(9) while
holding a write reference on the filesystem.  Try to get write
reference in unblocked way after all vnodes are resolved; if failed,
drop all locks and retry after waiting for suspension end.

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

9 years agoMFC r271747:
kib [Sat, 4 Oct 2014 19:33:58 +0000 (19:33 +0000)]
MFC r271747:
 - Use NULL instead of 0 for fpcurthread.
 - Note the quirk with the interrupt enabled state of the dna handler.
 - Use just panic() instead of printf() and panic().  Print tid instead
   of pid, the fpu state is per-thread.

MFC r271924:
Update and clarify comments.  Remove the useless counter for impossible, but
seen in wild situation (on buggy hypervisors).

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

9 years agoMFC r271467, r271468:
pfg [Sat, 4 Oct 2014 17:46:04 +0000 (17:46 +0000)]
MFC r271467, r271468:
ext2fs: add ext2_getpages().

Literally copy/pasted from ffs_getpages().

Tested with: fsx

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

9 years agoMFC 271761:
trasz [Sat, 4 Oct 2014 14:40:12 +0000 (14:40 +0000)]
MFC 271761:

Add missing link to TIMEOUT_TASK_INIT(9).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 271759:
trasz [Sat, 4 Oct 2014 14:38:39 +0000 (14:38 +0000)]
MFC 271759:

Add missing links to taskqueue(9).

Sponsored by: The FreeBSD Foundation

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

9 years agoBump __FreeBSD_version after releng/10.1 branch.
gjb [Fri, 3 Oct 2014 00:58:42 +0000 (00:58 +0000)]
Bump __FreeBSD_version after releng/10.1 branch.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoUpdate stable/10 to -RC1 in preparation of branching releng/10.1
gjb [Fri, 3 Oct 2014 00:13:10 +0000 (00:13 +0000)]
Update stable/10 to -RC1 in preparation of branching releng/10.1

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271528: MFV r271512:
delphij [Thu, 2 Oct 2014 22:52:05 +0000 (22:52 +0000)]
MFC r271528: MFV r271512:

Illumos issue:
    5136 fix write throttle comment in dsl_pool.c

Approved by: re (gjb)

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

9 years agoMFC r271527: MFV r271511:
delphij [Thu, 2 Oct 2014 22:16:00 +0000 (22:16 +0000)]
MFC r271527: MFV r271511:

Use fnvlist_* to make code more readable.

Illumos issue:
    5135 zpool_find_import_cached() can use fnvlist_*

Approved by: re (gjb)

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

9 years agoMFC r271141: Allow multiple image activators to run on the same
sbruno [Thu, 2 Oct 2014 21:19:13 +0000 (21:19 +0000)]
MFC r271141: Allow multiple image activators to run on the same
execution by changing imgp->interpreted to a bitmask instead of,
functionally, a bool.

Approved by: re (gjb)

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

9 years agoMFC r272288,272289:
delphij [Thu, 2 Oct 2014 18:26:40 +0000 (18:26 +0000)]
MFC r272288,272289:

When setting environment variables in the atrun script, use the
"export foo=bar" form instead of "foo=bar; export foo" since the
former allows the shell to catch variable names that are not valid
shell identifiers.  This will cause /bin/sh to exit with an error
(which gets mailed to the at user) and it will not run the script.

Obtained from: OpenBSD (r1.63 millert)
Approved by: re (gjb)

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

9 years agoMFC r271720:
bdrewery [Thu, 2 Oct 2014 18:11:13 +0000 (18:11 +0000)]
MFC r271720:

  If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a
  FILE* leak in getbounds().

PR: 192032
Approved by: re (gjb)

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

9 years agoMFC r272028:
bdrewery [Thu, 2 Oct 2014 18:08:30 +0000 (18:08 +0000)]
MFC r272028:

  Make it more explicitly clear that -t will not change filename.

Approved by: re (gjb)

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

9 years agoMFC r271321:
bdrewery [Thu, 2 Oct 2014 18:05:00 +0000 (18:05 +0000)]
MFC r271321:

  Don't cross mount boundaries when cleaning tmp files.

Approved by: re (gjb)
Relnotes: yes

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

9 years agoMFC r270183:
bdrewery [Thu, 2 Oct 2014 17:58:47 +0000 (17:58 +0000)]
MFC r270183:

  Avoid showing stale errors when nmount(2) fails.

  This should not be documented in relnotes as it still fails due to a
  race with unmounting, but no longer shows bogus details.

Approved by: re (gjb)

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

9 years agoMFC r272389:
delphij [Thu, 2 Oct 2014 17:41:27 +0000 (17:41 +0000)]
MFC r272389:

Diff reduction with kernel code: instruct the compiler that the data of
these types may be unaligned to their "normal" alignment and exercise
caution when accessing them.

PR: 194071
Approved by: re (gjb)

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

9 years agoMFC r272274:
allanjude [Thu, 2 Oct 2014 17:19:32 +0000 (17:19 +0000)]
MFC r272274:
Change the /var dataset in the default ZFS layout to have the
ZFS property canmount=off, making /var/db/pkg part of the / dataset, so
installed package files are consistent with the package database when
using ZFS boot environments (beadm).

PR: 193971
Reviewed by: Shawn Webb, bcr
Approved by: re (gjb), jmg
Relnotes: yes
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC r272254:
hselasky [Thu, 2 Oct 2014 16:57:44 +0000 (16:57 +0000)]
MFC r272254:
Instead of creating the full range of possible ports, try to figure
out the actual number of so-called "embedded jacks" which are present
when a USB MIDI device is attaching.

Approved by: re, gjb

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

9 years agoMFC r272253:
hselasky [Thu, 2 Oct 2014 16:41:43 +0000 (16:41 +0000)]
MFC r272253:

Regenerate usb.conf

Approved by:    re, gjb

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

9 years agoMFC r272027:
hselasky [Thu, 2 Oct 2014 10:46:12 +0000 (10:46 +0000)]
MFC r272027:

Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

NOTE:
  - TSO feature needs r271946, which is not yet merged.

Sponsored by: Mellanox Technologies
Approved by: re, glebius

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

9 years agoMFC r272193
grehan [Wed, 1 Oct 2014 23:15:23 +0000 (23:15 +0000)]
MFC r272193

  Allow the PIC's IMR register to be read before ICW initialisation.

  As of git submit e179f6914152eca9, the Linux kernel does a simple
  probe of the PIC by writing a pattern to the IMR and then reading it
  back, prior to the init sequence of ICW words.

  The bhyve PIC emulation wasn't allowing the IMR to be read until
  the ICW sequence was complete. This limitation isn't required so
  relax the test.

  With this change, Linux kernels 3.15-rc2 and later won't hang
  on boot when calibrating the local APIC.

Approved by: re (gjb)

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

9 years agoMFC r268376 (imp):
gjb [Wed, 1 Oct 2014 16:18:40 +0000 (16:18 +0000)]
MFC r268376 (imp):

  rm -rf can fail sometimes with an error from fts_read. Make it
  honor fflag to ignore fts_read errors, but stop deleting from
  that directory because no further progress can be made.

  When building a kernel with a high -j value on a high core count
  machine, during the cleanobj phase we can wind up doing multiple
  rm -rf at the same time for modules that have subdirectories. This
  exposed this race (sometimes) as fts_read can return an error if
  the directory is removed by another rm -rf. Since the intent of
  the -f flag was to ignore errors, even if this was a bug in
  fts_read, we should ignore the error like we've been instructed
  to do.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFH (r272280, r272281, r272348): allow use with null user and rhost
des [Wed, 1 Oct 2014 10:26:43 +0000 (10:26 +0000)]
MFH (r272280, r272281, r272348): allow use with null user and rhost

PR: 83099 193927
Approved by: re (kib)

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

9 years agoMFC r271526: MFV r271510:
delphij [Tue, 30 Sep 2014 21:03:17 +0000 (21:03 +0000)]
MFC r271526: MFV r271510:

Enforce 4K as smallest indirect block size (previously the smallest
indirect block size was 1K but that was never used).

This makes some space estimates more accurate and uses less memory
for some data structures.

Illumos issue:
    5141 zfs minimum indirect block size is 4K

Approved by: re (gjb)

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

9 years agoMFC the altera_atse.4.
brooks [Tue, 30 Sep 2014 20:32:27 +0000 (20:32 +0000)]
MFC the altera_atse.4.

This was intended to have been merged along with r256752.  This commit
contains the altera_atse.4 portions of r256752, r257656, and r270268.

Approved by: re (gjb)
Sponsored by: DARPA/AFRL

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

9 years agoMFC r271493,271688-271689,271696,271854,272139-272143:
delphij [Tue, 30 Sep 2014 17:54:57 +0000 (17:54 +0000)]
MFC r271493,271688-271689,271696,271854,272139-272143:

Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by: re (gjb)

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

9 years agoMFC 271745,271834,271899,271900,271913,272022,272023:
bz [Tue, 30 Sep 2014 16:55:19 +0000 (16:55 +0000)]
MFC 271745,271834,271899,271900,271913,272022,272023:

  Revert changes to shared code of the ixl and ixlv drivers to allow
  for easier long-term maintainability.

  Restrict the drivers to building on amd64 for now as it is
  only tested on that 64bit architecture.

  Just depend on PCI and neither INET nor INET6; also make sure we
  can build individual drivers and they do not depend on each other
  anymore.

  Reviewed by: gnn, eric.joyner intel.com
PR: 193824
Approved by: re (gjb)

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

9 years agoMFC r271549 (nwhitehorn):
emaste [Tue, 30 Sep 2014 16:36:50 +0000 (16:36 +0000)]
MFC r271549 (nwhitehorn):

    Create /tmp/bsdinstall_etc even if we aren't starting the installer
    so that dhclient can write resolv.conf when used from the live
    environment.

PR: 176078
Approved by: re

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

9 years agoMFC r271875, r272046, r272049, r272056
rodrigc [Tue, 30 Sep 2014 16:14:02 +0000 (16:14 +0000)]
MFC r271875, r272046, r272049, r272056
 -> Reference the test case "packs" to fix warnings
 -> Delete mentions to removed manpages
 -> Minor fixes to docs

Approved by: re (gjb)

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

9 years agoMFC r272105: Remove duplicated header content
emaste [Tue, 30 Sep 2014 13:56:32 +0000 (13:56 +0000)]
MFC r272105: Remove duplicated header content

Approved by: re (gjb, kib)

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

9 years agoMFC r272137:
wblock [Sun, 28 Sep 2014 23:15:18 +0000 (23:15 +0000)]
MFC r272137:

Revised to better point to release notes and errata, security
advisories, and be more specific about the -questions list.

Approved by: re (gjb)

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

9 years agoMFC r272132:
kib [Sun, 28 Sep 2014 11:08:32 +0000 (11:08 +0000)]
MFC r272132:
Fix fcntl(2) compat32 after r270691.

Approved by: re (glebius)

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

9 years agoMFC revisions 268999, 269027, 269351-269352, 269354, 269460, 270283,
dteske [Sat, 27 Sep 2014 23:57:21 +0000 (23:57 +0000)]
MFC revisions 268999, 269027, 269351-269352, 269354, 269460, 270283,
270505, 270954, and 270989:
r268999: Add new bsdconfig example scripts; remove obsolete ones
r269027: Update bsdconfig dot module; fixes and enhancements
r269351: Add setvar() for non-FreeBSD platforms using bash as /bin/sh
r269352: Fix syntax error when run under bash
r269354: Update setvar() function introduced in r269351
r269460: Update f_xdialog_info() in bsdconfig's dialog.subr include
r270283: Add `-A' flag to pkg-install(8) when installing dependencies
r270505: Optimize f_which() to be slightly faster still (common.subr)
r270954: Update f_dialog_init() for safer getopts usage (dialog.subr)
r270989: Fix for previously mentioned r270954

Approved by: re (gjb)

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

9 years agoMFC r272071:
smh [Sat, 27 Sep 2014 18:20:45 +0000 (18:20 +0000)]
MFC r272071:
Fix ticks wrap issue of lowmem test in vm_pageout_scan

Approved by: re (kib)
Sponsored by: Multiplay

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

9 years agoMFC r271874:
hselasky [Sat, 27 Sep 2014 18:08:39 +0000 (18:08 +0000)]
MFC r271874:
Add new USB IDs.

PR: 193775
Approved by: re, gjb

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

9 years agoMFC r272059:
mav [Sat, 27 Sep 2014 08:33:50 +0000 (08:33 +0000)]
MFC r272059:
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

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

Approved by: re (kib)

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

9 years agoMFC r272040:
mav [Sat, 27 Sep 2014 08:14:15 +0000 (08:14 +0000)]
MFC r272040:
When reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
or I_T NEXUS LOSS, clear all minor UAs for the LUN, redundant in this case.

All SAM specifications tell that target MAY do it, but libiscsi initiator
seems require it to be done, terminating connection with error if some more
UAs happen to be reported during iSCSI connection.

Approved by: re (gjb)

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

9 years agoMFC r272036:
kib [Sat, 27 Sep 2014 07:54:27 +0000 (07:54 +0000)]
MFC r272036:
Avoid calling vm_map_pmap_enter() for the MADV_WILLNEED on the wired
entry, the pages must be already mapped.

Approved by: re (gjb)

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

9 years agoMFC revisions 271553, 271567:
dteske [Sat, 27 Sep 2014 01:50:03 +0000 (01:50 +0000)]
MFC revisions 271553, 271567:
r271553: Rename choices in partitioning method dialog (nwhitehorn)
r271567: ZFS support isn't actually experimental anymore (nwhitehorn)

Approved by: re (gjb)

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

9 years agoMFC revisions 262864-262865, 263114, 267970:
dteske [Fri, 26 Sep 2014 23:01:27 +0000 (23:01 +0000)]
MFC revisions 262864-262865, 263114, 267970:
r262864: Stop pw(8) from segfaulting when given certain input (julian)
r262865: Part 2 of bug 187310 (julian)
r263114: Fix pw(8) edge-case deletion of group "username" on userdel
r267970: Fix infinite-loop during deletion of users from groups

PR: 187310, 169471, 191427
Submitted by: Voradesh Yenbut, Alexander Pyhalov, Kim Shrier
Obtained from: bug
Approved by: re (gjb)

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

9 years agoMFC revisions 268860, 268863:
dteske [Fri, 26 Sep 2014 22:54:10 +0000 (22:54 +0000)]
MFC revisions 268860, 268863:
r268860: Minor enhancements, bug fixes, and man-page adjustments.
r268863: Bump .Dd in manual

Reported by: lme
Approved by: re (gjb)

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

9 years agoMFC r270993:
mjg [Fri, 26 Sep 2014 20:05:28 +0000 (20:05 +0000)]
MFC r270993:

Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced processes.

This fixes a regression in inferior().

Approved by: re (marius)

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

9 years agoForced commit to mark the real 10.1-BETA3 point, after
gjb [Fri, 26 Sep 2014 09:52:39 +0000 (09:52 +0000)]
Forced commit to mark the real 10.1-BETA3 point, after
r272152.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoProperly revert r272128.
gjb [Fri, 26 Sep 2014 03:03:58 +0000 (03:03 +0000)]
Properly revert r272128.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoRevert r272149, which introduces obscure vestiges from the
gjb [Fri, 26 Sep 2014 02:30:47 +0000 (02:30 +0000)]
Revert r272149, which introduces obscure vestiges from the
r272128 reversal.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoForced commit to reflect the real 10.1-BETA3 point.
gjb [Fri, 26 Sep 2014 01:14:11 +0000 (01:14 +0000)]
Forced commit to reflect the real 10.1-BETA3 point.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoRevert r272128:
gjb [Fri, 26 Sep 2014 01:08:31 +0000 (01:08 +0000)]
Revert r272128:
  Though this passes the buildworld test, this fails during
  installworld with:

  make[3]: "/releng/scripts-release/chroots/10/i386/release/etc/devd/Makefile"
  line 13: Malformed conditional (${MK_HYPERV} != "no")

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoUpdate stable/10 to -BETA3 as part of the 10.1-RELEASE
gjb [Fri, 26 Sep 2014 00:00:13 +0000 (00:00 +0000)]
Update stable/10 to -BETA3 as part of the 10.1-RELEASE
cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272007
grehan [Thu, 25 Sep 2014 23:09:35 +0000 (23:09 +0000)]
MFC r272007

Correct display of bhyve SMBIOS UUIDs with dmidecode by bumping the version.

The mixed little/big-endianness of SMBIOS UUIDs was clarified in v2.6
of the SMBIOS spec. dmidecode uses the reported version of SMBIOS to
determine the layout and what to byte-swap.

bhyve's SMBIOS reported as 2.4 though it implemented the 2.6-style of
memory layout. This resulted in dmidecode reporting a different
UUID than one passed in via the -U option.

Fix by exporting a version of 2.6.

Approved by: re (gjb)

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

9 years agoMFC r271227: MFV r271225:
delphij [Thu, 25 Sep 2014 21:45:07 +0000 (21:45 +0000)]
MFC r271227: MFV r271225:

Iterate through all the children instead of returning error when we hit
the first error.  This makes the error message give more information
rather than just the first device that causes problem.

Illumos issue:
    5118 When verifying or creating a storage pool, error messages only
       show one device

Approved by: re (gjb)

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

9 years agoMFC r271536: MFV r271518:
delphij [Thu, 25 Sep 2014 21:28:19 +0000 (21:28 +0000)]
MFC r271536: MFV r271518:

Correctly report hole at end of file.

When asked to find a hole, the DMU sees that there are no holes in the
object, and returns ESRCH.  The ZPL interprets this as "no holes before
the end of the file", and therefore inserts the "virtual hole" at the
end of the file.  Because DMU and ZPL have different ideas of where the
end of an object/file is, we will end up returning the end of file,
which is generally larger, instead of returning the end of object.

The fix is to handle the "virtual hole" in the DMU. If no hole is found,
the DMU will return a hole at the end of the file, rather than an error.

Illumos issue:
    5139 SEEK_HOLE failed to report a hole at end of file

Approved by: re (gjb)

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

9 years agoMFC r271534: MFV r271517:
delphij [Thu, 25 Sep 2014 21:07:30 +0000 (21:07 +0000)]
MFC r271534: MFV r271517:

In zil_claim, don't issue warning if we get EBUSY (inconsistent) when
opening an objset, instead, ignore it silently.

Illumos issue:

    5140 message about "%recv could not be opened" is printed when
         booting after crash

Approved by: re (gjb)

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

9 years agoRegen.
delphij [Thu, 25 Sep 2014 20:56:05 +0000 (20:56 +0000)]
Regen.

This is a direct commit to stable/10 instead of a MFC of
r271494.

Approved by: re (gjb)

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

9 years agoMFC r271493,271688,271689,271696,271854:
delphij [Thu, 25 Sep 2014 20:34:13 +0000 (20:34 +0000)]
MFC r271493,271688,271689,271696,271854:

Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by: re (gjb)

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

9 years agoMFC r271259:
trasz [Thu, 25 Sep 2014 17:59:00 +0000 (17:59 +0000)]
MFC r271259:

Make it possible to use empty user name ("-U ''") for mount_smbfs(8).
It's just like "-U guest", except that it actually works, at least
with Samba 4, which seems to return authentication failure for "-U guest".

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271258:
trasz [Thu, 25 Sep 2014 17:47:26 +0000 (17:47 +0000)]
MFC r271258:

Make mount_smbfs(8) preserve the "automounted" mount flag.

The issue here is that we have to pass this flag as a string,
in iov, because it doesn't fit in mntflags, which is an int.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272037:
trasz [Thu, 25 Sep 2014 17:38:42 +0000 (17:38 +0000)]
MFC r272037:

Fix thinko that, with two map entries like shown below, in that order,
made automountd(8) mix them up: trying to access the second one would
trigger mount for the first one.

foo             host:/foo
foobar          host:/foobar

PR: 193584
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272025:
trasz [Thu, 25 Sep 2014 17:28:29 +0000 (17:28 +0000)]
MFC r272025:

Fix thinko that, with two map entries like shown below, in that order,
made autofs mix them up: the second one wasn't visible in ls(1) output,
and trying to access it would trigger mount for the first one.

foobar          host:/foobar
foo             host:/foo

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r271947, OpenPAM updated to Ourouparia (20140912).
gjb [Thu, 25 Sep 2014 16:48:23 +0000 (16:48 +0000)]
Document r271947, OpenPAM updated to Ourouparia (20140912).

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r271943, Latest/pkg.txz symlink included on the DVD to
gjb [Thu, 25 Sep 2014 16:48:21 +0000 (16:48 +0000)]
Document r271943, Latest/pkg.txz symlink included on the DVD to
make bootstrapping pkg(8) easier.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r271880, serial and null console support added to UEFI
gjb [Thu, 25 Sep 2014 16:48:19 +0000 (16:48 +0000)]
Document r271880, serial and null console support added to UEFI
boot loader.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271958:
se [Thu, 25 Sep 2014 16:35:19 +0000 (16:35 +0000)]
MFC r271958:

Permit use of "no" as specification of a Norwegian keymap file.
Only "keymap=NO" (the default in defaults/rc.conf) or "keymap="
(an empty value) will prevent loading of a keymap file.

Approved by: re (gjb)

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

9 years agoMFC r268981
ray [Thu, 25 Sep 2014 13:08:31 +0000 (13:08 +0000)]
MFC r268981
Remove #ifdef-s to reduce difference to upstream.

Pointed by:     kib
Approved by:    re (glebius)

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271957: Fix read overrun handling, broken by using wrong variable.
mav [Thu, 25 Sep 2014 09:12:11 +0000 (09:12 +0000)]
MFC r271957:  Fix read overrun handling, broken by using wrong variable.

Approved by: re (marius)

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

9 years agoMFC r271949:
mav [Thu, 25 Sep 2014 09:11:01 +0000 (09:11 +0000)]
MFC r271949:
Fix UNMAP stuck if the last block descriptor in the list is empty.

Approved by: re (glebius)

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

9 years agoMFC r271953:
hselasky [Thu, 25 Sep 2014 07:37:41 +0000 (07:37 +0000)]
MFC r271953:
Some XHCI hardware requires dropping the endpoint context before
adding it again.

Approved by: re, glebius

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

9 years agoMFC r269392: Add /usr/lib32/compat to the default ld-elf32.so.1 path.
peter [Wed, 24 Sep 2014 19:30:36 +0000 (19:30 +0000)]
MFC r269392: Add /usr/lib32/compat to the default ld-elf32.so.1 path.

Approved by: re (gjb, delphij)

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

9 years agoMFC r271934:
smh [Wed, 24 Sep 2014 09:59:48 +0000 (09:59 +0000)]
MFC r271934:
Output boot code warning when zpool upgrade -a is used to add features.

PR: 188328
Approved by: re (marius)
Sponsored by: Multiplay

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

9 years agoMFC r271447, r271496
rodrigc [Wed, 24 Sep 2014 07:29:07 +0000 (07:29 +0000)]
MFC r271447, r271496
 - Attach the ISO to an ahci-cd emulated device
 - Propagate the error status of /usr/sbin/bhyve

Approved by:re (delphij)

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

9 years agoMFC r271429, r271882:
smh [Tue, 23 Sep 2014 21:38:05 +0000 (21:38 +0000)]
MFC r271429, r271882:
Add support for controlling mfi(4) controller properties

Approved by: re (glebius)
Sponsored by: Multiplay

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

9 years agoMFC 271881: Fix partition alignment and image rounding when any of
marcel [Tue, 23 Sep 2014 16:05:23 +0000 (16:05 +0000)]
MFC 271881: Fix partition alignment and image rounding when any of
-P (block size),  -T (track size) or -H (number of heads) is given.

Approved by: re@ (gjb)

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

9 years agoThis is a direct commit rather than an MFC of r271744.
bz [Tue, 23 Sep 2014 07:53:32 +0000 (07:53 +0000)]
This is a direct commit rather than an MFC of r271744.

  Re-gen after r272020 (r271743 in head) implementing most of
  timer_{create,settime,gettime,getoverrun,delete}.

Approved by: re (gjb)
Sponsored by: DARPA/AFRL

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

9 years agoMFC r271743:
bz [Tue, 23 Sep 2014 07:50:04 +0000 (07:50 +0000)]
MFC r271743:

  Implement most of timer_{create,settime,gettime,getoverrun,delete}
  for amd64/linux32.  Fix the entirely bogus (untested) version from
  r161310 for i386/linux using the same shared code in compat/linux.

  It is unclear to me if we could support more clock mappings but
  the current set allows me to successfully run commercial
  32bit linux software under linuxolator on amd64.

  Reviewed by: jhb
  Differential Revision: D784
Sponsored by: DARPA, AFRL
Approved by: re (gjb)

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

9 years agoDocument r272006, GEOM_ELI passphrase caching on boot with multiple
gjb [Tue, 23 Sep 2014 01:18:18 +0000 (01:18 +0000)]
Document r272006, GEOM_ELI passphrase caching on boot with multiple
providers.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r271967, mkimg(1) empty partition support.
gjb [Tue, 23 Sep 2014 01:18:16 +0000 (01:18 +0000)]
Document r271967, mkimg(1) empty partition support.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoAdd sponsor attribution for r271470
gjb [Tue, 23 Sep 2014 01:18:13 +0000 (01:18 +0000)]
Add sponsor attribution for r271470

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r271816, drm/i915 HW context support.
gjb [Tue, 23 Sep 2014 01:18:11 +0000 (01:18 +0000)]
Document r271816, drm/i915 HW context support.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r271470, addition of BIOS- and UEFI-capable CDROM images.
gjb [Tue, 23 Sep 2014 01:18:09 +0000 (01:18 +0000)]
Document r271470, addition of BIOS- and UEFI-capable CDROM images.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271664:
cperciva [Tue, 23 Sep 2014 00:43:18 +0000 (00:43 +0000)]
MFC r271664:
  Cache GELI passphrases entered at the console during the boot process,
  in order to improve user-friendliness when a system has multiple disks
  encrypted using the same passphrase.

Relnotes: yes
Approved by: re (gjb)

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

9 years agoMFC r271728
davidcs [Mon, 22 Sep 2014 21:12:30 +0000 (21:12 +0000)]
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before printing error message.

Approved by: re(gjb)

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

9 years agoMFC r271727
davidcs [Mon, 22 Sep 2014 20:53:17 +0000 (20:53 +0000)]
MFC r271727
remove clean option from Makefile

Approved by: re(gjb)

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

9 years agoMFC 270850,271053,271192,271717:
jhb [Mon, 22 Sep 2014 20:34:36 +0000 (20:34 +0000)]
MFC 270850,271053,271192,271717:
Save and restore FPU state across suspend and resume on i386.
- Create a separate structure for per-CPU state saved across suspend and
  resume that is a superset of a pcb.
- Store the FPU state for suspend and resume in the new structure
  (for amd64, this moves it out of the PCB)
- On both i386 and amd64, all of the FPU suspend/resume handling is now
  done in C.

Approved by: re (hrs)

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

9 years agoMake sure all memory updates are made visible before we let go
marcel [Mon, 22 Sep 2014 20:10:45 +0000 (20:10 +0000)]
Make sure all memory updates are made visible before we let go
of the thread in cpu_switch(). It's otherwise possible that on
another CPU the thread continues from stale context data.

Note that this is prominent on newer CPUs, like the Montecito,
that really take advantage of the weak memory ordering. First
generation Itanium 2 is not that aggressive and does not need
this.

This is a direct commit to stable/10.

Approved by: re@ (gjb)

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