]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r272952:
kib [Sat, 18 Oct 2014 15:31:53 +0000 (15:31 +0000)]
MFC r272952:
Do not set IN_ACCESS flag for read-only mounts.

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

9 years agoMFC r272534:
kib [Sat, 18 Oct 2014 15:28:01 +0000 (15:28 +0000)]
MFC r272534:
Add IO_RANGELOCKED flag for vn_rdwr(9), which specifies that vnode is
not locked, but range is.

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

9 years agoMFC r273135:
hselasky [Sat, 18 Oct 2014 07:07:34 +0000 (07:07 +0000)]
MFC r273135:
Update the OFED Linux compatibility layer and
Mellanox hardware driver(s):

- Properly name an inclusion guard
- Fix compile warnings regarding unsigned enums
- Add two new sysctl nodes
- Remove all empty linux header files
- Make an error printout more verbose
- Use "mod_delayed_work()" instead of
  cancelling and starting a timeout.
- Implement more Linux scatterlist
  functions.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r273112: Set the DROP_EN bit before the RX queue is brought up and active.
adrian [Sat, 18 Oct 2014 01:02:30 +0000 (01:02 +0000)]
MFC r273112: Set the DROP_EN bit before the RX queue is brought up and active.

He noticed issues setting this bit in SRRCTL after the queue was up,
so doing it from the sysctl handler isn't enough and may not actually
work correctly.

This commit doesn't remove the sysctl path or try to change its
behaviour.  I'll talk with others about how to finish fixing that
before I tackle that.

PR:           kern/194311
Submitted by: luigi
MFC after:    3 days
Sponsored by: Norse Corp, Inc

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

9 years agoMFC 268369,268817,272771,272772:
jhb [Fri, 17 Oct 2014 20:03:01 +0000 (20:03 +0000)]
MFC 268369,268817,272771,272772:
Rewrite timeout(9) to be callout(9)-centric instead.  Move the description
of timeout(9) to the end and mark it prominently as deprecated.  Document
somewhat how times are specified for the 'sbt' variants.  Better explain
how using callout_init_*() to associate a lock with a callout resolves
common races.

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

9 years agoMFC 272668:
jhb [Fri, 17 Oct 2014 19:55:12 +0000 (19:55 +0000)]
MFC 272668:
Properly set the timeout in a query_state.  The global query_timeout
configuration value is an integer count of seconds, it is not a timeval.
Using memcpy() to copy a timeval from it put garbage into the tv_usec
field.

PR: 194025

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

9 years agoMFC 272449:
jhb [Fri, 17 Oct 2014 19:28:21 +0000 (19:28 +0000)]
MFC 272449:
Require p_cansched() for changing a process' protection status via
procctl() rather than p_cansee().

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

9 years agoMFC r257302 by rea:
emaste [Fri, 17 Oct 2014 16:23:36 +0000 (16:23 +0000)]
MFC r257302 by rea:

  binutils/bfd: fix printf-like format strings for "bfd *" arguments

  There is a special format argument '%B' that directly handles values
  of type 'bfd *', they must be used instead of '%s'.  Manifestations
  of this bug can be seen in ld(1) error messages, for example,
    http://lists.freebsd.org/pipermail/freebsd-current/2013-August/043580.html
    http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045404.html

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

9 years agoMFC 272182:
jhb [Fri, 17 Oct 2014 15:29:47 +0000 (15:29 +0000)]
MFC 272182:
Don't panic if a resource is allocated twice.  Instead, print a warning and
fail the allocation request.  Allocations of "reserved" resources such as
PCI BARs already fail the request instead of panic'ing in this case.

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

9 years agoMFC r273093, r273096:
gjb [Thu, 16 Oct 2014 23:16:26 +0000 (23:16 +0000)]
MFC r273093, r273096:

