]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC: r273144, r273146
jkim [Wed, 15 Oct 2014 19:59:43 +0000 (19:59 +0000)]
MFC: r273144, r273146

Merge OpenSSL 1.0.1j.

Relnotes: yes

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

9 years agoMFC 271721:
jhb [Wed, 15 Oct 2014 19:27:14 +0000 (19:27 +0000)]
MFC 271721:
Explicitly specify MAP_SHARED when mapping the stats file descriptor.

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

9 years agoMFC r272761:
kib [Wed, 15 Oct 2014 14:07:24 +0000 (14:07 +0000)]
MFC r272761:
Add an argument to the x86 pmap_invalidate_cache_range() to request
forced invalidation of the cache range regardless of the presence of
self-snoop feature.

MFC r272943:
MFi386 r272761.

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

9 years agoMFC r272070:
kib [Wed, 15 Oct 2014 13:39:00 +0000 (13:39 +0000)]
MFC r272070:
Expand the libthr(3) manpage to document knobs accepted by libthr.so
and explain some internal working of the library, neccessary to
understand the knobs effects.

MFC r272153 (by pluknet):
Fix description of mutex acquisition.

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

9 years agoMFC r272069:
kib [Wed, 15 Oct 2014 13:36:01 +0000 (13:36 +0000)]
MFC r272069:
Switch the defaults to not split the RLIMIT_STACK-sized initial thread
stack into the stacks of the created threads.  Add knob
LIBPTHREAD_SPLITSTACK_MAIN to restore the older behaviour.

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

9 years agoMFC r272756: Properly report 12Gbps connection rate.
mav [Wed, 15 Oct 2014 08:03:12 +0000 (08:03 +0000)]
MFC r272756:  Properly report 12Gbps connection rate.

Reviewed by: kadesai, slm

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

9 years agoMFC r272749:
ae [Wed, 15 Oct 2014 04:34:07 +0000 (04:34 +0000)]
MFC r272749:
  Fix comment.

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

9 years agoMFC r267851:
pfg [Tue, 14 Oct 2014 23:16:52 +0000 (23:16 +0000)]
MFC r267851:

Continue the crusade towards a dev_clone()-free kernel, removing its
usage from dtrace. The dtrace code already uses cdevpriv(9) since FreeBSD
8, so this change is quite harmless.

Originally by: davide
Reviewed by: markj

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

9 years agoMFC r269023,r272503,r272505,r272523,r272567,r272569,r272574
mjg [Tue, 14 Oct 2014 21:19:23 +0000 (21:19 +0000)]
MFC r269023,r272503,r272505,r272523,r272567,r272569,r272574

Prepare fget_unlocked for reading fd table only once.

Some capsicum functions accept fdp + fd and lookup fde based on that.
Add variants which accept fde.

===============================

Add sequence counters with memory barriers.

Current implementation is somewhat simplistic and hackish,
will be improved later after possible memory barrier overhaul.

===============================

Plug capability races.

fp and appropriate capability lookups were not atomic, which could result in
improper capabilities being checked.

This could result either in protection bypass or in a spurious ENOTCAPABLE.

Make fp + capability check atomic with the help of sequence counters.

===============================

Put and #ifdef _KERNEL around the #include for opt_capsicum.h to
hopefully allow the build to finish after r272505.

===============================

filedesc: fix up breakage introduced in 272505

Include sequence counter supports incoditionally [1]. This fixes reprted build
problems with e.g. nvidia driver due to missing opt_capsicum.h.

Replace fishy looking sizeof with offsetof. Make fde_seq the last member in
order to simplify calculations.

===============================

Keep struct filedescent comments within 80-char limit.

===============================

seq_t needs to be visible to userspace

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

9 years agoMFC r269627:
skreuzer [Tue, 14 Oct 2014 19:21:04 +0000 (19:21 +0000)]
MFC r269627:

Mention tmpfs(5)

PR:             192389
Submitted by:   yaneurabeya@gmail.com
Approved by:    hrs (mentor)

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

9 years agoRevert r273084:
gjb [Tue, 14 Oct 2014 16:44:15 +0000 (16:44 +0000)]
Revert r273084:
  In the stable/ branches, release.prev intentionally points to the
  previous version, in addition to a number of intentional version
  mappings for the errata.html page, that this commit breaks.

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

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

9 years agoClean up the stable/10 errata document now that releng/10.1
gjb [Tue, 14 Oct 2014 13:06:13 +0000 (13:06 +0000)]
Clean up the stable/10 errata document now that releng/10.1
has precedence over releng/10.0.

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

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

9 years agoUpdate the FreeBSD versions in the stable/10 errata documentation
gjb [Tue, 14 Oct 2014 13:03:11 +0000 (13:03 +0000)]
Update the FreeBSD versions in the stable/10 errata documentation
to reflect reality.

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

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

