]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
8 years agoMFC r286092:
gjb [Mon, 3 Aug 2015 16:30:03 +0000 (16:30 +0000)]
MFC r286092:
  Fix a rendering issue in the zfs(8) manual.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286207:
ae [Sun, 2 Aug 2015 16:29:30 +0000 (16:29 +0000)]
MFC r286207:
  Report the scheme and provider names in warning message about unaligned
  partition.

  PR: 201873

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

8 years agoUpdate BIND to 9.9.7-P2
erwin [Fri, 31 Jul 2015 11:10:43 +0000 (11:10 +0000)]
Update BIND to 9.9.7-P2

This is a direct commit to stable/9 as BIND is no longer in head.

Sponsored by: DK Hostmaster A/S

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

8 years agoMFC: r285839
marius [Thu, 30 Jul 2015 02:06:34 +0000 (02:06 +0000)]
MFC: r285839

o Revert the other functional half of r239864 (MFCed to stable/9 in r241681),
  i. e. the merge of r134227 from x86 to use smp_ipi_mtx spin lock not only
  for smp_rendezvous_cpus() but also for the MD cache invalidation, TLB
  demapping and remote register reading IPIs due to the following reasons:
  - The cross-IPI SMP deadlock x86 otherwise is subject to can't happen on
    sparc64. That's because on sparc64, spin locks don't disable interrupts
    completely but only raise the processor interrupt level to PIL_TICK. This
    means that IPIs still get delivered and direct dispatch IPIs such as the
    cache invalidation etc. IPIs in question are still executed.
  - In smp_rendezvous_cpus(), smp_ipi_mtx is held not only while sending an
    IPI_RENDEZVOUS, but until all CPUs have processed smp_rendezvous_action().
    Consequently, smp_ipi_mtx may be locked for an extended amount of time as
    queued IPIs (as opposed to the direct ones) such as IPI_RENDEZVOUS are
    scheduled via a soft interrupt. Moreover, given that this soft interrupt
    is only delivered at PIL_RENDEZVOUS, processing of smp_rendezvous_action()
    on a target may be interrupted by f. e. a tick interrupt at PIL_TICK, in
    turn leading to the target in question trying to send an IPI by itself
    while IPI_RENDEZVOUS isn't fully handled, yet, and, thus, resulting in a
    deadlock.
o As mentioned in the commit message of r245850, on least some sun4u platforms
  concurrent sending of IPIs by different CPUs is fatal. Therefore, hold the
  reintroduced MD ipi_mtx also while delivering cross-traps via MI helpers,
  i. e. ipi_{all_but_self,cpu,selected}().
o Akin to x86, let the last CPU to process cpu_mp_bootstrap() set smp_started
  instead of the BSP in cpu_mp_unleash(). This ensures that all APs actually
  are started, when smp_started is no longer 0.
o In all MD and MI IPI helpers, check for smp_started == 1 rather than for
  smp_cpus > 1 or nothing at all. This avoids races during boot causing IPIs
  trying to be delivered to APs that in fact aren't up and running, yet.
  While at it, move setting of the cpu_ipi_{selected,single}() pointers to
  the appropriate delivery functions from mp_init() to cpu_mp_start() where
  it's better suited and allows to get rid of the global isjbus variable.
o Given that now concurrent IPI delivery no longer is possible, also nuke
  the delays before completely disabling interrupts again in the CPU-specific
  cross-trap delivery functions, previously giving other CPUs a window for
  sending IPIs on their part. Actually, we now should be able to entirely get
  rid of completely disabling interrupts in these functions. Such a change
  needs more testing, though.
o In {s,}tick_get_timecount_mp(), make the {s,}tick variable static. While not
  necessary for correctness, this avoids page faults when accessing the stack
  of a foreign CPU as {s,}tick now is locked into the TLBs as part of static
  kernel data. Hence, {s,}tick_get_timecount_mp() always execute as fast as
  possible, avoiding jitter.

PR: 201245

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

8 years agoMFC: r284447, r284552
marius [Thu, 30 Jul 2015 00:28:32 +0000 (00:28 +0000)]
MFC: r284447, r284552

Merge from NetBSD:
o rev. 1.10: Nuke trailing whitespace.
o rev. 1.15: Fix typo in comment.
o rev. 1.16: Add the following registers from IEEE 802.3-2009 Clause 22:
 - PSE control register (0x0b)
 - PSE status register (0x0c)
 - MMD access control register (0x0d)
 - MMD access address data register (0x0e)
o rev. 1.17 (comments only): The bit location of link ability is different
  between 1000Base-X and others (see Annex 28B.2 and 28D).
o rev. 1.18: Nuke dupe word.

Obtained from: NetBSD
Sponsored by: genua mbh

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

8 years agoMerge r286033 from stable/10:
dim [Wed, 29 Jul 2015 19:37:32 +0000 (19:37 +0000)]
Merge r286033 from stable/10:

Reapply r286007, modified to compile with pre-C++11 compilers:

