]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC r266520:
delphij [Tue, 27 May 2014 18:54:45 +0000 (18:54 +0000)]
MFC r266520:

Explicitly link libzfs against libavl as it is done in OpenSolaris
(4543:12bb2876a62e).  Without this, some third party applications
may break because the lack of AVL related symbols.

FreeBSD base system are not affected because the FreeBSD ZFS command
line tools were all linked against libavl and thus hide the underlying
issue.

PR: bin/183081
Approved by: re (gjb)

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

9 years agoMFC r265925:
dim [Tue, 27 May 2014 18:27:51 +0000 (18:27 +0000)]
MFC r265925:

Upgrade our copy of llvm/clang to 3.4.1 release.  This release contains
mostly fixes, for the following upstream bugs:

http://llvm.org/PR16365 http://llvm.org/PR17473 http://llvm.org/PR18000
http://llvm.org/PR18068 http://llvm.org/PR18102 http://llvm.org/PR18165
http://llvm.org/PR18260 http://llvm.org/PR18290 http://llvm.org/PR18316
http://llvm.org/PR18460 http://llvm.org/PR18473 http://llvm.org/PR18515
http://llvm.org/PR18526 http://llvm.org/PR18600 http://llvm.org/PR18762
http://llvm.org/PR18773 http://llvm.org/PR18860 http://llvm.org/PR18994
http://llvm.org/PR19007 http://llvm.org/PR19010 http://llvm.org/PR19033
http://llvm.org/PR19059 http://llvm.org/PR19144 http://llvm.org/PR19326

Approved by: re (kib)

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

9 years agoMFC: r259428
marius [Tue, 27 May 2014 15:30:06 +0000 (15:30 +0000)]
MFC: r259428

Clear content of keyfiles loaded by the loader after processing them.

MFC: r259429

Clear some more places with potentially sensitive data.

Approved by: re (gjb)

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

9 years agoNote merge for sendmail 8.14.9.
gshapiro [Mon, 26 May 2014 20:14:36 +0000 (20:14 +0000)]
Note merge for sendmail 8.14.9.

Approved by: re (delphij)

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