9 years agoMFC r272414:
gjb [Tue, 14 Oct 2014 12:23:44 +0000 (12:23 +0000)]
MFC r272414:
  Merge the following revisions from ^/projects/release-vmimage:

  r272234, r272236, r272262, r272264, r272269, r272271, r272272,
  r272277, r272279, r272376, r272380, r272381, r272392, r272234,
  r272412:

  r272234:
    Initial commit to include virtual machine images as part
    of the FreeBSD release builds.

    This adds a make(1) environment variable requirement,
    WITH_VMIMAGES, which triggers the virtual machine image
    targets when not defined to an empty value.

    Relevant user-driven variables include:

     o VMFORMATS: The virtual machine image formats to create.
       Valid formats are provided by running 'mkimg --formats'

     o VMSIZE: The size of the resulting virtual machine
       image.  Typical compression is roughly 140Mb, regardless
       of the target size (10GB, 15GB, 20GB, 40GB sizes have been
       tested with the same result).

     o VMBASE: The prefix of the virtual machine disk images.
       The VMBASE make(1) environment variable is suffixed with
       each format in VMFORMATS for each individual disk image, as
       well as '.img' for the source UFS filesystem passed to
       mkimg(1).

    This also includes a new script, mk-vmimage.sh, based on how
    the VM images for 10.0-RELEASE, 9.3-RELEASE, and 10.1-RELEASE
    were created (mk-vmimage.sh in ^/user/gjb/thermite/).

    With the order in which the stages need to occur, as well as
    sanity-checking error cases, it makes much more sense to
    execute a shell script called from make(1), using env(1) to
    set specific parameters for the target image than it does to
    do this in make(1) directly.

  r272236:
    Use VMBASE in place of a hard-coded filename in the CLEANFILES
    list.

  r272262:
    Remove a 'set -x' that snuck in during testing.

  r272264:
    release/Makefile:
      Connect the virtual machine image build to the release
      target if WITH_VMIMAGES is set to a non-empty value.

    release/release.sh:
      Add WITH_VMIMAGES to RELEASE_RMAKEFLAGS.

    release/release.conf.sample:
      Add commented entries for tuning the release build if the
      WITH_VMIMAGES make(1) environment variable is set to
      a non-empty value.

  r272269:
    release/Makefile:
      Include .OBJDIR in DESTDIR in the vm-base target.

    release/release.sh:
      Provide the full path to mddev.

  r272271:
    Fix UFS label for the root filesystem.

  r272272:
    Remove comments left in accidentally while testing, so the
    VM /etc/fstab is actually created.

  r272277:
    Remove the UFS label from the root filesystem since it is added
    by mkimg(1) as a gpt label, consistent with the fstab(5) entry.

  r272279:
    Comment cleanup in panic() message when mkimg(1) does not support
    the requested disk image format.

  r272376:
    Separate release/scripts/mk-vmimage.sh to machine-specific
    scripts, making it possible to mimic the functionality for
    non-x86 targets.

    Move echo output if MAKEFLAGS is empty outside of usage().

    Remove TARGET/TARGET_ARCH evaluation.

  r272380:
    Avoid using env(1) to set values passed to mk-vmimage.sh,
    and instead pass the values as arguments to the script,
    making it easier to run this by hand, without 'make release'.

    Add usage_vm_base() and usage_vm_image() usage helpers.

  r272381:
    After evaluating WITH_VMIMAGES is non-empty, ensure
    the mk-vmimage.sh script exists before running it.

  r272392:
    Add WITH_COMPRESSED_VMIMAGES variable, which when set enables
    xz(1) compression of the virtual machine images.

    This is intentionally separate to allow more fine-grained
    tuning over which images are compressed, especially in cases
    where compressing 20GB sparse images can take hours.

  r272412:
    Document the new 'vm-image' target, and associated release.conf
    variables.

  r272413:
    Remove two stray comments added during the initial iterations
    of testing, no longer needed.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271588: Update CAM CCB accounting for the new status quo.
mav [Tue, 14 Oct 2014 12:13:01 +0000 (12:13 +0000)]
MFC r271588:  Update CAM CCB accounting for the new status quo.

devq_openings counter lost its meaning after allocation queues has gone.
held counter is still meaningful, but problematic to update due to separate
locking of CCB allocation and queuing.

To fix that replace devq_openings counter with allocated counter.  held is
now calculated on request as difference between number of allocated, queued
and active CCBs.

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

9 years agoMFC r272932:
trasz [Tue, 14 Oct 2014 07:52:37 +0000 (07:52 +0000)]
MFC r272932:

Mark iscontrol(8) and iscsi_initiator(4) obsolete.

Differential Revision: https://reviews.freebsd.org/D931
Reviewed by: wblock@
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272502: MFV r272493:
delphij [Mon, 13 Oct 2014 18:53:56 +0000 (18:53 +0000)]
MFC r272502: MFV r272493:

Show individual disk capacity when doing zpool list -v.

Illumos issue:
    5147 zpool list -v should show individual disk capacity

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

9 years agoFix a missed merge introduced in r272883.
delphij [Mon, 13 Oct 2014 18:46:30 +0000 (18:46 +0000)]
Fix a missed merge introduced in r272883.

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

9 years agoMFC r272907:
kib [Mon, 13 Oct 2014 15:58:03 +0000 (15:58 +0000)]
MFC r272907:
Make MAP_NOSYNC handling in the vm_fault() read-locked object path
compatible with write-locked path.

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