r273093:
  Merge the following from ^/projects/release-vmimage:
  r272436, r272437, r272792:

  r272436:
    Remove the first argument to panic(), which was initially
    intended to be the exit code, however when a non-zero exit
    code was returned to release/Makefile, this would prevent
    any remaining (and possibly successful) stages from being
    attempted.

  r272437:

    If the vm-base target fails, prevent the vm-image target
    from being run since it cannot possibly succeed.

  r272792:

    Add /usr/local/bin and /usr/local/sbin to PATH, needed
    if third-party software needs to use utilities outside
    of the base system during post-install stages (indexinfo
    is one culprit).

r273096:
  Merge the following from ^/projects/release-vmimage:
  r273076, r273077, r273079, r273095:

  r273076:
    Add a separate make(1) target to release/Makefile to
    build FreeBSD virtual machine disk images for use on
    the Microsoft Azure service.

    For now, this target is not directly connected to the
    build, however can be manually invoked.

    The 'vm-azure' target invokes {amd64,i386}/mk-azure.sh,
    which does the heavy lifting to produce proper VHDs.
    mk-azure.sh uses a configuration file, defaulting to
    tools/azure.conf if otherwise unset.

  r273077:
    Clear VM_RC_LIST.

  r273079:
    Fix signal list to trigger umount(8).

  r273095:
    Output an informational message when mkimg(1) runs, so it
    does not appear that the process has stopped while waiting
    for a 'y/n' response when waagent is deprovisioned.

Relnotes: yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272583: MFV r272500:
delphij [Thu, 16 Oct 2014 22:44:30 +0000 (22:44 +0000)]
MFC r272583: MFV r272500:

Don't inherit flags other than DS_FLAG_CI_DATASET and DS_FLAG_INCONSISTENT
when cloning.  This prevents DS_FLAG_DEFER_DESTROY being inherited from a
clone that is marked for deferred destroy, which causes snapshots of the
clone being destroyed when getting a hold or clone.

Illumos issue:
    5150 zfs clone of a defer_destroy snapshot causes strangeness

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

9 years agoMFC r272527:
delphij [Thu, 16 Oct 2014 22:40:22 +0000 (22:40 +0000)]
MFC r272527:

Don't make nested definition for range_seg_cache.

Reported by: ian

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

9 years agoMFC r272506: MFV r272495:
delphij [Thu, 16 Oct 2014 22:33:09 +0000 (22:33 +0000)]
MFC r272506: MFV r272495:

In arc_kmem_reap_now(), reap range_seg_cache too to reclaim memory in
response of memory pressure.

Illumos issue:
    5163 arc should reap range_seg_cache

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

9 years agoMFV r273060:
delphij [Thu, 16 Oct 2014 22:12:23 +0000 (22:12 +0000)]
MFV r273060:

Use write_psize instead of write_asize when doing vdev_space_update.
Without this change the accounting of L2ARC usage would be wrong and
give 16EB free space because the number became negative and overflows.

Obtained from:  FreeNAS (issue #6239)

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

9 years agoMerge r272385 by melifaro from head:
glebius [Thu, 16 Oct 2014 20:46:02 +0000 (20:46 +0000)]
Merge r272385 by melifaro from head:
  Free radix mask entries on main radix destroy.
  This is temporary commit to be merged to 10.
  Other approach (like hash table) should be used
  to store different masks.

PR:             194078

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

9 years agoMerge r272358 from head:
glebius [Thu, 16 Oct 2014 20:43:12 +0000 (20:43 +0000)]
Merge r272358 from head:
  Use rn_detachhead() instead of direct free(9) for radix tables.

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

9 years agoMFC r273158:
smh [Thu, 16 Oct 2014 08:33:11 +0000 (08:33 +0000)]
MFC r273158:
Prevent ZFS leaking pool free space

Early MFC approved by re@

Approved by: re@ (glebius)
Sponsored by: Multiplay

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

9 years agoMFC: r272718
jkim [Wed, 15 Oct 2014 20:04:21 +0000 (20:04 +0000)]
MFC: r272718

Make kern.nswbuf tunable from loader.

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

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