9 years agoMFC: Minor changes to force commit these files so new freebsd*.cf
gshapiro [Mon, 26 May 2014 20:13:13 +0000 (20:13 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf
files are built to use the new sendmail-8.14.9/cf tree.

Approved by: re (delphij)

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

9 years agoMFC: Update for sendmail 8.14.9 import
gshapiro [Mon, 26 May 2014 20:11:31 +0000 (20:11 +0000)]
MFC: Update for sendmail 8.14.9 import

Approved by: re (delphij)

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

9 years agoMFC: Merge sendmail 8.14.9
gshapiro [Mon, 26 May 2014 20:10:00 +0000 (20:10 +0000)]
MFC: Merge sendmail 8.14.9

Approved by: re (delphij)

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

9 years agoMFC r266399:
ae [Mon, 26 May 2014 08:22:34 +0000 (08:22 +0000)]
MFC r266399:
  Since ipfw nat configures all options in one step, we should set all bits
  in the mask when calling LibAliasSetMode() to properly clear unneeded
  options.

  PR: 189655
Approved by: re (marius)

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

9 years agoMFC r265798, r265815, r266091
wblock [Sun, 25 May 2014 18:20:50 +0000 (18:20 +0000)]
MFC r265798, r265815, r266091

Add a man page for the new vt.4 device.

Approved by: re@ (gjb)

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

9 years agoMFC r266541:
hselasky [Sun, 25 May 2014 18:15:37 +0000 (18:15 +0000)]
MFC r266541:

- Fix a bug where the TLBPC value was forced to being odd for IN
direction isochronous transfers.
- Remove setting of fields which does not belong to the respective
TRBs. These fields are currently set as zero and this is more a
cosmetic change.

Approved by:    re

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

9 years agoMFC r266553, r266554:
gjb [Sun, 25 May 2014 18:07:23 +0000 (18:07 +0000)]
MFC r266553, r266554:

r266553:
  Add forward-compatibility glue with pkg-1.3:
   - Use ASSUME_ALWAYS_YES=YES instead of ASSUME_ALWAYS_YES=1
     since pkg-1.3 expects "yes" or "true" values.
   - Before exporting PKG_ABI, strip extra characters from what
     is parsed from 'pkg -vv'.  This causes problems further down
     when creating the packages directory for inclusion on the
     dvd1.iso.  Previously PKG_ABI would be 'freebsd:9:x86:64',
     but now is '"freebsd:9:x86:64";' in pkg-1.3.

r266554:
  Disable the main FreeBSD pkg(7) repositories in the dvd
  repository configuration to avoid fetching from upstream
  in case there may be conflicts.

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

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

9 years agoMFC r266411:
kib [Sun, 25 May 2014 17:02:40 +0000 (17:02 +0000)]
MFC r266411:
Fix LD_LIBMAP.

Approved by: re (gjb)

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

9 years agoMFH (r241737): staticize option variables
des [Sun, 25 May 2014 16:21:12 +0000 (16:21 +0000)]
MFH (r241737): staticize option variables
MFH (r253804): credit Michael Gmelin for SSL code
MFH (r251262): fix inode check for file change detection
MFH (r261233): bump copyright dates
MFH (r261234): increase minimum buffer size

Approved by: re (gjb)

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

9 years agoMFH (r260904): fix format string
des [Sun, 25 May 2014 16:20:53 +0000 (16:20 +0000)]
MFH (r260904): fix format string
MFH (r261230,r261263): fix issues with buffering / stalling
MFH (r261284): bump copyright dates
MFH (r266291): look for root certs in /usr/local first

Approved by: re (gjb)

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

9 years agoMFC r266464:
kib [Fri, 23 May 2014 11:56:32 +0000 (11:56 +0000)]
MFC r266464:
In execve(2), postpone the free of old vmspace until the threads are resumed
and exited.

Approved by: re (marius)

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

9 years agoUpdate clang target triple for FreeBSD 9.3-PRERELEASE.
gjb [Thu, 22 May 2014 23:14:40 +0000 (23:14 +0000)]
Update clang target triple for FreeBSD 9.3-PRERELEASE.

This is a direct commit to stable/9.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r266297: Update example portion of comment to coincide with r264840
dteske [Thu, 22 May 2014 22:06:51 +0000 (22:06 +0000)]
MFC r266297: Update example portion of comment to coincide with r264840

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

9 years agoMerge r266261 from head:
gavin [Thu, 22 May 2014 21:10:16 +0000 (21:10 +0000)]
Merge r266261 from head:

  USB endpoints are almost always single-digits, fix the path in the man
  page to be clearer.

PR: docs/175560
Submitted by: Andreas Gustafsson <gson gson.org>

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

9 years agoMerge r266111 from head:
gavin [Thu, 22 May 2014 20:59:38 +0000 (20:59 +0000)]
Merge r266111 from head:

  Fix typo.  Note that although this file is under contrib, it has diverged
  sufficiently from upstream (including a full whitespace commit and large
  portions rewritten) that this change does not move us further from the
  upstream.

PR: docs/186608
Submitted by: Jamie Landeg-Jones <jamie@dyslexicfish.net>

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

9 years agoMFC mpr(4) changes: r265484, r265485, r265709 and r265712
ken [Thu, 22 May 2014 16:36:01 +0000 (16:36 +0000)]
MFC mpr(4) changes: r265484, r265485, r265709 and r265712

  ------------------------------------------------------------------------
  r265484 | ken | 2014-05-06 23:11:16 -0600 (Tue, 06 May 2014) | 5 lines

  Remove some debugging code.

  Submitted by: Steve McConnell <stephen.mcconnell@avagotech.com>

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265485 | ken | 2014-05-06 23:14:48 -0600 (Tue, 06 May 2014) | 9 lines

  Hold the SIM lock when calling xpt_create_path() and xpt_action() in
  mprsas_SSU_to_SATA_devices().

  This fixes an assertion on shutdown with INVARIANTS enabled with SATA
  drives present on an IR firmware controller.

  Reviewed by: Steve McConnell <stephen.mcconnell@avagotech.com>.

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265709 | ken | 2014-05-08 14:28:22 -0600 (Thu, 08 May 2014) | 15 lines

  Fix TLR (Transport Layer Retry) support in the mps(4) and mpr(4) drivers.

  TLR is necessary for reliable communication with SAS tape drives.

  This was broken by change 246713 in the mps(4) driver.  It changed the
  cm_data field for SCSI I/O requests to point to the CCB instead of the data
  buffer.  So, instead, look at the CCB's data pointer to determine whether
  or not we're talking to a tape drive.

  Also, take the residual into account to make sure that we don't go off the
  end of the request.

  Sponsored by: Spectra Logic Corporation

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265712 | ken | 2014-05-08 14:46:46 -0600 (Thu, 08 May 2014) | 10 lines

  Add #ifdefs in the mpr(4) driver so that versions of stable/9 that
  have implemented the PIM_NOSCAN rescan functionality will have it
  enabled.

  This is a no-op for head.

  Reviewed by: slm
  Sponsored by: Spectra Logic Corporation

  ------------------------------------------------------------------------

Sponsored by: Spectra Logic, Avago

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

9 years agoMFC r266426
truckman [Thu, 22 May 2014 00:44:14 +0000 (00:44 +0000)]
MFC r266426

Slightly restructure the final loop in rman_reserve_resource_bound().
Replace with the existing loop termination test with a similar
condition from the nested "if" that may terminate the loop a bit
sooner, but still not too early.   This condition can then be removed
from the nested "if".  Relocate an operator to be style(9) compliant.

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

9 years agoMFC r253639:
hselasky [Wed, 21 May 2014 17:02:21 +0000 (17:02 +0000)]
MFC r253639:
Add ieee80211_add_{qos,wpa,rsn}() functions since they are needed by an
OpenBSD driver that is being ported to FreeBSD.

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

9 years agoMFC r265534:
pho [Wed, 21 May 2014 15:17:22 +0000 (15:17 +0000)]
MFC r265534:

msync(2) must return ENOMEM and not EINVAL when the address is outside the
allowed range or when one or more pages are not mapped. This according to
The Open Group Base Specifications Issue 7.

Sponsored by: EMC / Isilon storage division

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

9 years agoMFC rev. 265593:
thomas [Wed, 21 May 2014 07:42:42 +0000 (07:42 +0000)]
MFC rev. 265593:
(dd_out): Fix handling of all-zeroes block at end of input with
conv=sparse.

PR: bin/189174
PR: bin/189284
Reviewed by: kib

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

9 years agoMFC r266006 and r266011:
hselasky [Wed, 21 May 2014 06:31:44 +0000 (06:31 +0000)]
MFC r266006 and r266011:
Fix unload of USB audio kernel module.

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

9 years agoDocument r266286 and r266287, '-J' flag to ps(1), and
gjb [Tue, 20 May 2014 01:17:59 +0000 (01:17 +0000)]
Document r266286 and r266287, '-J' flag to ps(1), and
corresponding top(1) change.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r265465:
delphij [Tue, 20 May 2014 00:57:28 +0000 (00:57 +0000)]
MFC r265465:

Don't reply monlist request when it's not enabled.

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

9 years agoMFC r266195:
markj [Mon, 19 May 2014 19:54:21 +0000 (19:54 +0000)]
MFC r266195:

Remove some prototypes for undefined functions.

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

9 years agoMFC: r227809
rmacklem [Mon, 19 May 2014 16:15:27 +0000 (16:15 +0000)]
MFC: r227809
This patch enables the new/default NFS server's use of shared
vnode locking for read, readdir, readlink, getattr and access.
It is hoped that this will improve server performance for these
operations, since they will no longer be serialized for a given
file/vnode.

PR: 167048

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

9 years agoMFC rev. 265926:
thomas [Mon, 19 May 2014 11:17:44 +0000 (11:17 +0000)]
MFC rev. 265926:
(NANO_CONFIG): New variable containing path of config file, so that
the configuration can reference additional files relative to its own
location.

(NANO_MODULES): If set to "default", install all built modules.

Also update mergeinfo for past MFC of rev. 265260.

Reviewed by: imp

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

9 years agoMFC: r259838
marius [Mon, 19 May 2014 09:31:46 +0000 (09:31 +0000)]
MFC: r259838

Add another HP iLO serial (console) port, found on Itanium servers.

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

9 years agoMFC: r257808
marius [Mon, 19 May 2014 09:30:05 +0000 (09:30 +0000)]
MFC: r257808

Add new AMT serial port PCI ID on Intel Lynx Point chipset

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

9 years agoMFC: r253654
marius [Mon, 19 May 2014 09:26:32 +0000 (09:26 +0000)]
MFC: r253654

Set the device description after we call uart_probe(). In uart_probe()
we call device-specific probe functions, which can (and typically will)
set the device description based on low-level device probe information.
In the end we never actually used the device description that we so
carefully maintained in the PCI match table. By setting the device
description after we call uart_probe(), we'll print the more user-
friendly description by default.

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

9 years agoMFC r265931
truckman [Mon, 19 May 2014 07:49:13 +0000 (07:49 +0000)]
MFC r265931

Be even more paranoid about overflow.

Requested by: ache

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

9 years agoNuke a couple of unnecessary assigments. Nothing uses the values of rstart
truckman [Mon, 19 May 2014 07:45:46 +0000 (07:45 +0000)]
Nuke a couple of unnecessary assigments.  Nothing uses the values of rstart
and rend after this point.

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

9 years agoMFC 264765,264766:
jhb [Sun, 18 May 2014 15:29:00 +0000 (15:29 +0000)]
MFC 264765,264766:
- Don't claim the adapter is idle if it is clearing a drive.
- Fix an off by one error when checking for the stop event.  This
  resulted in not showing the most recent event by default.
- When the stop even is hit, break out of the outer loop to stop
  fetching more events.

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

9 years agoMFC 260377:
jhb [Sun, 18 May 2014 14:18:23 +0000 (14:18 +0000)]
MFC 260377:
When pf_get_translation() fails, it should leave *sn pointer pristine,
otherwise we will panic in pf_test_rule().

PR: amd64/189741
Tested by: Nick Rogers <ncrogers@gmail.com>

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

9 years agoReword r266269 text, based on feedback from cperciva.
gjb [Sat, 17 May 2014 19:59:46 +0000 (19:59 +0000)]
Reword r266269 text, based on feedback from cperciva.
Mention the kld module name.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r266269, xenhvm.ko.
gjb [Sat, 17 May 2014 19:45:58 +0000 (19:45 +0000)]
Document r266269, xenhvm.ko.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r266167, power management bug with Intel Turbo Boost.
gjb [Sat, 17 May 2014 19:45:55 +0000 (19:45 +0000)]
Document r266167, power management bug with Intel Turbo Boost.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r265847:
kib [Sat, 17 May 2014 16:29:39 +0000 (16:29 +0000)]
MFC r265847:
Fix sem_unlink(3) to properly invalidate the semaphores name cache.

PR: standards/189353

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

9 years agoMFC r246894 (by davidxu):
kib [Sat, 17 May 2014 16:28:29 +0000 (16:28 +0000)]
MFC r246894 (by davidxu):
Make more code be protected by internal mutex.

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

9 years agoMFC r246872 (by davidxu):
kib [Sat, 17 May 2014 16:26:59 +0000 (16:26 +0000)]
MFC r246872 (by davidxu):

Simplify code by using flag O_EXLOCK.

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

9 years agoMFC r265845:
kib [Sat, 17 May 2014 16:22:25 +0000 (16:22 +0000)]
MFC r265845:
Style.

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

9 years agoMFC r228162:
cperciva [Sat, 17 May 2014 16:00:25 +0000 (16:00 +0000)]
MFC r228162:
  Use C99 initializers for members of evtchn_devsw.

Submitted by: wolfskill

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

9 years agoMFC r266053:
dim [Sat, 17 May 2014 12:47:11 +0000 (12:47 +0000)]
MFC r266053:

Use the new -d option that was added to tblgen between llvm/clang 3.3
and 3.4 to generate dependency files for the '.inc.h' files generated
from .td files, and .sinclude those dependency files in clang.build.mk.

This will make future incremental builds of lib/clang and usr.bin/clang
work correctly, whenever any of the .td files get modified.

Note that this will not fix any problems with incremental builds from
*before* this revision, since there will not yet be any generated
dependency files.  A quick workaround is to run the following:

  find /usr/obj -type f -name '*.inc.h' | xargs rm

and then a regular incremental buildworld (e.g. with -DNO_CLEAN).

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

9 years agoMFC r265824:
kib [Sat, 17 May 2014 11:26:54 +0000 (11:26 +0000)]
MFC r265824:
Print the entry address in addition to the object.

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

9 years agoMFC r264841: Update zfsboot to coincide with MFC of r264840
dteske [Sat, 17 May 2014 04:00:18 +0000 (04:00 +0000)]
MFC r264841: Update zfsboot to coincide with MFC of r264840
adding GEOM support.

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

9 years agoMFC r264840: Implement GEOM based media device classification.
dteske [Sat, 17 May 2014 03:49:29 +0000 (03:49 +0000)]
MFC r264840: Implement GEOM based media device classification.

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

9 years agoMFC r265267:
bdrewery [Sat, 17 May 2014 03:28:27 +0000 (03:28 +0000)]
MFC r265267:

  Fix width/alignment of JID column. Make it support up to the maximum 7-wide
  JIDs. On a system using jails for common tasks the JID can quickly increase.

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

9 years agoMFC r251630:
bdrewery [Sat, 17 May 2014 03:27:31 +0000 (03:27 +0000)]
MFC r251630:

  Bump the CPU/WCPU column width by one so that it fits values from 100% up to
  999.99% CPU.

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

9 years agoMFC r265249,r265250,r265251:
bdrewery [Sat, 17 May 2014 03:23:45 +0000 (03:23 +0000)]
MFC r265249,r265250,r265251:

    - Add -J command/flag to filter by jail name/jid. This will automatically
      display the JID as well (the -j command/flag).
    - Add a hint for 'u' and 'J' command that '+' displays all.
    - Add J command to help.

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

9 years agoMFC r265229,r265239:
bdrewery [Sat, 17 May 2014 03:21:50 +0000 (03:21 +0000)]
MFC r265229,r265239:

    Add -J to filter by matching jail IDs and names.

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

9 years agoAdd xenhvm.ko, which can be loaded along with a !XENHVM kernel in order to
cperciva [Fri, 16 May 2014 19:28:22 +0000 (19:28 +0000)]
Add xenhvm.ko, which can be loaded along with a !XENHVM kernel in order to
provide support for the Xen/HVM environment.

This code is compiled with XENHVM defined; since this would result in the
(no longer used) "last processed" values being included in PCPU data
structures, an additional MODXENHVM define is used to exclude those.  This
allows KBI to be retained for both GENERIC and XENHVM kernel configurations
(which are not KBI compatible with each other).

This is a direct commit to stable/9, since stable/10 and HEAD have XENHVM
merged into the GENERIC kernel configuration (but the changes in stable/10
and HEAD cannot be MFCed as-is).

Discussed with: royger, gjb
Relnotes: FreeBSD 9.3-RELEASE can run in Xen/HVM environments,
including Amazon EC2, using GENERIC + xenhvm.ko.

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

9 years agoChange Xen event channel "last processed" values from per-CPU to global.
cperciva [Fri, 16 May 2014 19:15:03 +0000 (19:15 +0000)]
Change Xen event channel "last processed" values from per-CPU to global.
In FreeBSD 9.x we only run this code on (virtual) CPU #0, so there is no
need for these to be per-CPU values.  Retain the values in the per-CPU
data structure (when compiled with options XENHVM) for KBI compatibility.

This is a direct commit to stable/9, since the relevant code has been
substantially changed (in ways which cannot be easily MFCed) in HEAD and
stable/10.

Submitted by: royger (earlier version)

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

9 years agoMFC r265779:
hselasky [Fri, 16 May 2014 16:14:37 +0000 (16:14 +0000)]
MFC r265779:
Fix for NULL pointer.

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

9 years agoMFC: r265585
brueffer [Fri, 16 May 2014 16:07:21 +0000 (16:07 +0000)]
MFC: r265585

Generate hardware notes for mrsas(4).

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

9 years agoMFC: r265583, r265716
brueffer [Fri, 16 May 2014 16:04:32 +0000 (16:04 +0000)]
MFC: r265583, r265716

First cleanup pass: new sentence -> new line, mdoc, typos and style.

Fix two more typos. (1)

Submitted by: Trond Endrestol (1)

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

9 years agoMFC: r265240
brueffer [Fri, 16 May 2014 15:53:27 +0000 (15:53 +0000)]
MFC: r265240

Properly free resources in case of error.

CID: 1007032
Found with: Coverity Prevent(tm)

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

9 years agoMFC: r265238
brueffer [Fri, 16 May 2014 15:51:37 +0000 (15:51 +0000)]
MFC: r265238

Properly free resources in case of error.

CID: 1007032
Found with: Coverity Prevent(tm)

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

9 years agoMFC 265555/MFS 265922
ambrisko [Fri, 16 May 2014 15:46:28 +0000 (15:46 +0000)]
MFC 265555/MFS 265922

dd mrsas(4) driver from LSI official support of newer MegaRAID SAS
cards.  LSI has been maintaining this driver outside of the FreeBSD
tree.  It overlaps support of ThunderBolt and Invader cards that mfi(4)
supports.  By default mfi(4) will attach to cards.  If the tunable:
hw.mfi.mrsas_enable=1
is set then mfi(4) will not probe and attach to these newer cards and
allow mrsas(4) to attach.  So by default this driver will not effect
a FreeBSD system unless mfi(4) is removed from the kernel or the
tunable is enabled.

mrsas(4) attaches disks to the CAM layer so it depends on CAM and devices
show up as /dev/daX.  mfiutil(8) does not work with mrsas.  The FreeBSD
version of MegaCli and StorCli from LSI do work with mrsas.  It appears
that StorCli only works with mrsas.  MegaCli appears to work with mfi(4)
and mrsas(4).

It would be good to add mfiutil(4) support to mrsas, emulations modes,
kernel logging, device aliases to ease the transition between mfi(4)
and mrsas(4).

Style issues should be resolved by LSI when they get committers approved.
The plan is get this driver in FreeBSD 9.3 to improve HW support.

Thanks to LSI for developing, testing and working with FreeBSD to
make this driver co-exist in FreeBSD.  This improves the overall
support of MegaRAID SAS.

Submitted by: Kashyap Desai <Kashyap.Desai@lsi.com>
Sponsored by: LSI

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

9 years agoMFC r265943:
yongari [Fri, 16 May 2014 05:11:15 +0000 (05:11 +0000)]
MFC r265943:
  Disable TX IP/TCP/UDP checksum offloading for RTL8168C/RTL8168CP.
  Previously only TX IP checksum offloading was disabled but it's
  reported that TX checksum offloading for UDP datagrams with IP
  options also generates corrupted frames.  Reporter's controller is
  RTL8168CP but I guess RTL8168C also have the same issue since it
  shall share the same core.

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

9 years agoMFC r265942:
yongari [Fri, 16 May 2014 05:06:46 +0000 (05:06 +0000)]
MFC r265942:
  Fix checksum computation.  Previously it didn't include carry.

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

9 years agoMFC r265691, r265713:
tuexen [Thu, 15 May 2014 20:27:57 +0000 (20:27 +0000)]
MFC r265691, r265713:

For some UDP packets (for example with 200 byte payload) and IP options,
the IP header and the UDP header are not in the same mbuf.
Add code to in_delayed_cksum() to deal with this case.

Use KASSERTs as suggested by glebius@

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

9 years agoMFC r265455:
tuexen [Thu, 15 May 2014 20:24:51 +0000 (20:24 +0000)]
MFC r265455:

Remove unused code. This is triggered by the bugreport of Sylvestre Ledru
which deal with useless code in the user land stack:
https://bugzilla.mozilla.org/show_bug.cgi?id=1003929

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

9 years agoMFC r264838:
tuexen [Thu, 15 May 2014 20:21:19 +0000 (20:21 +0000)]
MFC r264838:

Don't free an mbuf twice. This only happens in very rare error
cases where the peer sends illegal sequencing information in
DATA chunks for an existing association.

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

9 years agoMFC r264704:
tuexen [Thu, 15 May 2014 20:19:33 +0000 (20:19 +0000)]
MFC r264704:

Add consistency checks to ensure that fragments of a user message
have the same U-bit.

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

9 years agoMFC r264701:
tuexen [Thu, 15 May 2014 20:17:20 +0000 (20:17 +0000)]
MFC r264701:

Send also a packet containing an ABORT chunk in response to an OOTB packet
containing a COOKIE-ECHO chunk.

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

9 years agoMFC r264682:
tuexen [Thu, 15 May 2014 20:15:42 +0000 (20:15 +0000)]
MFC r264682:

Use consistently debug output instead of an unconditional printf.

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

9 years agoMFC r264679:
tuexen [Thu, 15 May 2014 20:13:44 +0000 (20:13 +0000)]
MFC r264679:

Send the correct error cause, when a DATA chunk with no user data
is received. This bug was reported by Irene Ruengeler.

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

9 years agoMFC r264241:
tuexen [Thu, 15 May 2014 20:10:58 +0000 (20:10 +0000)]
MFC r264241:

Call sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(),
since rt_addrmsg() gets also called from other functions.

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

9 years agoMFC r264017:
tuexen [Thu, 15 May 2014 20:08:25 +0000 (20:08 +0000)]
MFC r264017:

Increment the SSN only after processing the last fragment of an
ordered user message.

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

9 years agoMFC r263922:
tuexen [Thu, 15 May 2014 20:06:29 +0000 (20:06 +0000)]
MFC r263922:

Handle an edge case of address management similar to TCP.
This needs to be reconsidered when the address handling
will be reimplemented.
The patch is from rrs@.

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

9 years agoMFC r263921:
tuexen [Thu, 15 May 2014 20:03:57 +0000 (20:03 +0000)]
MFC r263921:

Use SCTP_OVER_UDP_TUNNELING_PORT more consistently.

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

9 years agoMFC r263237:
tuexen [Thu, 15 May 2014 20:01:21 +0000 (20:01 +0000)]
MFC r263237:

* Provide information in error causes in ASCII instead of
  proprietary binary format.
* Add support for a diagnostic information error cause.
  The code is sysctlable and the default is 0, which
  means it is not sent.

This is joint work with rrs@.

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

9 years agoMFC r265876:
cperciva [Thu, 15 May 2014 18:14:19 +0000 (18:14 +0000)]
MFC r265876:
  In cf_get_method, when we don't already know what clock speed the CPU is
  running at, guess the nearest value instead of looking for a value within
  25 MHz of the observed frequency.

  Prior to this change, if a system booted with Intel Turbo Boost enabled,
  the dev.cpu.0.freq sysctl is nonfunctional, since the ACPI-reported
  frequency for Turbo Boost states does not match the actual clock frequency
  (and thus no levels are within 25 MHz of the observed frequency) and the
  current performance level is read before a new level is set.

Relnotes:       Bug fix in power management on CPUs with Intel Turbo Boost

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

9 years agoMFC r264850
smh [Thu, 15 May 2014 12:44:00 +0000 (12:44 +0000)]
MFC r264850

Add the ability to set a minimum ashift size for ZFS pool creation or root level
vdev addition.

Change max_auto_ashift sysctl to error when an invalid value is requested instead
of silently limiting it.

Sponsored by: Multiplay

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

9 years agoMFC r262665:
markj [Thu, 15 May 2014 00:50:57 +0000 (00:50 +0000)]
MFC r262665:
Expose a few DTrace parameters as sysctls under kern.dtrace and add
descriptions for several existing sysctls.

PR: 187027

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

9 years agoMFC r263096:
tuexen [Wed, 14 May 2014 19:00:01 +0000 (19:00 +0000)]
MFC r263096:

Put the offset of the CRC32C in csum_data instead of 0.
The virtio driver needs the offset to be stored in csum_data,
like in the case for UDP and TCP.

The virtio problem was reported by
Niu Zhixiong <kaiaixi@gmail.com>, who helped in debugging
and testing the patch.

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

9 years agoMFC r263094:
tuexen [Wed, 14 May 2014 18:57:09 +0000 (18:57 +0000)]
MFC r263094:

SCTP uses CRC32C and not Adler anymore. While there change the reference
to RFC 4960.
This does not change any code, just comments.

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

9 years agoMFC r262252:
tuexen [Wed, 14 May 2014 18:25:50 +0000 (18:25 +0000)]
MFC r262252:

Remove redundant code and fix a style error.

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

9 years agoMFC r260257:
tuexen [Wed, 14 May 2014 18:23:57 +0000 (18:23 +0000)]
MFC r260257:

Fix several bugs in sctp_bindx():
* Set errno to EAFNOSUPPORT if an address is provided which is neither
  AF_INET nor AF_INET6.
* Don't modify the arguments.
* Don't smash the stack when provided with a non-zero port.
* Handle the case correctly where the first address provided is
  an IPv6 address.

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

9 years agoMFC r259943:
tuexen [Wed, 14 May 2014 18:22:11 +0000 (18:22 +0000)]
MFC r259943:

Address some warnings which showed up on the userland version.

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

9 years agoMFC r258765:
tuexen [Wed, 14 May 2014 18:20:35 +0000 (18:20 +0000)]
MFC r258765:

In
http://svnweb.freebsd.org/changeset/base/258221
I introduced a bug which initialized global locks
whenever the SCTP stack initialized. This was fixed in
http://svnweb.freebsd.org/changeset/base/258574
by rodrigc@. He just initialized the locks for
the default vnet. This fix reverts to the old
behaviour before r258221, which explicitly makes
sure it is only called once, because this works also on
other platforms.

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

9 years agoMFC r258574 from rodrigc@
tuexen [Wed, 14 May 2014 18:18:16 +0000 (18:18 +0000)]
MFC r258574 from rodrigc@

Only initialize some mutexes for the default VNET.

In r208160, sctp_it_ctl was made a global variable, across all VNETs.
However, sctp_init() is called for every VNET that is created.  This results
in the same global mutexes which are part of sctp_it_ctl being initialized.  This can result
in crashes if many jails are created.

To reproduce the problem:
  (1)  Take a GENERIC kernel config, and add options for: VIMAGE, WITNESS,
       INVARIANTS.
  (2)  Run this command in a loop:
       jail -l -u root -c path=/ name=foo persist vnet && jexec foo ifconfig lo0 127.0.0.1/8 && jail -r foo

       (see http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021280.html )

Witness will warn about the same mutex being initialized.

Fix the problem by only initializing these mutexes in the default VNET.

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

9 years agoMFC r258235:
tuexen [Wed, 14 May 2014 18:15:55 +0000 (18:15 +0000)]
MFC r258235:

Use SCTP_PR_SCTP_TTL when the user provides a positive
timetolive in sctp_sendmsg().

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

9 years agoMFC r258228:
tuexen [Wed, 14 May 2014 18:14:17 +0000 (18:14 +0000)]
MFC r258228:

Remove a stray write operation.

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

9 years agoMFC r258224:
tuexen [Wed, 14 May 2014 18:12:42 +0000 (18:12 +0000)]
MFC r258224:

When determining if an address belongs to an stcb, take the address
family into account for wildcard bound endpoints.

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

9 years agoMFC r258221:
tuexen [Wed, 14 May 2014 18:01:44 +0000 (18:01 +0000)]
MFC r258221:

Cleanups which result in fixes which have been made upstream
and where partially suggested by Andrew Galante.
There is no functional change in FreeBSD.

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

9 years agoMFC r257804:
tuexen [Wed, 14 May 2014 17:45:10 +0000 (17:45 +0000)]
MFC r257804:

Get rid of the artification limitation enforced by
SCTP_AUTH_RANDOM_SIZE_MAX.
This was suggested by Andrew Galante.

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

9 years agoMFC r257803:
tuexen [Wed, 14 May 2014 17:28:49 +0000 (17:28 +0000)]
MFC r257803:

Make sure that we don't try to build an ASCONF-ACK chunk
larger than what fits in the the mbuf cluster.
This issue was reported by Andrew Galante.

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

9 years agoMFC r257800:
tuexen [Wed, 14 May 2014 17:26:06 +0000 (17:26 +0000)]
MFC r257800:

Use htons()/ntohs() appropriately.
These issues were reported by Andrew Galante.

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

9 years agoMFC r257574:
tuexen [Wed, 14 May 2014 17:19:42 +0000 (17:19 +0000)]
MFC r257574:

Unlock the lock before destroying it.
This issue was reported by Andrew Galante.

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

9 years agoMFC r257555:
tuexen [Wed, 14 May 2014 17:16:49 +0000 (17:16 +0000)]
MFC r257555:

Changes from upstream to improve compilation when INET or INET6
or none of them is defined.

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

9 years agoMFC r257359:
tuexen [Wed, 14 May 2014 17:07:14 +0000 (17:07 +0000)]
MFC r257359:

Terminate a debug output with a \n.

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

9 years agoMFC r257274:
tuexen [Wed, 14 May 2014 17:01:31 +0000 (17:01 +0000)]
MFC r257274:

Fis the value of *optlen when calling getsockopt() for
SCTP_REMOTE_UDP_ENCAPS_PORT.
This issue was reported by Andrew Galante.

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

9 years agoMFC r257272:
tuexen [Wed, 14 May 2014 16:59:32 +0000 (16:59 +0000)]
MFC r257272:

Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined.
The issue was reported by Andrew Galante.

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

9 years agoMFC r256556
tuexen [Wed, 14 May 2014 16:57:08 +0000 (16:57 +0000)]
MFC r256556

Remove a buggy comparision when setting manually the path MTU.
After fixing, the comparision would have become redundant.
Thanks to Andrew Galante for reporting the issue.

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

9 years agoMFC: r265535
marius [Wed, 14 May 2014 16:18:19 +0000 (16:18 +0000)]
MFC: r265535

- Sprinkle const and static as appropriate.
- Fix whitespace bugs.
- Remove pointless returns in void functions.
- Nuke pointless switch cases mirroring the default.

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC: r256561
marius [Wed, 14 May 2014 15:52:26 +0000 (15:52 +0000)]
MFC: r256561

Prevent an unlikely, but real double free issue in gvinum(8).

Coverity ID: 1018965

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