9 years agoMFH (r272830): change the hardcoded default back to DES
des [Mon, 13 Oct 2014 15:56:47 +0000 (15:56 +0000)]
MFH (r272830): change the hardcoded default back to DES
MFH (r272833): remove last vestige of MD5 password hashes

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

9 years agoMFH (r272173): offer to enable local_unbound after installation
des [Mon, 13 Oct 2014 15:53:01 +0000 (15:53 +0000)]
MFH (r272173): offer to enable local_unbound after installation

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

9 years agovt(4): Don't recalculate buffer size if we don't know screen size
dumbbell [Mon, 13 Oct 2014 14:40:00 +0000 (14:40 +0000)]
vt(4): Don't recalculate buffer size if we don't know screen size

(MFC of r272537)

When the screen size is unknown, it's set to 0x0. We can't use that as
the buffer size, otherwise, functions such as vtbuf_fill() will fail.

This fixes a panic on RaspberryPi, where there's no vt(4) backend
configured early in boot.

PR: 193981
Tested by: danilo@

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

9 years agovt(4): Save/restore keyboard mode & LED states when switching window
dumbbell [Mon, 13 Oct 2014 13:50:51 +0000 (13:50 +0000)]
vt(4): Save/restore keyboard mode & LED states when switching window

(MFC of r272416)

Add new functions to manipulate these mode & state, instead of calling
kbdd_ioctl() everyhere.

This fixes at least two bugs:

    1. The state of the Scroll Lock LED and the state of scroll mode
       could be out-of-sync. For instance, if one enables scroll mode on
       window #1 and switches to window #2, the LED would remain on, but
       the window wouldn't be in scroll mode.

       Similarily, when switching between a console and an X.Org
       session, the LED states could be inconsistent with the real
       state.

    2. When exiting from an X.Org session, the user could be unable to
       type anything. The workaround was to switch to another console
       window and come back.

Differential Revision: https://reviews.freebsd.org/D821
Reviewed by: ray@
Approved by: ray@
Tested by: kwm@

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

9 years agoMFC r272841:
tuexen [Sun, 12 Oct 2014 17:45:22 +0000 (17:45 +0000)]
MFC r272841:
Ensure that the flags field of sctp_tmit_chunks is initialized.
Thanks to Peter Bostroem from Google for reporting the issue.

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

9 years agoMFC r272751:
tuexen [Sun, 12 Oct 2014 17:42:32 +0000 (17:42 +0000)]
MFC r272751:
Ensure that the list of streams sent in a stream reset parameter fits
in an mbuf-cluster.
Thanks to Peter Bostroem for drawing my attention to this part of the code.

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

9 years agoMFC r272750:
tuexen [Sun, 12 Oct 2014 17:39:37 +0000 (17:39 +0000)]
MFC r272750:
Ensure that the number of stream reported in srs_number_streams is
consistent with the amount of data provided in the SCTP_RESET_STREAMS
socket option.
Thanks to Peter Bostroem from Google for drawing my attention to
this part of the code.

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

9 years agoMFC r272571:
tuexen [Sun, 12 Oct 2014 17:36:41 +0000 (17:36 +0000)]
MFC r272571:
Remove unused MC_ALIGN macro as suggested by Robert.

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

9 years agoMFC r272555
cy [Sun, 12 Oct 2014 17:21:15 +0000 (17:21 +0000)]
MFC r272555

ipfilter bug #537 NAT rules with sticky have incorrect hostmap IP address.
This fixes when an IP address mapping is put in the hostmap table for
sticky NAT rules, it ends up having the wrong byte order.

Obtained from: ipfilter CVS repo (r1.102), NetBSD CVS repo (r1.12)

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

9 years agoMFC r272554
cy [Sun, 12 Oct 2014 17:19:11 +0000 (17:19 +0000)]
MFC r272554

ipfilter bug #534 destination list hashing not endian neutral

Obtained from: ipfilter CVS repo (r1.26), NetBSD CVS repo (r1.8)

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

9 years agoMFC r272553
cy [Sun, 12 Oct 2014 17:17:19 +0000 (17:17 +0000)]
MFC r272553

ipfilter bug #538 ipf_p_dns_del should return void

Obtained from: ipfilter cvs repo (r1.8)

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

9 years agoMFC r272552
cy [Sun, 12 Oct 2014 17:15:20 +0000 (17:15 +0000)]
MFC r272552

ipfilter bug #554 Determining why a ipf rule matches is hard -- replace
ipfilter rule compare with new ipf_rule_compare() function.

Obtained from: ipfilter CVS rep (r1.129)

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

9 years agoMFC r272551
cy [Sun, 12 Oct 2014 17:13:14 +0000 (17:13 +0000)]
MFC r272551

ipfiler bug #550 filter rule list corrupted with inserted rules

Obtained from: ipfilter CVS repo (r1.128); NetBSD CVS repo (r1.15)

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

9 years agoMFC r272052
cy [Sun, 12 Oct 2014 17:10:44 +0000 (17:10 +0000)]
MFC r272052