Pull in r219009 from upstream llvm trunk (by Adam Nemet):

  [ISel] Keep matching state consistent when folding during X86 address match

  In the X86 backend, matching an address is initiated by the 'addr' complex
  pattern and its friends.  During this process we may reassociate and-of-shift
  into shift-of-and (FoldMaskedShiftToScaledMask) to allow folding of the
  shift into the scale of the address.

  However as demonstrated by the testcase, this can trigger CSE of not only the
  shift and the AND which the code is prepared for but also the underlying load
  node.  In the testcase this node is sitting in the RecordedNode and MatchScope
  data structures of the matcher and becomes a deleted node upon CSE.  Returning
  from the complex pattern function, we try to access it again hitting an assert
  because the node is no longer a load even though this was checked before.

  Now obviously changing the DAG this late is bending the rules but I think it
  makes sense somewhat.  Outside of addresses we prefer and-of-shift because it
  may lead to smaller immediates (FoldMaskAndShiftToScale is an even better
  example because it create a non-canonical node).  We currently don't recognize
  addresses during DAGCombiner where arguably this canonicalization should be
  performed.  On the other hand, having this in the matcher allows us to cover
  all the cases where an address can be used in an instruction.

  I've also talked a little bit to Dan Gohman on llvm-dev who added the RAUW for
  the new shift node in FoldMaskedShiftToScaledMask.  This RAUW is responsible
  for initiating the recursive CSE on users
  (http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-September/076903.html) but it
  is not strictly necessary since the shift is hooked into the visited user.  Of
  course it's safer to keep the DAG consistent at all times (e.g. for accurate
  number of uses, etc.).

  So rather than changing the fundamentals, I've decided to continue along the
  previous patches and detect the CSE.  This patch installs a very targeted
  DAGUpdateListener for the duration of a complex-pattern match and updates the
  matching state accordingly.  (Previous patches used HandleSDNode to detect the
  CSE but that's not practical here).  The listener is only installed on X86.

  I tested that there is no measurable overhead due to this while running
  through the spec2k BC files with llc.  The only thing we pay for is the
  creation of the listener.  The callback never ever triggers in spec2k since
  this is a corner case.

  Fixes rdar://problem/18206171

This fixes a possible crash in x86 code generation when compiling recent
llvm/clang trunk sources.

Direct commit to stable/10, since head already has llvm/clang 3.6.1,
which includes this fix.

Reported by: jonathan, theraven
Upstream PR: https://llvm.org/bugs/show_bug.cgi?id=24249

Merge r286034 from stable/10:

Add updated llvm patch corresponding to r286033.

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

8 years agoRevert r286007-r286009 for now, until I can figure out how to make the
dim [Wed, 29 Jul 2015 14:07:29 +0000 (14:07 +0000)]
Revert r286007-r286009 for now, until I can figure out how to make the
fix compile with older gcc and libstdc++.

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

8 years agoMerge r286007 from stable/10:
dim [Wed, 29 Jul 2015 13:14:34 +0000 (13:14 +0000)]
Merge r286007 from stable/10:

Pull in r219009 from upstream llvm trunk (by Adam Nemet):

  [ISel] Keep matching state consistent when folding during X86 address match

  In the X86 backend, matching an address is initiated by the 'addr' complex
  pattern and its friends.  During this process we may reassociate and-of-shift
  into shift-of-and (FoldMaskedShiftToScaledMask) to allow folding of the
  shift into the scale of the address.

  However as demonstrated by the testcase, this can trigger CSE of not only the
  shift and the AND which the code is prepared for but also the underlying load
  node.  In the testcase this node is sitting in the RecordedNode and MatchScope
  data structures of the matcher and becomes a deleted node upon CSE.  Returning
  from the complex pattern function, we try to access it again hitting an assert
  because the node is no longer a load even though this was checked before.

  Now obviously changing the DAG this late is bending the rules but I think it
  makes sense somewhat.  Outside of addresses we prefer and-of-shift because it
  may lead to smaller immediates (FoldMaskAndShiftToScale is an even better
  example because it create a non-canonical node).  We currently don't recognize
  addresses during DAGCombiner where arguably this canonicalization should be
  performed.  On the other hand, having this in the matcher allows us to cover
  all the cases where an address can be used in an instruction.

  I've also talked a little bit to Dan Gohman on llvm-dev who added the RAUW for
  the new shift node in FoldMaskedShiftToScaledMask.  This RAUW is responsible
  for initiating the recursive CSE on users
  (http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-September/076903.html) but it
  is not strictly necessary since the shift is hooked into the visited user.  Of
  course it's safer to keep the DAG consistent at all times (e.g. for accurate
  number of uses, etc.).

  So rather than changing the fundamentals, I've decided to continue along the
  previous patches and detect the CSE.  This patch installs a very targeted
  DAGUpdateListener for the duration of a complex-pattern match and updates the
  matching state accordingly.  (Previous patches used HandleSDNode to detect the
  CSE but that's not practical here).  The listener is only installed on X86.

  I tested that there is no measurable overhead due to this while running
  through the spec2k BC files with llc.  The only thing we pay for is the
  creation of the listener.  The callback never ever triggers in spec2k since
  this is a corner case.

  Fixes rdar://problem/18206171

This fixes a possible crash in x86 code generation when compiling recent
llvm/clang trunk sources.

Direct commit to stable/10, since head already has llvm/clang 3.6.1,
which includes this fix.

Reported by: jonathan, theraven
Upstream PR: https://llvm.org/bugs/show_bug.cgi?id=24249

Merge r286008 from stable/10:

Add llvm patch corresponding to r286007.

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

8 years agoDocument SA-15:14 through SA-15:17.
gjb [Tue, 28 Jul 2015 20:38:52 +0000 (20:38 +0000)]
Document SA-15:14 through SA-15:17.

Sponsored by: The FreeBSD Foundation

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

8 years agoFix resource exhaustion in TCP reassembly. [SA-15:15]
delphij [Tue, 28 Jul 2015 19:58:54 +0000 (19:58 +0000)]
Fix resource exhaustion in TCP reassembly. [SA-15:15]

Fix OpenSSH multiple vulnerabilities. [SA-15:16]

Fix BIND remote denial of service vulnerability. [SA-15:17]

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

8 years agoMFC r285067: mfiutil: increase buffer size to accommodate sprintf string
emaste [Tue, 28 Jul 2015 12:40:09 +0000 (12:40 +0000)]
MFC r285067: mfiutil: increase buffer size to accommodate sprintf string

PR: 201289

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

8 years agoMFC r285340:
dim [Tue, 28 Jul 2015 09:19:04 +0000 (09:19 +0000)]
MFC r285340:

Fix swapped copyin(9) arguments in cxgb's iwch_arm_cq() function.
Detected by clang 3.7.0 with the warning:

sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c:309:18: error: variable
'rptr' is uninitialized when used here [-Werror,-Wuninitialized]
chp->cq.rptr = rptr;
       ^~~~

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

8 years agoMFC r285735:
ae [Tue, 28 Jul 2015 08:25:49 +0000 (08:25 +0000)]
MFC r285735:
  lseek() allows an offset to be set beyond the end of file. Using
  it to check that partition has enough space to write bootcode doesn't
  work. Use the known size of provider instead.

  PR: 201504

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

8 years agoMFC r285719:
pfg [Fri, 24 Jul 2015 19:26:06 +0000 (19:26 +0000)]
MFC r285719:
snmp_hostres(3): Fix buffer overflow.

Actually just a typo. Detected by gcc + FORTIFY_SOURCE patches.

CID: 1007594

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

8 years agoDocument FreeBSD-SA-15:13.
gjb [Wed, 22 Jul 2015 16:38:07 +0000 (16:38 +0000)]
Document FreeBSD-SA-15:13.

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

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

8 years agoFix resource exhaustion due to sessions stuck in LAST_ACK state.
delphij [Tue, 21 Jul 2015 23:42:20 +0000 (23:42 +0000)]
Fix resource exhaustion due to sessions stuck in LAST_ACK state.

Security: CVE-2015-5358
Security: SA-15:13.tcp
Submitted by: Jonathan Looney (Juniper SIRT)
Reviewed by: lstewart

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

8 years agoMFC r285642
vangyzen [Tue, 21 Jul 2015 18:54:38 +0000 (18:54 +0000)]
MFC r285642

ssh: canonicize the host name before looking it up in the host file

Re-apply r99054 by des in 2002. This was accidentally dropped
by the update to OpenSSH 6.5p1 (r261320).

This change is actually taken from r387082 of
ports/security/openssh-portable/files/patch-ssh.c

Differential Revision: https://reviews.freebsd.org/D3103
PR:             198043
Approved by:    kib (mentor)
Sponsored by:   Dell Inc.
Relnotes:       yes

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

8 years agoMFC r285663, r285664, r285667:
markj [Tue, 21 Jul 2015 17:19:03 +0000 (17:19 +0000)]
MFC r285663, r285664, r285667:
Ensure that locstat_nsecs() has no effect when lockstat probes are not
enabled or when the profiled lock carries the LO_NOPROFILE flag.

PR: 201642, 201517

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

8 years agoMFC r285088:
hselasky [Tue, 21 Jul 2015 16:53:45 +0000 (16:53 +0000)]
MFC r285088:
Fix broken implementation of "kvasprintf()" function by adding missing
kmalloc() call. Make function global instead of static inline to fix
compiler warnings about passing variable argument lists to inline
functions.

Sponsored by:   Mellanox Technologies
Requested by: markj @

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

8 years agoMFC r285253 (hrs):
gjb [Mon, 20 Jul 2015 22:17:11 +0000 (22:17 +0000)]
MFC r285253 (hrs):
 - Add IPv6 support in quota(1).  While rpc.rquotad has supported
   PF_INET6 for a long time, quota(1) utility supported only PF_INET.
 - Clean up confusing changes in f_mntfromname.
 - Add an entry for rquotad with rpc/udp6 to inetd.conf.

PR: 194084
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC: r232509 by brucec
brueffer [Thu, 16 Jul 2015 09:08:36 +0000 (09:08 +0000)]
MFC: r232509 by brucec

Fix race condition in KfRaiseIrql().

After getting the current irql, if the kthread gets preempted and
subsequently runs on a different CPU, the saved irql could be wrong.

Also, correct the panic string.

PR: kern/165630
Submitted by: Vladislav Movchan <vladislav.movchan at gmail.com>

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

8 years agoMFC: r285028
brueffer [Mon, 13 Jul 2015 13:43:57 +0000 (13:43 +0000)]
MFC: r285028

Add the year to the VAX-11/780 announcement entry.

PR: 200961
Submitted by: John Marshall

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

8 years agoMFC: r284930
brueffer [Mon, 13 Jul 2015 12:31:01 +0000 (12:31 +0000)]
MFC: r284930

Add CouchDB ports (5984 TCP/UDP).

PR: 193268
Submitted by: yuri@rawbw.com

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

8 years agoMFC: r284929
brueffer [Mon, 13 Jul 2015 12:07:52 +0000 (12:07 +0000)]
MFC: r284929

Fix issues that kept some of the examples from actually working.

PR: 144534
Submitted by: Nicolas Edel

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

8 years agoMFC: r284931
brueffer [Mon, 13 Jul 2015 11:59:28 +0000 (11:59 +0000)]
MFC: r284931

Set the initial system time to a sane (as in: not end of 21st century)
value when booting on a PC with CMOS clock set to a year before 2000.

This uses 1980 (instead of 1970 as in the initial patch) as pivot year as
suggested by imp in the PR followup.

PR: 195703
Submitted by: cs@soi.spb.ru
Reviewed by: imp

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

8 years agobsdgrep: Work-around for segmentation fault.
pfg [Sun, 12 Jul 2015 15:24:05 +0000 (15:24 +0000)]
bsdgrep: Work-around for segmentation fault.

Fix by: David Carlier.

Obtained from: HardenedBSD
PR: 167921

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

8 years agoNote merge of sendmail 8.15.2
gshapiro [Sat, 11 Jul 2015 04:54:46 +0000 (04:54 +0000)]
Note merge of sendmail 8.15.2

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

8 years agoPrevious MFC to trigger new .cf builds didn't catch freebsd.mc.
gshapiro [Sat, 11 Jul 2015 03:57:11 +0000 (03:57 +0000)]
Previous MFC to trigger new .cf builds didn't catch freebsd.mc.

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

8 years agoMFC: Update for sendmail 8.15.2 import
gshapiro [Sat, 11 Jul 2015 03:52:55 +0000 (03:52 +0000)]
MFC: Update for sendmail 8.15.2 import

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

8 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files
gshapiro [Sat, 11 Jul 2015 03:50:06 +0000 (03:50 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files
     are built to use the new sendmail-8.15.2/cf tree.

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

8 years agoMFC: Merge sendmail 8.15.2
gshapiro [Sat, 11 Jul 2015 03:42:01 +0000 (03:42 +0000)]
MFC: Merge sendmail 8.15.2

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

8 years agoMFC: Temporarily disable WARNS while addressing a non-issue with the upstream code
gshapiro [Sat, 11 Jul 2015 03:34:41 +0000 (03:34 +0000)]
MFC: Temporarily disable WARNS while addressing a non-issue with the upstream code

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

8 years agoBy default, sendmail 8.15 uses uncompressed IPv6 addresses. Keep
gshapiro [Sat, 11 Jul 2015 03:32:13 +0000 (03:32 +0000)]
By default, sendmail 8.15 uses uncompressed IPv6 addresses.  Keep
current FreeBSD 10 and earlier behavior of using compressed IPv6
addresses in configuration, maps, rulesets, etc.  (FreeBSD 11 and
later will use the new default of uncompressed IPv6 addresses.)

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

8 years agoMFC: libsm/path.c is about to disappear in the merge of sendmail 8.15.2. It
gshapiro [Sat, 11 Jul 2015 03:28:43 +0000 (03:28 +0000)]
MFC: libsm/path.c is about to disappear in the merge of sendmail 8.15.2.  It
     is an empty file now so it is safe to remove before the merge.

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

8 years agoMFC r241196:
jamie [Thu, 9 Jul 2015 23:40:29 +0000 (23:40 +0000)]
MFC r241196:

  Move properly to the next parameter when jailparam_init fails
   (i.e. on an unknown parameter), to avoid freeing bogus pointers.

MFC r256256 (partial):

  - Fix a minor bug in jail(8) which prevented it from returning false
    when jail -r failed.

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

8 years agoMFC r279081:
jamie [Thu, 9 Jul 2015 23:09:59 +0000 (23:09 +0000)]
MFC r279081:

  Allow parameters listed on the command line to override the -v option,
  instead of crashing.

MFC r279083:

  Fix the logic for skipping parameters (with -s) that have "jailsys"
  parents (such as host.hostname); these were being skipped all the time.
  That it went this long without anyone noticing is a sign that this feature
  isn't actually used by anyone, but it's there so it might as well work.

MFC r279123:

  Allow for parameters added with the JP_OPT flag to not exist.
  That's why the flag exists in the first place.

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

8 years agoMFC r241197:
jamie [Thu, 9 Jul 2015 22:55:43 +0000 (22:55 +0000)]
MFC r241197:

  Fix some memory allocation errors:

  * jail_setv will leak a parameter name if jailparam_import fails.
  * jailparam_all loses the jailparam pointer on realloc error
    (a clear freshman mistake).
  * If jailparam_init fails, the caller doesn't need to jailparam_free
    the buffer.  That's not really clear, so set things to NULL allowing
    jailparam_free to work without error (though it's still not required).

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

8 years agoDocument SA-15:11.bind.
gjb [Tue, 7 Jul 2015 23:37:16 +0000 (23:37 +0000)]
Document SA-15:11.bind.

Sponsored by: The FreeBSD Foundation

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

8 years agoFix BIND resolver remote denial of service when validating.
delphij [Tue, 7 Jul 2015 21:43:23 +0000 (21:43 +0000)]
Fix BIND resolver remote denial of service when validating.

Security: CVE-2015-4620
Security: FreeBSD-SA-15:11.bind

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

8 years agoMFC r284593: MFV r284412: 5911 ZFS "hangs" while deleting file
avg [Mon, 6 Jul 2015 10:41:29 +0000 (10:41 +0000)]
MFC r284593: MFV r284412: 5911 ZFS "hangs" while deleting file

illumos/illumos-gate@46e1baa6cf6d5432f5fd231bb588df8f9570c858
https://www.illumos.org/issues/5911
Sometimes ZFS appears to hang while deleting a file. It is actually
making slow progress at the file deletion, but other operations
(administrative and writes via the data path) "hang" until the file
removal completes, which can take a long time if the file has many
blocks. The deletion (or most of it) happens in a single txg, and the
sync thread spends most of its time reading indirect blocks...

Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Reviewed by: Alek Pinchuk <alek@nexenta.com>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Matthew Ahrens <mahrens@delphix.com>

PR: 199775

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

8 years agoMFC r268713: MFV r268702: 4975 missing mutex_destroy() calls in zfs
avg [Mon, 6 Jul 2015 08:27:39 +0000 (08:27 +0000)]
MFC r268713: MFV r268702: 4975 missing mutex_destroy() calls in zfs

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

8 years agoMFC r271226: MFV r271223: 5117 space map reallocation can cause corruption
avg [Mon, 6 Jul 2015 08:24:57 +0000 (08:24 +0000)]
MFC r271226: MFV r271223: 5117 space map reallocation can cause corruption

In dnode_sync(), do dnode_increase_indirection() before processing.

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

8 years agoMFC: r281337
marius [Sun, 5 Jul 2015 20:16:45 +0000 (20:16 +0000)]
MFC: r281337

Don't enable RX and TX before their initial configuration is done, i. e.
after setting up interrupt moderation but before turning interrupts on.
This matches what Realtek's r8168 Linux driver does as of version 8.039.00
and fixes problems with certain incarnations of certain MAC revisions
like the interface requiring an extra up/down-cycle after boot to start
working or DMA configuration not being adhered to.

PR: 193743, 197535

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

8 years agoMFC: r281751
marius [Sun, 5 Jul 2015 19:33:30 +0000 (19:33 +0000)]
MFC: r281751

Refine the workaround for Intel HSD131 [1] added in r269052 (MFCed to
stable/9 in r269593):
- Use the full mask described by the erratum as with a sufficiently high
  number of these false-positives, the overflow bit (bit 62) additionally
  gets set [7].
- HSD131 has been brought into several other Haswell-derived CPUs including
  to the next generation, i. e. Intel Broadwell. Thus, also skip reporting of
  these benign errors by default on CPU models affected by HSM142, HSW131 and
  BDM48 [2 - 5], describing the HSD131 silicon bug for additional models.
  Also, Celeron 2955U with a CPU ID of 0x45 have been reported to be covered
  by this fault [6], with the specification update concerned with HSM142 [2]
  only referring to 0x3c and 0x46.

Submitted by: David Froehlich [7]
Approved by: re (kib)

http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-desktop-specification-update.pdf [1]
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-mobile-specification-update.pdf [2]
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/5th-gen-core-family-spec-update.pdf [3]
http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/core-m-processor-family-spec-update.pdf [4]
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e3-1200v3-spec-update.pdf [5]
https://lists.freebsd.org/pipermail/freebsd-hackers/2015-January/046878.html [6]

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

8 years agoMFC r284732:
dim [Fri, 3 Jul 2015 20:31:27 +0000 (20:31 +0000)]
MFC r284732:

Add __cxa_deleted_virtual to libcxxrt's version map.

This symbol can sometimes be emitted by clang++, and was not yet
exported from libcxxrt.  Attempt to be compatible with libsupc++ by
using the same CXXABI_1.3.6 symbol version.

Reported by: yuri@rawbw.com
PR: 200863
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D2850

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

8 years agoDocument EN-15:08 (revised), EN-15:09, EN-15:10.
gjb [Thu, 2 Jul 2015 20:41:50 +0000 (20:41 +0000)]
Document EN-15:08 (revised), EN-15:09, EN-15:10.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC 284913:
pfg [Wed, 1 Jul 2015 15:04:54 +0000 (15:04 +0000)]
MFC 284913:
dconschat(8): Use NULL instead of 0 for the last argument in execl(3)

Found while experimenting with the gcc sentinel attribute.

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

8 years agoMFC r284297: several lockstat improvements
avg [Wed, 1 Jul 2015 10:17:17 +0000 (10:17 +0000)]
MFC r284297: several lockstat improvements

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

8 years agoMFH (r228976): UTFize
des [Wed, 1 Jul 2015 08:06:15 +0000 (08:06 +0000)]
MFH (r228976): UTFize
MFH (r243076): check range of gid
MFH (r243083): fix possible overflow in error counter
MFH (r275765): clean up, reindent, add special case for + lines

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

8 years agoMFC r284741
davidcs [Tue, 30 Jun 2015 21:19:27 +0000 (21:19 +0000)]
MFC r284741

Updated Copyright information
Added support for the following:
    - iSCSI TLV (requires 64 Tx and 32 Rx rings
    - 9K receive buffers for jumbo frames (feature may be enabled/disabled)
    - builtin firmware, bootloader and minidump template
    - quick stats
    - async event handling for SFP insertion/removal and DCBX changes
    - Configuring DCBX and interrupt coalescing parameters

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

8 years agoMFC r284739
davidcs [Tue, 30 Jun 2015 20:17:38 +0000 (20:17 +0000)]
MFC r284739
tx_mtx should be grabbed before calling buf_ring_dequeue_sc()

Submitted by:Attilio.Rao@isilon.com

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

8 years agoreverse r284973
davidcs [Tue, 30 Jun 2015 20:11:48 +0000 (20:11 +0000)]
reverse r284973

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

8 years agoMFC r284739
davidcs [Tue, 30 Jun 2015 20:01:24 +0000 (20:01 +0000)]
MFC r284739
  tx_mtx should be grabbed before calling buf_ring_dequeue_sc()

Submitted by: Attilio.Rao@isilon.com

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

8 years agoMFC r284470
davidcs [Tue, 30 Jun 2015 19:59:19 +0000 (19:59 +0000)]
MFC r284470
In bxe_init_mcast_macs_list(): mc_mac->mac needs to point to the multicast mac address
In bxe_set_mc_list(): added missing BXE_MCAST_UNLOCK()
In __ecore_vlan_mac_h_exec_pending(): need to check for ECORE_PENDING

Submitted by:gary.zambrano@qlogic.com

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

8 years agoMFC r284335
davidcs [Tue, 30 Jun 2015 19:53:59 +0000 (19:53 +0000)]
MFC r284335

PHY LOCK acquires the hardware lock via bxe_acquire_phy_lock() and releases it via bxe_release_phy_lock(). It was simply acquiring a mutex earlier which can cause the PHY to use bogus values. Fixes intermittent link failures.

bxe_ioctl() completes all functions within its context as opposed to a taskqueue earlier.

bxe_handle_rx_mode_tq() no longer required. bxe_set_rx_mode() handles the functionality within its context

Submitted by:gary.zambrano@qlogic.com

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

8 years agoMFH (r277695): allow tracing dlfunc() / dlsym() events
des [Tue, 30 Jun 2015 15:21:18 +0000 (15:21 +0000)]
MFH (r277695): allow tracing dlfunc() / dlsym() events

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

8 years agoMFH (r270391): don't set rc_debug in /etc/defaults/rc.conf
des [Tue, 30 Jun 2015 13:34:46 +0000 (13:34 +0000)]
MFH (r270391): don't set rc_debug in /etc/defaults/rc.conf

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

8 years agoMFH (r283578): import new moduli from upstream
des [Tue, 30 Jun 2015 12:57:35 +0000 (12:57 +0000)]
MFH (r283578): import new moduli from upstream

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

8 years agoMFC r284858:
tijl [Tue, 30 Jun 2015 08:39:34 +0000 (08:39 +0000)]
MFC r284858:

Enable the use of __builtin_va_* for ICC.

PR: 198822
Submitted by: Sergey Melnikov <sergey.melnikov@intel.com>

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

8 years agoProvide a temporary bandaid for libmagic by lowering WARNS to 1.
delphij [Mon, 29 Jun 2015 18:11:10 +0000 (18:11 +0000)]
Provide a temporary bandaid for libmagic by lowering WARNS to 1.
The defined but unused warnings are legimite but not really fatal.

Reported by: kib

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

8 years agoMFC r282115, r282152, r282201
pfg [Mon, 29 Jun 2015 17:58:45 +0000 (17:58 +0000)]
MFC r282115, r282152, r282201
MFV r282150
libgomp: Update to version 4.3.5.
bring initial BSD support from upstream.

This was not meant to be MFC'd at first but the original OMP support
for FreeBSD was in very poor shape.  The effect of this change should
be minimal as all ports are already using the version of libgomp that
comes with the gcc ports.

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

8 years agoDocument FreeBSD-EN-15:06.file, FreeBSD-EN-15:07.zfs,
gjb [Thu, 25 Jun 2015 20:01:27 +0000 (20:01 +0000)]
Document FreeBSD-EN-15:06.file, FreeBSD-EN-15:07.zfs,
FreeBSD-EN-15:08.sendmail, FreeBSD-SA-15:10.openssl.

Sponsored by: The FreeBSD Foundation

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

8 years agorevert local hack that sneaked into r284804
avg [Thu, 25 Jun 2015 11:32:41 +0000 (11:32 +0000)]
revert local hack that sneaked into r284804

Pointy hat to: avg

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

8 years agoMFC r284308: MFV r284042: 1778 Assertion failed: rn->rn_nozpool == B_FALSE
avg [Thu, 25 Jun 2015 08:10:23 +0000 (08:10 +0000)]
MFC r284308: MFV r284042: 1778 Assertion failed: rn->rn_nozpool == B_FALSE

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

8 years agoAdd a note on the second sendmail fix for WeakDH interoperability.
gshapiro [Thu, 25 Jun 2015 01:55:27 +0000 (01:55 +0000)]
Add a note on the second sendmail fix for WeakDH interoperability.

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

8 years agoMFC: An additional fix for the openssl Weak DH remediation:
gshapiro [Thu, 25 Jun 2015 01:53:45 +0000 (01:53 +0000)]
MFC: An additional fix for the openssl Weak DH remediation:

     The import of openssl to address the FreeBSD-SA-15:10.openssl security
     advisory includes a change which rejects handshakes with DH parameters
     below 768 bits.  sendmail releases prior to 8.15.2 (not yet released),
     defaulted to a 512 bit DH parameter setting for client connections.

     The first fix committed last week changed the default to 1024 bits.

     This commit fixes the case where the DHParameters option is set to a
     file which doesn't exist, which is the case on newer versions of
     FreeBSD which enable STARTTLS by default by auto-creating TLS
     certificates.

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

8 years agoMFC r284237,r284277:
delphij [Wed, 24 Jun 2015 23:04:07 +0000 (23:04 +0000)]
MFC r284237,r284277:

file 5.23.

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

8 years agoMFC r284306: MFV r284036: 5961 Fix stack overflow in zfs_create_fs
avg [Wed, 24 Jun 2015 14:42:05 +0000 (14:42 +0000)]
MFC r284306: MFV r284036: 5961 Fix stack overflow in zfs_create_fs

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

8 years agoMFC r284303: MFV r283534: 5515 dataset user hold doesn't reject empty tags
avg [Wed, 24 Jun 2015 14:39:38 +0000 (14:39 +0000)]
MFC r284303: MFV r283534: 5515 dataset user hold doesn't reject empty tags

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

8 years agoMFC r284301: MFV r284040: check that datasets are snapshots
avg [Wed, 24 Jun 2015 14:37:19 +0000 (14:37 +0000)]
MFC r284301: MFV r284040: check that datasets are snapshots

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

8 years agoMFC r284309: zfs clone should not mount the clone if canmount == noauto
avg [Wed, 24 Jun 2015 14:32:05 +0000 (14:32 +0000)]
MFC r284309: zfs clone should not mount the clone if canmount == noauto

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

8 years agoMFH: r284250
brueffer [Wed, 24 Jun 2015 12:48:55 +0000 (12:48 +0000)]
MFH: r284250

Consistently use trailing whitespace in passphrase prompts.

PR:        193496
Submitted by:    Fabian Keil

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

8 years agoMFC r284346:
dim [Sat, 20 Jun 2015 13:30:09 +0000 (13:30 +0000)]
MFC r284346:

Fix the following clang 3.7.0 warnings in lib/libfetch/http.c:

    lib/libfetch/http.c:1628:26: error: address of array 'purl->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = purl->user ?
                                                   ~~~~~~^~~~ ~
    lib/libfetch/http.c:1630:30: error: address of array 'purl->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = purl->pwd?
                                                       ~~~~~~^~~~
    lib/libfetch/http.c:1657:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1659:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~
    lib/libfetch/http.c:1669:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1671:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~

Since url->user and url->pwd are arrays, they can never be NULL, so the
checks can be removed.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D2673

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

8 years agoMFC r284167:
dim [Sat, 20 Jun 2015 13:25:28 +0000 (13:25 +0000)]
MFC r284167:

Merge r283870 from amd64:

Remove unneeded NULL checks in trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed.  In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier for curproc->p_pid.

Requested by: jhb

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

8 years agoMFC r284229: Add support for '_' occurring at the beginning or
ume [Thu, 18 Jun 2015 16:43:38 +0000 (16:43 +0000)]
MFC r284229: Add support for '_' occurring at the beginning or
end of a name component.

PR: 176093
Submitted by: landonf__at__bikemonkey.org

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

8 years agoMFC r264038 (theraven)
delphij [Wed, 17 Jun 2015 19:13:13 +0000 (19:13 +0000)]
MFC r264038 (theraven)

Fix an issue where the locale and rune locale could become out of sync,
causing mb* functions (and similar) to be called with the wrong data
(possibly a null pointer, causing a crash).

PR: standards/188036

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

8 years agoMFC r284025,284032: dnode_read: handle hole blocks in zfs boot code
avg [Wed, 17 Jun 2015 11:48:00 +0000 (11:48 +0000)]
MFC r284025,284032: dnode_read: handle hole blocks in zfs boot code

PR: 199804

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

8 years agoMFC r284012:
hselasky [Wed, 17 Jun 2015 07:43:20 +0000 (07:43 +0000)]
MFC r284012:
Disable VGA PCI interrupts until a chipset driver is loaded for VGA
PCI devices. Else unhandled display adapter interrupts might freeze
the CPU or consume a lot of CPU.

PR: 156596

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

8 years agoMFC r284011:
hselasky [Wed, 17 Jun 2015 07:37:11 +0000 (07:37 +0000)]
MFC r284011:
Don't wait forever for USB data to be flushed.

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

8 years agoMFC r284125:
hselasky [Wed, 17 Jun 2015 07:30:53 +0000 (07:30 +0000)]
MFC r284125:
Add new USB quirk.

PR: 200693

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

8 years agoMFC r280991:
hselasky [Wed, 17 Jun 2015 07:28:51 +0000 (07:28 +0000)]
MFC r280991:
Extend fixes made in r278103 and r38754 by copying the complete packet
header and not only partial flags and fields. Firewalls can attach
classification tags to the outgoing mbufs which should be copied to
all the new fragments. Else only the first fragment will be let
through by the firewall. This can easily be tested by sending a large
ping packet through a firewall. It was also discovered that VLAN
related flags and fields should be copied for packets traversing
through VLANs. This is all handled by "m_dup_pkthdr()".

Regarding the MAC policy check in ip_fragment(), the tag provided by
the originating mbuf is copied instead of using the default one
provided by m_gethdr().

Tested by: Karim Fodil-Lemelin <fodillemlinkarim at gmail.com>
Sponsored by: Mellanox Technologies
PR: 7802

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

8 years agoAdd a note regarding the change to sendmail'c default DH parameter size
gshapiro [Wed, 17 Jun 2015 03:19:31 +0000 (03:19 +0000)]
Add a note regarding the change to sendmail'c default DH parameter size
for client connections.

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

8 years agoMFC: The import of openssl to address the FreeBSD-SA-15:10.openssl security
gshapiro [Wed, 17 Jun 2015 03:11:25 +0000 (03:11 +0000)]
MFC: The import of openssl to address the FreeBSD-SA-15:10.openssl security
     advisory includes a change which rejects handshakes with DH parameters
     below 768 bits.  sendmail releases prior to 8.15.2 (not yet released),
     defaulted to a 512 bit DH parameter setting for client connections.
     This commit chages that default to 1024 bits.  sendmail 8.15.2, when
     released well use a default of 2048 bits.

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

8 years agoMFC of 284397,tzdata9:
edwin [Mon, 15 Jun 2015 01:02:10 +0000 (01:02 +0000)]
MFC of 284397,tzdata9:

Update to tzdata2015e:

  Changes affecting future time stamps

    Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
    not 06-13 and 07-18 as we had guessed.  (Thanks to Milamber.)

    Assume Cayman Islands will observe DST starting next year, using US rules.
    Although it isn't guaranteed, it is the most likely.

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

8 years agoMFC 283546:
jhb [Sat, 13 Jun 2015 16:15:43 +0000 (16:15 +0000)]
MFC 283546:
Add KTR tracing for some MI ptrace events.

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

8 years agoMFC r283525: zfs: fixes for a full stream received into an existing dataset
avg [Fri, 12 Jun 2015 11:52:32 +0000 (11:52 +0000)]
MFC r283525: zfs: fixes for a full stream received into an existing dataset

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

8 years agoMFC r283939: userboot: enable bzipfs support
avg [Fri, 12 Jun 2015 11:41:47 +0000 (11:41 +0000)]
MFC r283939: userboot: enable bzipfs support

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

8 years agoMerge OpenSSL 0.9.8zg.
jkim [Thu, 11 Jun 2015 19:39:27 +0000 (19:39 +0000)]
Merge OpenSSL 0.9.8zg.

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

8 years agoMFC r284022: Avoid ID conflict
achim [Tue, 9 Jun 2015 11:41:37 +0000 (11:41 +0000)]
MFC r284022: Avoid ID conflict

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

8 years agoMFC r283870:
dim [Mon, 8 Jun 2015 19:44:04 +0000 (19:44 +0000)]
MFC r283870:

Remove unneeded NULL checks in amd64's trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed.  In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier curproc->p_pid.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D2695

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

8 years agoMFC 233665: (just to ps.1)
jhb [Mon, 8 Jun 2015 18:59:14 +0000 (18:59 +0000)]
MFC 233665:  (just to ps.1)
mandoc complains loudly when <TAB>s are misused in columnated lists. Fix
this syntax violation and while I'm here also convert <TAB> to Ta and adjust
quotation marks in order to prevent this problem in the future.

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

8 years agoMFC 261811,282660,282706:
jhb [Sat, 6 Jun 2015 20:37:40 +0000 (20:37 +0000)]
MFC 261811,282660,282706:
Place VM objects on the object list when created and never remove them.

261811:
Fix function name in KASSERT().

282660:
Place VM objects on the object list when created and never remove them.
This is ok since objects come from a NOFREE zone and allows objects to
be locked while traversing the object list without triggering a LOR.

Ensure that objects on the list are marked DEAD while free or stillborn,
and that they have a refcount of zero.  This required updating most of
the pagers to explicitly mark an object as dead when deallocating it.
(Only the vnode pager did this previously.)

282706:
Satisfy vm_object uma zone destructor requirements after r282660 when
vnode object creation raced.

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

8 years agoMFC 281932:
jhb [Fri, 5 Jun 2015 20:38:22 +0000 (20:38 +0000)]
MFC 281932:
Rename the kld for oce(4) to if_oce.ko.  ifconfig(8) has special knowledge
about kld filenames for network drivers that requires them to follow the
pattern of if_<foo>.  This also fixes the existing documentation in the
manpage which says to use if_oce_load=YES in loader.conf.

PR: 199095

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

8 years agoMFC r283524: dsl_dataset_promote_check: ensure that shared snaps do not
avg [Fri, 5 Jun 2015 16:02:07 +0000 (16:02 +0000)]
MFC r283524: dsl_dataset_promote_check: ensure that shared snaps do not
become too long

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

8 years agoRework r281869 to not skip RTM announces for tunneling interfaces.
ae [Fri, 5 Jun 2015 07:34:52 +0000 (07:34 +0000)]
Rework r281869 to not skip RTM announces for tunneling interfaces.
This is direct commit to stable/9.

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

8 years agoMFC 281887:
jhb [Tue, 2 Jun 2015 19:20:39 +0000 (19:20 +0000)]
MFC 281887:
Reassign copyright statements on several files from Advanced
Computing Technologies LLC to Hudson River Trading LLC.

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

8 years agoMFC 282417:
jhb [Tue, 2 Jun 2015 15:12:33 +0000 (15:12 +0000)]
MFC 282417:
Various updates to the ftruncate(2) documentation:
- Note that ftruncate(2) can operate on shared memory objects and cross
  reference shm_open(2).
- Note that ftruncate(2) does not change the file position pointer (aka
  seek pointer) of the file descriptor.
- ftruncate(2) will fail with EINVAL for all sorts of other fd types than
  just sockets, so instead note that it fails for all but regular files and
  shared memory objects.
- Note that ftruncate(2) also appeared in 4.2BSD along with truncate(2).
  (Or at least the manpage for both appeared in 4.2, I did not check the
  kernel code itself to see if either predated 4.2.)

PR: 199472

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

8 years agoMFC 281170:
jhb [Tue, 2 Jun 2015 15:02:28 +0000 (15:02 +0000)]
MFC 281170:
vfork() first appeared in 3BSD which pre-dates 2.9BSD.  Verified via the
copy of 3BSD on disc 1 of "The CSRG Archives".

PR: 198612

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

8 years agoMFC: r283261
jkim [Mon, 1 Jun 2015 19:26:24 +0000 (19:26 +0000)]
MFC: r283261

Do not probe Intel PIIX4 south bridge quirks on amd64.

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

8 years agoMFC 283123:
jhb [Mon, 1 Jun 2015 18:08:56 +0000 (18:08 +0000)]
MFC 283123:
Fix two bugs that could result in PMC sampling effectively stopping.
In both cases, the the effect of the bug was that a very small positive
number was written to the counter. This means that a large number of
events needed to occur before the next sampling interrupt would trigger.
Even with very frequently occurring events like clock cycles wrapping all
the way around could take a long time. Both bugs occurred when updating
the saved reload count for an outgoing thread on a context switch.

First, the counter-independent code compares the current reload count
against the count set when the thread switched in and generates a delta
to apply to the saved count. If this delta causes the reload counter
to go negative, it would add a full reload interval to wrap it around to
a positive value. The fix is to add the full reload interval if the
resulting counter is zero.

Second, occasionally the raw counter value read during a context switch
has actually wrapped, but an interrupt has not yet triggered. In this
case the existing logic would return a very large reload count (e.g.
2^48 - 2 if the counter had overflowed by a count of 2). This was seen
both for fixed-function and programmable counters on an E5-2643.
Workaround this case by returning a reload count of zero.

PR: 198149
Sponsored by: Norse Corp, Inc.

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