ipfilter bug #558 add in some missing frag table function comments.

Obtained from: ipfilter CVS repo (r1.36)

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

9 years agoMFC r271980
cy [Sun, 12 Oct 2014 17:08:44 +0000 (17:08 +0000)]
MFC r271980

Check for NULL before de-refencing; in particular sel is assigned to NULL,
in the default case, and then couple of lines down we do sel->

Obtained from: NetBSD CVS repo (r1.5)

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

9 years agoMFC r271978
cy [Sun, 12 Oct 2014 17:03:47 +0000 (17:03 +0000)]
MFC r271978

ipfilter bug #552 destination port not zero after parsing nat rule.

Obtained from: netbsd CVS repo (r1.4), ipfilter CVS repo (r1.38)

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

9 years agoMFC r271977
cy [Sun, 12 Oct 2014 16:58:45 +0000 (16:58 +0000)]
MFC r271977

3561691 gethost never returns an ipv6 address

Obtained from: ipfilter CVS repo (r1.34), netbsd CVS repo (r1.4)

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

9 years agoMFC r271974
cy [Sun, 12 Oct 2014 16:55:26 +0000 (16:55 +0000)]
MFC r271974

ipfilter bug #551 ipf.conf address structure not properly zero filled.

Obtained from: ipfilter CVS repo (r1.37), netbsd CVS repo (r1.3)

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

9 years agoMFC r271972
cy [Sun, 12 Oct 2014 16:51:02 +0000 (16:51 +0000)]
MFC r271972

Fix ipfilter bug #536 ipnat can try to print rule as dstlist incorrectly.

Obtained from: ipfilter CVS repo (r1.14), netbsd CVS repo (r1.3)

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

9 years agoMFC r271971
cy [Sun, 12 Oct 2014 16:48:22 +0000 (16:48 +0000)]
MFC r271971

Fix ipfilter bug #553 gethost needs to zero entire IP address structure.

Obtained from: ipfilter CVS repo (r1.11)

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

9 years agoMFC r271970
cy [Sun, 12 Oct 2014 16:46:03 +0000 (16:46 +0000)]
MFC r271970

ipv6 address for test.hosts.dots in wrong byte order.

Obtained from: ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5)

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

9 years agoUse proper variable when looping through periphs with CAM_PERIPH_FREE.
mav [Sun, 12 Oct 2014 06:14:50 +0000 (06:14 +0000)]
Use proper variable when looping through periphs with CAM_PERIPH_FREE.

PR: 194256
Submitted by: Scott M. Ferris <smferris@gmail.com>
Sponsored by: EMC/Isilon Storage Division

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

9 years agoMerge: r269884
rodrigc [Sat, 11 Oct 2014 23:31:44 +0000 (23:31 +0000)]
Merge: r269884

Complete the usr.bin/yacc kyua integration work I originally
submitted via r268811

- Install the Kyuafile by adding FILES to FILESGROUPS
- Run the testcases with an unprivileged user

  Some of the testcases depend upon behavior that's broken when
  run as root on FreeBSD because of how permissions are treated
  with access(2) vs eaccess(2), open(2), etc

- Simplify the test driver to just inspect the exit code from
  run_test because it now exits with 0 if successful and exits
  with !0 if unsuccessful
- Don't do ad hoc temporary directory creation/deletion; let Kyua
  handle that
- Add entries for files removed in r268811 to
  OptionalObsoleteFiles.inc

PR: 191020
X-MFC with: r268811
Approved by: jmmv (mentor)
Reviewed by: bapt
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMerge: r258931
rodrigc [Sat, 11 Oct 2014 23:02:03 +0000 (23:02 +0000)]
Merge: r258931

Add missing bits from the vendor's 2005-05-04 change to
contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by
applications") so that applications have a hope of detecting newer
FreeBSD YACC output from an older one.

Submitted by: Juniper Networks

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

9 years agoMFC r271784 - Fix the handling of EOP in status descriptors for if_igb(4)
adrian [Sat, 11 Oct 2014 22:13:24 +0000 (22:13 +0000)]
MFC r271784 - Fix the handling of EOP in status descriptors for if_igb(4)
and don't double-free mbufs.

Like ixgbe(4) chipsets, EOP is only set on the final descriptor
in a chain of descriptors.  So, to free the whole list of descriptors,
we should free the current slot _and_ the assembled list of descriptors
that make up the fragment list.

The existing code was setting discard once it saw EOP + an error status;
it then freed all the subsequent descriptors until the next EOP. That's
totally the wrong order.

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

9 years agoMFC r271645 - Set DROP_EN on each RX queue if transmit flow-control is disabled.
adrian [Sat, 11 Oct 2014 22:12:24 +0000 (22:12 +0000)]
MFC r271645 - Set DROP_EN on each RX queue if transmit flow-control is disabled.

This allows the NIC to drop frames on the receive queue and not
cause the MAC to block on receiving to _any_ queue.

Tested:

igb0@pci0:5:0:0:        class=0x020000 card=0x152115d9 chip=0x15218086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'I350 Gigabit Network Connection'
    class      = network
    subclass   = ethernet

Discussed with: Eric Joyner <eric.joyner@intel.com>
MFC after:    1 week
Sponsored by: Norse Corp, Inc.

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

9 years agoMFC r271649 - Disable flow-director support until it's been debugged
adrian [Sat, 11 Oct 2014 22:10:39 +0000 (22:10 +0000)]
MFC r271649 - Disable flow-director support until it's been debugged
and verified.

The flowdirector feature shares on-chip memory with other things
such as the RX buffers.  In theory it should be configured in a way
that doesn't interfere with the rest of operation.  In practice,
the RX buffer calculation didn't take the flow-director allocation
into account and there'd be overlap.  This lead to various garbage
frames being received containing what looks like internal NIC state.

What _I_ saw was traffic ending up in the wrong RX queues.
If I was doing a UDP traffic test with only one NIC ring receiving
traffic, everything is fine.  If I fired up a second UDP stream
which came in on another ring, there'd be a few percent of traffic
from both rings ending up in the wrong ring.  Ie, the RSS hash would
indicate it was supposed to come in ring X, but it'd come in ring Y.

However, when the allocation was fixed up, the developers at Verisign
still saw traffic stalls.

The flowdirector feature ends up fiddling with the NIC to do various
attempts at load balancing connections by populating flow table rules
based on sampled traffic.  It's likely that all of that has to be
carefully reviewed and made less "magic".

So for now the flow director feature is disabled (which fixes both
what I was seeing and what they were seeing) until it's all much
more debugged and verified.

Tested:

* (me) 82599EB 2x10G NIC, RSS UDP testing.
* (verisign) not sure on the NIC (but likely 82599), 100k-200k/sec TCP
  transaction tests.

Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com>
Sponsored by: Verisign, Inc.

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

9 years agoMFC r271648 - The error bits are not valid with EOP=0; so intermediary
adrian [Sat, 11 Oct 2014 22:09:46 +0000 (22:09 +0000)]
MFC r271648 - The error bits are not valid with EOP=0; so intermediary
fragments should not be discarded.

Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com>
Sponsored by: Verisign, Inc.

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

9 years agoMerge r271647 - Fix a double-free of mbufs in rx_ixgbe_discard().
adrian [Sat, 11 Oct 2014 22:08:53 +0000 (22:08 +0000)]
Merge r271647 - Fix a double-free of mbufs in rx_ixgbe_discard().

  fmp->buf at the free point is already part of the chain being freed,
  so double-freeing is counter-productive.

Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com>
Sponsored by: Verisign, Inc.

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

9 years agoMerge: r268812
rodrigc [Sat, 11 Oct 2014 21:54:23 +0000 (21:54 +0000)]
Merge: r268812

Add the mtree entry for yacc tests

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

9 years agoMFC r272885:
hrs [Sat, 11 Oct 2014 20:35:36 +0000 (20:35 +0000)]
MFC r272885:
  Do not add late flag when file= is specified because it has a bad
  side-effect.  The specified file should exist before the fstab line.

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

9 years agoMerge: r272769
rodrigc [Sat, 11 Oct 2014 19:38:29 +0000 (19:38 +0000)]
Merge: r272769

Import byacc 20141006

PR: 193499

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

9 years agoMerge: 272655
rodrigc [Sat, 11 Oct 2014 19:34:41 +0000 (19:34 +0000)]
Merge: 272655

Import byacc 20141005 from vendor

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

9 years agoMerge: r272649
rodrigc [Sat, 11 Oct 2014 19:28:22 +0000 (19:28 +0000)]
Merge: r272649
 use calloc in get_line() when allocating line to ensure it is fully initialized,
 fixes a later uninitialized value in copy_param() (FreeBSD #193499).

PR: 193499
Submitted by: Thomas E. Dickey  <tom@invisible-island.net>

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

9 years agoMerge: r268811
rodrigc [Sat, 11 Oct 2014 19:18:00 +0000 (19:18 +0000)]
Merge: r268811

Update to byacc 20140715

PR:             191020
Submitted by:   gcooper (yaneurabeya@gmail.com)

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

9 years agoMFC r272538:
kib [Sat, 11 Oct 2014 18:01:09 +0000 (18:01 +0000)]
MFC r272538:
Slightly reword comment.  Move code, which is described by the
comment, after it.

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

9 years agoMFC r272536:
kib [Sat, 11 Oct 2014 17:49:51 +0000 (17:49 +0000)]
MFC r272536:
Add kernel option KSTACK_USAGE_PROF.

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

9 years agoSwitch stable/10 back to -PRERELEASE now that releng/10.1 is
gjb [Sat, 11 Oct 2014 16:16:05 +0000 (16:16 +0000)]
Switch stable/10 back to -PRERELEASE now that releng/10.1 is
branched.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272487:
ae [Sat, 11 Oct 2014 06:04:44 +0000 (06:04 +0000)]
MFC r272487:
  Add UUID of FreeBSD slice to GPT scheme.

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

9 years agoMFC r272762: Correct scale factor for T terabyte suffix
emaste [Sat, 11 Oct 2014 00:30:57 +0000 (00:30 +0000)]
MFC r272762: Correct scale factor for T terabyte suffix

PR: 194250

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

9 years agoMFC r271879:
pfg [Fri, 10 Oct 2014 23:18:44 +0000 (23:18 +0000)]
MFC r271879:
awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

PR: 193147

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

9 years agoMFC 270828,271487,271495:
jhb [Fri, 10 Oct 2014 20:47:23 +0000 (20:47 +0000)]
MFC 270828,271487,271495:
Add sysctls to export the BIOS SMAP and EFI memory maps along with
handlers in the sysctl(8) binary to format them.

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

9 years agoMFC r272713:
bz [Fri, 10 Oct 2014 12:02:34 +0000 (12:02 +0000)]
MFC r272713:

 Since introducing the extra mapping in r250103 (head) for architectural performance
 events we have actually counted 'Branch Instruction Retired' when people
 asked for 'Unhalted core cycles' using the 'unhalted-core-cycles' event mask
 mnemonic.

 Reviewed by: jimharris
 Discussed with: gnn, rwatson
Sponsored by: DARPA/AFRL

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

9 years agoMFC r272474:
smh [Fri, 10 Oct 2014 01:01:04 +0000 (01:01 +0000)]
MFC r272474:
Fix various issues with zvols

Sponsored by: Multiplay

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

9 years agoMFC r271589:
smh [Fri, 10 Oct 2014 00:51:23 +0000 (00:51 +0000)]
MFC r271589:
Added missing ZFS sysctls

This also includes small additional direct changes as it still uses the old
way of handling tunables.

Sponsored by: Multiplay

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

9 years agoMFC r271754:
smh [Fri, 10 Oct 2014 00:28:19 +0000 (00:28 +0000)]
MFC r271754:
Remove unused ZFS ARC functions

Sponsored by: Multiplay

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

9 years agoMFC r271802:
smh [Fri, 10 Oct 2014 00:26:00 +0000 (00:26 +0000)]
MFC r271802:
Add dtrace probe support for zfs SET_ERROR(..)

MFC r271873:
Fix static kernel build with options ZFS

MFC r271819:
Remove sys/types.h include as per style (9)

Sponsored by: Multiplay

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

9 years agoMFC r270759:
smh [Fri, 10 Oct 2014 00:12:16 +0000 (00:12 +0000)]
MFC r270759:
Refactor ZFS ARC reclaim logic to be more VM cooperative

MFC r270861:
Ensure that ZFS ARC free memory checks include cached pages

MFC r272483:
Refactor ZFS ARC reclaim checks and limits

Sponsored by: Multiplay

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

9 years agoMFC r272393:
hrs [Thu, 9 Oct 2014 23:52:33 +0000 (23:52 +0000)]
MFC r272393:

  Resurrect set_rcvar() as a function to define a rc.conf variable.
  It defines a variable and its default value in load_rc_config() just after
  rc.conf is loaded.  "rcvar" command shows the current and the default values.

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

9 years agoMFC r271921:
hrs [Thu, 9 Oct 2014 23:50:31 +0000 (23:50 +0000)]
MFC r271921:

  Fix a typo.

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

9 years agoMFC r271919:
hrs [Thu, 9 Oct 2014 23:49:36 +0000 (23:49 +0000)]
MFC r271919:

  Fix a bug which could make routed(8) daemon exit by sending a special RIP
  query from a remote machine, and disable accepting it by default.  This
  requests a routed(8) daemon to dump routing information base for debugging
  purpose.  An -i flag to enable it has been added.

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

9 years agoMFC r271909:
hrs [Thu, 9 Oct 2014 23:48:20 +0000 (23:48 +0000)]
MFC r271909:
  Revert changes in r269180.  It could cause -c N option to enter an
  infinite loop if no reply packet is received.

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

9 years agoMFC r271663:
hrs [Thu, 9 Oct 2014 23:47:07 +0000 (23:47 +0000)]
MFC r271663:
  Fix a typo; master server for iprop service should be singular.

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

9 years agoMFC r271628:
hrs [Thu, 9 Oct 2014 23:46:17 +0000 (23:46 +0000)]
MFC r271628:
  Use generic SYSCTL_* macro instead of deprecated SYSCTL_VNET_*.

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

9 years agoMFC r271545, 271610:
hrs [Thu, 9 Oct 2014 23:45:26 +0000 (23:45 +0000)]
MFC r271545, 271610:
  Make net.inet.ip.sourceroute, net.inet.ip.accept_sourceroute, and
  net.inet.ip.process_options vnet-aware.

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

9 years agoMFC r271411:
hrs [Thu, 9 Oct 2014 23:43:13 +0000 (23:43 +0000)]
MFC r271411:

  Fix a bug which could break extended attributes in a dump output.
  This occurred when a file was >892kB long and had a large data (>1kB)
  in the extended attributes.

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

9 years agoMFC r271410:
hrs [Thu, 9 Oct 2014 23:42:22 +0000 (23:42 +0000)]
MFC r271410:

  Fix header output when -P is specified and (ncpus - 1) != maxid.

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

9 years agoMFC r271145:
hrs [Thu, 9 Oct 2014 23:41:11 +0000 (23:41 +0000)]
MFC r271145:

  Fix a bug which prevented mount.fstab parameter from being converted
  when jail_JID_devfs_enable=NO.

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

9 years agoMFC r270836:
hrs [Thu, 9 Oct 2014 23:40:08 +0000 (23:40 +0000)]
MFC r270836:

  Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.

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

9 years agoMFC r270783:
hrs [Thu, 9 Oct 2014 23:39:17 +0000 (23:39 +0000)]
MFC r270783:

  Return false status only when adding a route is failed.  It could
  erroneously return false due to an afexists() check loop in routing_start().

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

9 years agoMFC r270782:
hrs [Thu, 9 Oct 2014 23:35:23 +0000 (23:35 +0000)]
MFC r270782:

  Restructure rc.d scripts for kerberos5 daemons:

  - Rename $kerberos5_server_enable with $kdc_enable and rename
    rc.d/kerberos with rc.d/kdc.

  - Rename $kadmin5_server_enable with $kadmind_enable.

  - Rename ${kerberos5,kpasswdd}_server with ${kdc,kpasswdd}_program.

  - Fix rc.d/{kadmind,kerberos,kpasswdd,kfd} scripts not to change variables
    after load_rc_config().

  - Add rc.d/ipropd_master and rc.d/ipropd_slave scripts.  These are
    for iprop-master(8) and iprop-slave(8).  Keytab used for iprop service is
    defined in ipropd_{master,slave}_keytab (/etc/krb5.keytab by default).

  - Add dependency on rc.d/kdc to SERVERS.  rc.d/kdc must be invoked as early
    as possible before scripts divided by rc.d/SERVERS.

  Note that changes to rc.d/{kdc,kpasswdd,kadmind} are backward-compatible
  with the old configuration variables:
  ${kerberos5,kpasswdd,kadmin5}_server{,_enable,_flags}.

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

9 years agoMFC r270780:
hrs [Thu, 9 Oct 2014 23:33:33 +0000 (23:33 +0000)]
MFC r270780:
  Fix rc.d/gssd script to define the default values in a standard way.

MFC r270781:
  - Add a warning message when an IPv6 address is specified with no prefixlen.
  - Use a parameter argument in jls(8) instead of doing grep.

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

9 years agoMFC r270234:
hrs [Thu, 9 Oct 2014 23:30:51 +0000 (23:30 +0000)]
MFC r270234:

  Recover sin6_scope_id of gateway addresses in riprecv() by using the if_index
  where a RIP packet was received.  This fixes a bug which prevented gateway
  addresses in fe80::/64 from being added.

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

9 years agoMFC r269054:
hrs [Thu, 9 Oct 2014 23:29:44 +0000 (23:29 +0000)]
MFC r269054:

  Fix EtherIP.  TOS field must be initialized when the inner protocol is
  PF_LINK, and multicast/broadcast flag should always be dropped because
  the outer protocol uses unicast even when the inner address is not for
  unicast.  It had been broken since r236951 when gif_output() started to
  use IFQ_HANDOFF().

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

9 years agoMFC r266267, r267636:
hrs [Thu, 9 Oct 2014 23:28:04 +0000 (23:28 +0000)]
MFC r266267, r267636:

  Fix an issue in range specification handling when a "-foo" is specified in
  ifconfig_IF_aliasN.

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

9 years agoMFC r266248:
hrs [Thu, 9 Oct 2014 23:25:57 +0000 (23:25 +0000)]
MFC r266248:

  Cancel DAD for an ifa when the ifp has ND6_IFF_IFDISABLED as early as
  possible and do not clear IN6_IFF_TENTATIVE.  If IFDISABLED was accidentally
  set after a DAD started, TENTATIVE could be cleared because no NA was
  received due to IFDISABLED, and as a result it could prevent DAD when
  manually clearing IFDISABLED after that.

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

9 years agoMFC r265225:
hrs [Thu, 9 Oct 2014 23:24:23 +0000 (23:24 +0000)]
MFC r265225:

  Move configuration of IPv6 NDP flags to a point before handling ifconfig_IF.
  This fixes a race that a non-IPv4 interface can get an EUI64 LLA even if it
  has IFDISABLED nd6 flag at boot time.

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

9 years agoMFC r266177:
hrs [Thu, 9 Oct 2014 23:23:12 +0000 (23:23 +0000)]
MFC r266177:

  - Do not override sin6_scope_id in LLA when it is already set to non-zero.
    This fixes destination list in output of netstat -r.
  - Plug a memory leak.
  - Add RTM_VERSION check.

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

9 years agoMFC r257036:
hrs [Thu, 9 Oct 2014 23:17:18 +0000 (23:17 +0000)]
MFC r257036:

  Return 0 if:

    1. "-u N" specified, no -f, and mdN found,
    2. no -u, "-f /pathname" specified, and mdN associated with /pathname found,
    3. "-u N" specified, "-f /pathname" specified, and both of them found,
    4. "-l" specified and no -f,
    5. "-l" specified, "-f /pathname" specified, and /pathname found.

  otherwise return -1.

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

9 years agoMFC r256715:
hrs [Thu, 9 Oct 2014 23:15:26 +0000 (23:15 +0000)]
MFC r256715:
  Use long explicitly for the time difference.

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

9 years agoMFC r256695:
hrs [Thu, 9 Oct 2014 23:14:02 +0000 (23:14 +0000)]
MFC r256695:
  - Add relative specification in expiration time.
  - Add proto3 option for RTF_PROTO3.
  - Use %lu for members of struct rt_metrics.

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

9 years agoMFC r258580:
hrs [Thu, 9 Oct 2014 23:05:32 +0000 (23:05 +0000)]
MFC r258580:
  Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,
  with the explicit permission of Sun Microsystems in 2009.

MFC r258581, 258582:
  Replace Sun Industry Standards Source License for Sun RPC code with a
  3-clause BSD license as specified by Oracle America, Inc. in 2010.
  This license change was approved by Wim Coekaerts, Senior Vice
  President, Linux and Virtualization at Oracle Corporation.

MFC r259117, 259118:
  Replace Sun RPC license with a 3-clause BSD license.  This license change
  was approved in 2010 by Wim Coekaerts, Senior Vice President, Linux and
  Virtualization at Oracle Corporation.

MFC r259417:
  Replace Sun RPC license for TI-RPC library with a 3-clause BSD license,
  with the explicit permission of Sun Microsystems in 2009.
  The code in question in this file was copied from lib/libc/rpc/pmap_getport.c.

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

9 years agoMFC r266857:
hrs [Thu, 9 Oct 2014 22:56:38 +0000 (22:56 +0000)]
MFC r266857:

  - Add rwlock to struct dadq.  A panic could occur when a large number of
    addresses performed DAD at the same time.

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

9 years agoMFC r266494:
hrs [Thu, 9 Oct 2014 22:54:51 +0000 (22:54 +0000)]
MFC r266494:

  - Fix a bug which can make sysctl() fail when -F is specified.
  - Increase WID_IF_DEFAULT() from 6 to 8 (the default for AF_INET6) because
    we have interfaces with longer names than 6 chars like epairN{a,b}.
  - Style fixes.

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

9 years agoMFC r272650: Set CAM_SIM_QUEUED flag before calling ctl_queue() to avoid race.
mav [Thu, 9 Oct 2014 05:28:11 +0000 (05:28 +0000)]
MFC r272650: Set CAM_SIM_QUEUED flag before calling ctl_queue() to avoid race.

PR: 194128
Submitted by: Scott M. Ferris <smferris@gmail.com>
Sponsored by: EMC/Isilon Storage Division

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

9 years agoMFC r271307:
ae [Thu, 9 Oct 2014 02:49:33 +0000 (02:49 +0000)]
MFC r271307:
  Add the ability to set `prefer_source' flag to an IPv6 address.
  It affects the IPv6 source address selection algorithm (RFC 6724)
  and allows override the last rule ("longest matching prefix") for
  choosing among equivalent addresses. The address with `prefer_source'
  will be preferred source address.

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

9 years agoMFC r272485: Fill cyclinder, head and sector fields for the EBR,
marcel [Wed, 8 Oct 2014 22:13:18 +0000 (22:13 +0000)]
MFC r272485: Fill cyclinder, head and sector fields for the EBR,
MBR and PC98 schemes.

Requested by: gjb

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

9 years agoMFC 272384:
marcel [Wed, 8 Oct 2014 22:09:36 +0000 (22:09 +0000)]
MFC 272384:
Improve performance of mking(1).

Requested by: gjb

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

9 years agoMFC 272198, 272217:
marcel [Wed, 8 Oct 2014 22:06:38 +0000 (22:06 +0000)]
MFC 272198, 272217:
Add 3 long options (--version, --formats & --schemes) for getting
information about mkimg itself.

Requested by: gjb

Relnotes: yes

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

9 years agoMFC 271965, 272072, 272086: Add QCOW v1 & v2 support
marcel [Wed, 8 Oct 2014 22:01:35 +0000 (22:01 +0000)]
MFC 271965, 272072, 272086: Add QCOW v1 & v2 support

Requested by: gjb

Relnotes: yes

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

9 years agoMFC r272273, r272387, r272443, r272533 :
pfg [Wed, 8 Oct 2014 16:29:46 +0000 (16:29 +0000)]
MFC r272273, r272387, r272443, r272533 :

Add strptime(3) support for %U and %W

Add support for the missing POSIX-2001 %U and %W features: the
existing FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green.
David Carlier added the initial handling of tm_wday/tm_yday.
Major credit goes to Andrey Chernov for detecting much of the
brokenness and rewriting/cleaning most of the code, making it
much more robust.

Tested independently with the strptime test from the GNU C
library.

PR: 137307
Relnotes: yes

MFC r272441 :

strptime: %s format fix.

Almost never needed in real life because %s is tends to be
only one format spec.
1) Return code of gmtime_r() is checked.
2) All flags are set.

Submitted by: ache

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