]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
9 years agoMFC r266520:
delphij [Tue, 27 May 2014 18:45:02 +0000 (18:45 +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

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

9 years agoNote merge for sendmail 8.14.9.
gshapiro [Mon, 26 May 2014 16:00:35 +0000 (16:00 +0000)]
Note merge for sendmail 8.14.9.

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

9 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Mon, 26 May 2014 15:46:19 +0000 (15:46 +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.

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

9 years agoMFC: Update for sendmail 8.14.9 import
gshapiro [Mon, 26 May 2014 15:36:22 +0000 (15:36 +0000)]
MFC: Update for sendmail 8.14.9 import

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

9 years agoMFC: Merge sendmail 8.14.9 to HEAD
gshapiro [Mon, 26 May 2014 15:30:27 +0000 (15:30 +0000)]
MFC: Merge sendmail 8.14.9 to HEAD

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

9 years agoMFC r266541:
hselasky [Sun, 25 May 2014 18:26:43 +0000 (18:26 +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.

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

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

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

9 years agoMFC r265534:
pho [Fri, 23 May 2014 05:35:43 +0000 (05:35 +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/8@266574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266426
truckman [Thu, 22 May 2014 00:46:03 +0000 (00:46 +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/8@266523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

9 years agoMFC r265465:
delphij [Tue, 20 May 2014 00:57:53 +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/8@266459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r259838
marius [Mon, 19 May 2014 09:31:49 +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/8@266440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r257808
marius [Mon, 19 May 2014 09:30:08 +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/8@266438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r253654
marius [Mon, 19 May 2014 09:26:35 +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/8@266435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Be even more paranoid about overflow.

Requested by:   ache

git-svn-id: svn://svn.freebsd.org/base/stable/8@266432 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:46:03 +0000 (07:46 +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/8@266431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 264766:
jhb [Sun, 18 May 2014 15:31:02 +0000 (15:31 +0000)]
MFC 264766:
- 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/8@266402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265779:
hselasky [Fri, 16 May 2014 16:17:06 +0000 (16:17 +0000)]
MFC r265779:
Fix for NULL pointer.

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

10 years agoMFC: r265240
brueffer [Fri, 16 May 2014 15:57:20 +0000 (15:57 +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/8@266252 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r265238
brueffer [Fri, 16 May 2014 15:56:07 +0000 (15:56 +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/8@266250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRevert the following MFCs done as part of r265147:
marius [Thu, 15 May 2014 09:55:21 +0000 (09:55 +0000)]
Revert the following MFCs done as part of r265147:
r249438, r249466, r249481, r250025, r253958
leaving the MFCs of r241028 and r241444 in place. While the CAM queuing
changes in question are pretty much self-contained and work fine with all
kinds of SAS, SATA and USB devices, for reasons unknown they cause a hang
with Initio INIC-1610P USB disks not seen with later branches containing
these rewrites. In turn, r241444 actually is sufficient to fix the panic
and problems I was seeing and that lead me to bringing CAM queuing up to
date.

Reported by: Scott Allendorf

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

10 years agoMFC: r265535
marius [Wed, 14 May 2014 16:18:26 +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/8@266045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r256561
marius [Wed, 14 May 2014 15:52:36 +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/8@266041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265072:
bdrewery [Wed, 14 May 2014 15:36:23 +0000 (15:36 +0000)]
MFC r265072:

  Remove redundant include

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

10 years agoMFC r264499:
bdrewery [Wed, 14 May 2014 15:33:51 +0000 (15:33 +0000)]
MFC r264499:

  Make g_access() KASSERT() more useful.

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

10 years agoMFC: r204665
marius [Wed, 14 May 2014 15:22:42 +0000 (15:22 +0000)]
MFC: r204665

- Make function of finding an available drive name a macro.
- Move check of /dev/ prefix and copy into a function to save code duplication.
  This also fixes a bug where the /dev/ prefix could not be used when creating
  volumes on the command line.

MFC: r209051

Initialize variables before usage.

Found by: clang static analyzer
Found by: Coverity Prevent[tm] (CID 7736, 7760)

MFC: r215704

Fix some more warnings found by clang.

MFC: r229915

Fix warning when compiling with gcc46.

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

10 years agoMFC r264385:
bdrewery [Wed, 14 May 2014 15:19:52 +0000 (15:19 +0000)]
MFC r264385:

  Use proper MFSNAMELEN for fs type.

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

10 years agoMFC: r265454
marius [Wed, 14 May 2014 13:48:29 +0000 (13:48 +0000)]
MFC: r265454

- Allow foot shooting with the resetconfig command via the -f option.
- Fix typos preventing -f to actually work with the create command.
- Initialize flags to zero rather than using stack garbage when handling
  the grow command.

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

10 years agoImprove build repeatability for kldxref(8). [EN-14:04]
delphij [Tue, 13 May 2014 23:35:29 +0000 (23:35 +0000)]
Improve build repeatability for kldxref(8). [EN-14:04]

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

10 years agoMFC of 265978, tzdata2014c
edwin [Tue, 13 May 2014 21:30:09 +0000 (21:30 +0000)]
MFC of 265978, tzdata2014c

- Egypt will go into DST on 15 May 2014.

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

10 years agoMFC r265703
davidcs [Mon, 12 May 2014 15:59:09 +0000 (15:59 +0000)]
MFC r265703
Modify Copyright information and other strings to reflect
Qlogic Corporation's purchase of Broadcom's NetXtreme business.
Added clean option to Makefile

Submitted by:David C Somayajulu (davidcs@freebsd.org) QLogic Corporation

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

10 years agoMFC r265363
truckman [Mon, 12 May 2014 07:05:46 +0000 (07:05 +0000)]
MFC r265363

Avoid unsigned integer overflow which can cause
rman_reserve_resource_bound() to return incorrect results.

Continue the initial search until the first viable region is found.

Add a comment to explain the search termination test.

PR: kern/188534
Reviewed by: jhb (previous version)

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

10 years agoMFC r265411
davidcs [Sat, 10 May 2014 02:08:04 +0000 (02:08 +0000)]
MFC r265411
Modify Copyright information to reflect Qlogic Corporation's purchase
of Broadcom's NetXtreme business

Submitted by:David C Somayajulu (davidcs@freebsd.org) QLogic Corporation

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

10 years agoMFC r265464:
delphij [Fri, 9 May 2014 08:22:02 +0000 (08:22 +0000)]
MFC r265464:

Sort .ALLSRC before concatenating files together.  This makes sure that the
file are always built the same.

(Note that Header and Localstuff must appear first and in that order, the
sorting does not affect as a coincident effect).

Submitted by: sjg

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

10 years agoMFC: r265360
brueffer [Thu, 8 May 2014 19:08:07 +0000 (19:08 +0000)]
MFC: r265360

Remove stray comma.

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

10 years agoMFC: r251394
marius [Thu, 8 May 2014 14:28:51 +0000 (14:28 +0000)]
MFC: r251394

CAM_DEV_QFREEZE handling should only be done on request submission but
neither on completion nor by SIM drivers in the first place. This issue
has been revealed by r249466 (MFC'ed to stable/8 in r265147).

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

10 years agoMerge r254959 from head:
gavin [Wed, 7 May 2014 20:13:46 +0000 (20:13 +0000)]
Merge r254959 from head:

  Allow more space for interface names.

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

10 years agoMFC r262338
alc [Wed, 7 May 2014 16:28:36 +0000 (16:28 +0000)]
MFC r262338
  When the kernel is running in a virtual machine, it cannot rely upon the
  processor family to determine if the workaround for AMD Family 10h Erratum
  383 should be enabled.  To enable virtual machine migration among a
  heterogeneous collection of physical machines, the hypervisor may have
  been configured to report an older processor family with a reduced feature
  set.  Effectively, the reported processor family and its features are like
  a "least common denominator" for the collection of machines.

  Therefore, when the kernel is running in a virtual machine, instead of
  relying upon the processor family, we now test for features that prove
  that the underlying processor is not affected by the erratum.  (The
  features that we test for are unlikely to ever be emulated in software
  on an affected physical processor.)

PR: 186061

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

10 years agoMFC: r265248
marius [Wed, 7 May 2014 09:56:28 +0000 (09:56 +0000)]
MFC: r265248

Allow GEOM_VINUM to be statically compiled into the kernel.

Submitted by: gleb

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

10 years agoMFC: r265090
marius [Fri, 2 May 2014 10:31:42 +0000 (10:31 +0000)]
MFC: r265090

Merge r133175 from upstream:

2008-03-13  Dennis Czeremin  <dennis.czeremin@smiths-heimann.com>

PR libstdc++/35566
* include/bits/stl_multimap.h (multimap<>::multimap(_InputIterator,
_InputIterator)): Forward to _M_insert_equal, not _M_insert_unique.

This patch was GPL2 at the time and fixes a regression introduced with
the merge of GCC r129013 in FreeBSD r236829 (merged to stable/8 in r237508).

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

10 years agoMFC: r241028
marius [Wed, 30 Apr 2014 14:09:26 +0000 (14:09 +0000)]
MFC: r241028

Change queue overflow checks from DIAGNOSTIC+panic() to KASSERT() to make
them enabled on HEAD by default. It is probably better to do single compare
then hunt for unexpected memory corruption.

MFC: r241444

Increase device CCB queue array size by CAM_RL_VALUES - 1 (4) elements.
It is required to store extra recovery requests in case of bus resets.
On ATA/SATA this fixes assertion panics on HEAD with INVARIANTS enabled or
possible memory corruptions otherwise if timeout/reset happens when device
CCB queue is already full.

MFC: r249466 (partial), r249438, r249481, r250025 (partial)

Remove multilevel freezing mechanism, implemented to handle specifics of
the ATA/SATA error recovery, when post-reset recovery commands should be
allocated when queues are already full of payload requests.  Instead of
removing frozen CCBs with specified range of priorities from the queue
to provide free openings, use simple hack, allowing explicit CCBs over-
allocation for requests with priority higher (numerically lower) then
CAM_PRIORITY_OOB threshold.

Simplify CCB allocation logic by removing SIM-level allocation queue.
After that SIM-level queue manages only CCBs execution, while allocation
logic is localized within each single device.

MFC: r253958

Change CCB queue resize logic to be able safely handle overallocations:
 - (re)allocate queue space in power of 2 chunks with 64 elements minimum
and never shrink it; with only 4/8 bytes per element size is insignificant.
 - automatically reallocate the queue to double size if it is overflowed.
 - if queue reallocation failed, store extra CCBs in unsorted TAILQ,
fetching them back as soon as some queue element is freed.

To free space in CCB for TAILQ linking, change highpowerq from keeping
high-power CCBs to keeping devices frozen due to high-power CCBs.

This encloses all pieces of queue resize logic inside of cam_queue.[ch],
removing some not obvious duties from xpt_release_ccb().

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

10 years agoPick up the 2014032601 update which adds an IPv6 address for C.
erwin [Wed, 30 Apr 2014 09:57:38 +0000 (09:57 +0000)]
Pick up the 2014032601 update which adds an IPv6 address for C.

Note that this is a direct commit to stable/8 as this file
is no longer in HEAD.

Sponsored by: DK Hostmaster A/S

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

10 years agoMFC r265046
smh [Wed, 30 Apr 2014 09:53:14 +0000 (09:53 +0000)]
MFC r265046

Fix ZIO reordering issue which could cause data loss / corruption.

Sponsored by: Multiplay

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

10 years agoFix TCP reassembly vulnerability.
delphij [Wed, 30 Apr 2014 04:04:20 +0000 (04:04 +0000)]
Fix TCP reassembly vulnerability.

Patch done by: glebius
Security: FreeBSD-SA-14:08.tcp
Security: CVE-2014-3000

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

10 years agoMFC r265015:
hselasky [Tue, 29 Apr 2014 05:48:50 +0000 (05:48 +0000)]
MFC r265015:
Setting the IMOD value below 0x3F8 can cause IRQ lockups in the Intel
LynxPoint USB 3.0 controllers found in MacBookPro 2013's.

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

10 years agoMFC uftdi(4) driver changes...
ian [Mon, 28 Apr 2014 14:20:21 +0000 (14:20 +0000)]
MFC uftdi(4) driver changes...
  r264010: Support speeds up to 12mbaud on newer chips.
  r264018: Update list of supported FTDI chips.
  r264031: Use 2K IO buffers for improved throughput.
  r264149: Add ioctl(2) calls to access bitbang, MPSSE, CPU_FIFO,
           and other modes.
  r264800: Various fixes to r264149 pointed out by Coverity scan.

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

10 years agoMFC r264467:
delphij [Mon, 28 Apr 2014 06:12:15 +0000 (06:12 +0000)]
MFC r264467:

Take into account when zpool history block grows exceeding 128KB in zpool(8)
and zdb(8) by growing the buffer on demand with a cap of 1GB (specified in
spa_history_create_obj()).

PR: bin/186574
Submitted by: Andrew Childs <lorne cons org nz> (with changes)

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

10 years agoMFC r264582:
ae [Thu, 24 Apr 2014 11:14:17 +0000 (11:14 +0000)]
MFC r264582:
  Remove unused variable.

PR: 173521

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

10 years agoMFC: r264585
brueffer [Thu, 24 Apr 2014 10:27:21 +0000 (10:27 +0000)]
MFC: r264585

Add a missing break in the TCP case.

Reviewed by: bms

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

10 years agoMFC: r264489
brueffer [Wed, 23 Apr 2014 09:24:26 +0000 (09:24 +0000)]
MFC: r264489

Add a missing break in option parsing.

CID: 1011452
Found with: Coverity Prevent(tm)

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

10 years agoMFC: r264418
brueffer [Tue, 22 Apr 2014 21:17:12 +0000 (21:17 +0000)]
MFC: r264418

Avoid double free in f_acl().

CID: 1018508
Found with: Coverity Prevent(tm)

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

10 years agoMFC: r216746
marius [Tue, 22 Apr 2014 16:04:31 +0000 (16:04 +0000)]
MFC: r216746

Make it possible to specify WITHOUT_MODULES in a kernel config file.

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

10 years agoMFC: r249336
marius [Tue, 22 Apr 2014 13:58:39 +0000 (13:58 +0000)]
MFC: r249336

Add ID for ASMedia ASM1042 USB 3.0 controller.

MFC: r253094

Use MSI for xhci(4), if supported.

MFC: r253398

Add a tunable to force disable MSI use for xhci(4).

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

10 years agoMFC: r229379
marius [Tue, 22 Apr 2014 13:02:12 +0000 (13:02 +0000)]
MFC: r229379

Add support for Intel EG20T serial ports

MFC: r248340

Add support for Exar XR17V358 8-port serial device to puc(4)

MFC: r248472

Correct the definition for Exar XR17V258IV: we must use a config_function
to specify the offset into the PCI memory spare at which each serial port
will find its registers.  This was already done for other Exar PCI serial
devices; it was accidentally omitted for this specific device.

MFC: r251713

Fix whitespace and normalize some entries.

MFC: r251715

All of Oxford/PLX OX16PCI954, OXm16PCI954 and OXu16PCI954 share the
exact same (subsystem) device and vendor IDs. However, the reference
design for the OXu16PCI954 uses a 14.7456 MHz clock (as does the EXSYS
EX-41098-2 equipped with these), while at least the OX16PCI954 defaults
to a 1.8432 MHz one. According to the datasheets of these chips, the
only difference in PCI configuration space is that OXu16PCI954 have
a revision ID of 1 while the other two are at 0. So employ the latter
for determining the default clock rates of this family.

MFC: r264257, r264327, r264514

Distinguish between the different variants and configurations of Sunix
{MIO,SER}5xxxx chips instead of treating all of them as PUC_PORT_2S.
Among others, this fixes the hang seen when trying to probe the none-
existent second UART on an actually 1-port chip.

Obtained from: NetBSD (BAR layouts)
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

10 years agoMFC r264364:
ae [Mon, 21 Apr 2014 11:26:46 +0000 (11:26 +0000)]
MFC r264364:
  Properly release the in6_multi lock.

Sponsored by: Yandex LLC

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

10 years agoMFC r264142:
bdrewery [Mon, 21 Apr 2014 02:54:15 +0000 (02:54 +0000)]
MFC r264142:

  Show error code when failing to destroy a mirror on delay

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

10 years agoMFC r264320:
bdrewery [Mon, 21 Apr 2014 02:53:42 +0000 (02:53 +0000)]
MFC r264320:

  Fix spelling error in g_trace() call.

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

10 years agoMFC r264344:
hselasky [Fri, 18 Apr 2014 07:46:26 +0000 (07:46 +0000)]
MFC r264344:
Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0
APIs to increase the maximum bandwidth limit.

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

10 years agoMFC r264340:
hselasky [Fri, 18 Apr 2014 07:44:43 +0000 (07:44 +0000)]
MFC r264340:
Correct IMOD default value according to comment.

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

10 years agoCherry-pick OpenSSL changeset 5be1ae2:
delphij [Thu, 17 Apr 2014 20:09:41 +0000 (20:09 +0000)]
Cherry-pick OpenSSL changeset 5be1ae2:

====
Author: Dr. Stephen Henson <steve@openssl.org>

Treat a zero length passed to ssleay_rand_add a no op: the existing logic
zeroes the md value which is very bad. OpenSSL itself never does this
internally and the actual call doesn't make sense as it would be passing
zero bytes of entropy.

Thanks to Marcus Meissner <meissner@suse.de> for reporting this bug.
====

This is a direct commit to stable/8 and stable/9.  -HEAD and stable/10
already have this fix as part of OpenSSL 1.0.1g.

Noticed by: koobs
Reviewed by: benl (maintainer)

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

10 years agoMFC: r264315, r264316
brueffer [Thu, 17 Apr 2014 10:41:26 +0000 (10:41 +0000)]
MFC: r264315, r264316

Fix Xref order in SEE ALSO.

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

10 years agoMFC r249803:
eadler [Wed, 16 Apr 2014 18:09:39 +0000 (18:09 +0000)]
MFC r249803:

Add support for Intel C600/X79 Series Chipset KT Controller.

PR: kern/177072

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

10 years agoMFC Pkg configuration, known public key, and pkg(7) changes to align with pkg(8)
bdrewery [Tue, 15 Apr 2014 23:40:47 +0000 (23:40 +0000)]
MFC Pkg configuration, known public key, and pkg(7) changes to align with pkg(8)

This partially merges:
    r229068,r237795,r252048,r257145,r257147,r257150,r257150,r257159,r257164,
    r257168,r257344,r257344,r257667,r257668,r258227,r258550,r263937,r264420

- etc/
  - Bring in current pkg configuration from head
  - Add /etc/pkg/ and /usr/share/keys to mtree
- share/keys
  - Bring in trusted key fingerprint from head
- share/man/man7
  - Document /usr/share/keys/pkg
- usr.sbin/pkg
  - No longer create pkg.conf as it is deprecated in pkg(8).
  - Show security warning when bootstrapping.
    * This is a direct commit as the signature verification is not being
      MFC'd due to being too large.

Discussed with: bapt, gjb

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

10 years agoDon't pass a timeout of 0 ticks to pause() for a delay of less than 1
jhb [Tue, 15 Apr 2014 15:58:06 +0000 (15:58 +0000)]
Don't pass a timeout of 0 ticks to pause() for a delay of less than 1
hz tick.  On 8.x this results in an infinite sleep as pause() does not
support a delay of 0 ticks.  Since all delay values are converted from
nanoseconds to ticks using a floor function, skipping the sleep for a
delay smaller than 1 tick is the more consistent than rounding up to a
single tick.

This is a direct commit to 8 and 9 as 10.x and later use pause_sbt()
instead.

Reviewed by: avg

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

10 years agoMFC r250243:
dteske [Sun, 13 Apr 2014 22:16:18 +0000 (22:16 +0000)]
MFC r250243:

If the kernel is compiled with VMIMAGE support, the first attempt of
mounting smbfs share will cause a panic. Fix setting/restoring vnet
context when needed.

PR: kern/168077
Submitted by: dteske

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

10 years agoMFC r264294:
hselasky [Fri, 11 Apr 2014 06:18:24 +0000 (06:18 +0000)]
MFC r264294:
Fix for infinite XHCI reset loops when the set address USB request fails.

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

10 years agoMFC r264084: make the Dresden Elektronik "USB Level Shifter Stick Low Cost"
joerg [Thu, 10 Apr 2014 22:10:29 +0000 (22:10 +0000)]
MFC r264084: make the Dresden Elektronik "USB Level Shifter Stick Low Cost"
known to the FTDI driver.

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

10 years agoMFC r264238:
dim [Thu, 10 Apr 2014 07:00:24 +0000 (07:00 +0000)]
MFC r264238:

For GNU as, add two missing modes for each of the fcomip and fucomip
instructions.  Partially obtained from OpenBSD by Pedro Giffuni, while I
added the fcomip variants.

Apparently this should help with compiling certain variants of WebKit.

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

10 years agoMFC r263778:
dim [Wed, 9 Apr 2014 18:16:58 +0000 (18:16 +0000)]
MFC r263778:

Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process
all the SUBDIR entries in parallel, instead of serially.  Apply this
option to a selected number of Makefiles, which can greatly speed up the
build on multi-core machines, when using make -j.

This can be extended to more Makefiles later on, whenever they are
verified to work correctly with parallel building.

I tested this on a 24-core machine, with make -j48 buildworld (N = 6):

before    stddev       after    stddev
=======   ======       =======  ======
real time        1741.1     16.5         959.8     2.7
user time       12468.7     16.4       14393.0    16.8
sys  time        1825.0     54.8        2110.6    22.8

(user+sys)/real     8.2                   17.1

E.g. the build was approximately 45% faster in real time.  On machines
with less cores, or with lower -j settings, the speedup will not be as
impressive.  But at least you can now almost max out a machine with
buildworld!

Submitted by: jilles

MFC r263833:

Enable parallel building for gnu/usr.bin and usr.bin/clang too.

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

10 years agoFix NFS deadlock vulnerability. [SA-14:05]
delphij [Tue, 8 Apr 2014 23:16:19 +0000 (23:16 +0000)]
Fix NFS deadlock vulnerability. [SA-14:05]

Fix ECDSA Cache Side-channel Attack in OpenSSL. [SA-14:06]

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

10 years agoMFC r263969,263971:
ae [Mon, 7 Apr 2014 12:59:30 +0000 (12:59 +0000)]
MFC r263969,263971:
  Don't generate an ICMPv6 error message if packet was consumed by filter.
  Remove unused label.

Sponsored by: Yandex LLC

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

10 years agoMFC r263966:
ae [Mon, 7 Apr 2014 12:51:41 +0000 (12:51 +0000)]
MFC r263966:
  Don't copy the MF flag from original IP header to ICMP error message.

PR: 188092
Sponsored by: Yandex LLC

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

10 years agoMFC of 263901, tzdata2014b
edwin [Sat, 29 Mar 2014 04:20:55 +0000 (04:20 +0000)]
MFC of 263901, tzdata2014b

 - Update antartica.
 - Comments about historical data for Hawaii.
 - Update details for Crimea on 30 March
 - Move location data Simferopol.

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

10 years agoMFC: r262484
brueffer [Thu, 27 Mar 2014 20:21:13 +0000 (20:21 +0000)]
MFC: r262484

In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR:             153801
Submitted by:   Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by:      Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by:  jhb, peter

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

10 years agoMFC: r263121
brueffer [Thu, 27 Mar 2014 20:15:35 +0000 (20:15 +0000)]
MFC: r263121

Re-format the license to conform to our BSD license template as much
as possible.  This does not change the wording in any way.

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.  While the
clause itself mentions Lawrence Berkeley Laboratory, UCB is the sole
copyright holder of this file.

Reviewed by:    imp, emaste, eadler

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

10 years agoMFC r263423:
hselasky [Thu, 27 Mar 2014 07:06:29 +0000 (07:06 +0000)]
MFC r263423:
Try to resolve a possible deadlock when detaching USB devices which
create character devices. The deadlock can happen if an application is
issuing IOCTLs which require USB refcounting, at the same time the USB
device is detaching.

There is already a counter in place in the USB device structure to
detect this situation, but it was not always checked ahead of invoking
functions that might destroy character devices, like detach, set
configuration, set alternate interface or detach active kernel driver.

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

10 years agoMFC r262501:
delphij [Thu, 27 Mar 2014 00:24:48 +0000 (00:24 +0000)]
MFC r262501:

Refresh our implementation of OpenBSD's Blowfish password format.

Notable changes:

 - Support of $2b$ password format to address a problem where very
   long passwords (more than 256 characters, when an integer
   overflow would happen and cause the length to wrap at 256).
 - Updated pseudo code in comments to reflect the reality.
 - Removed our local shortcut of processing magic string and rely
   on the centralized and tigntened validation.
 - Diff reduction from upstream.

For now we are still generating the older $2a$ format of password
but we will migrate to the new format once the format is formally
finalized.

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

10 years agoMFC r262991:
delphij [Wed, 26 Mar 2014 23:58:17 +0000 (23:58 +0000)]
MFC r262991:

Correct a typo in nlm_find_host_by_addr(): the intention of the
code is to give "<unknown>" rather than comparing the buffer
against it.

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

10 years agoTurn off warnings for building aicasm. Various versions of yacc exist,
dim [Sun, 23 Mar 2014 14:18:40 +0000 (14:18 +0000)]
Turn off warnings for building aicasm.  Various versions of yacc exist,
which can result in different warnings-as-errors in this tool, but these
are all completely harmless.

This is a direct commit to stable/7, stable/8, stable/9 and stable/10,
since this kernel build tool has already been removed in head.

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

10 years agoMFC: r262273
brueffer [Sun, 23 Mar 2014 13:06:27 +0000 (13:06 +0000)]
MFC: r262273

Further refine the auth fail regex to catch more auth failures and
reduce false positives.

The committed patch was provided by Christian Marg.

PR: 91732
Submitted by: Daniel O'Connor <doconnor at gsoft.com.au>
       Skye Poier <spoier at gmail.com>
       Alan Amesbury <amesbury at umn.edu>
       Christian Marg <marg at rz.tu-clausthal.de>

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

10 years agoMFC r263159:
hselasky [Sat, 22 Mar 2014 17:21:45 +0000 (17:21 +0000)]
MFC r263159:
Workaround for USB MIDI adapters which use non-supported values of
wMaxPacketSize for BULK endpoints.

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

10 years agoMFC r263155:
hselasky [Sat, 22 Mar 2014 17:14:08 +0000 (17:14 +0000)]
MFC r263155:
Add support for more sample rates to USB audio driver.

PR: usb/171254

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

10 years agoMFC 262999
edavis [Fri, 21 Mar 2014 23:41:21 +0000 (23:41 +0000)]
MFC 262999
Fixed MSI interrupt allocation and handling.
Fixed a DMA mapping leak that occurs when defragmenting packet chains.

Approved by: davidch (mentor)

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

10 years agoAdd Solaris's common/zfs to include search path.
delphij [Thu, 20 Mar 2014 00:46:25 +0000 (00:46 +0000)]
Add Solaris's common/zfs to include search path.

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

10 years agoMFC r260183:
delphij [Thu, 20 Mar 2014 00:38:46 +0000 (00:38 +0000)]
MFC r260183:

MFV r260154 + 260182:

4369 implement zfs bookmarks
4368 zfs send filesystems from readonly pools

Illumos/illumos-gate@78f171005391b928aaf1642b3206c534ed644332

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

10 years agoMFC r254755: MFV r254748:
delphij [Thu, 20 Mar 2014 00:32:26 +0000 (00:32 +0000)]
MFC r254755: MFV r254748:

Fix memory leak in libzfs's iter_dependents_cb().

Illumos ZFS issues:
  4061 libzfs: memory leak in iter_dependents_cb()

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

10 years agoMFC r259850: MFV r258384:
delphij [Thu, 20 Mar 2014 00:25:40 +0000 (00:25 +0000)]
MFC r259850: MFV r258384:

2583 Add -p (parsable) option to zfs list

illumos/illumos-gate@43d68d68c1ce08fb35026bebfb141af422e7082e

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

10 years agoMFC r256999 (smh):
delphij [Thu, 20 Mar 2014 00:14:45 +0000 (00:14 +0000)]
MFC r256999 (smh):

Added support for the 'zfs list -t snap' and 'zfs snap' aliases which are
available under Oracle Solaris 11.

This includes an update to the ZFS(8) man page to reflect all the
available alias (snap, umount, and recv).

Initial changes obtained from ZFS On Linux + fixes for man page and cmd
help:
https://github.com/zfsonlinux/zfs/commit/10b75496bb0cb7a7b8146c263164adc37f1d176a
https://github.com/zfsonlinux/zfs/commit/cf81b00a73fe47fdb21586ac1cc179b734540973

Obtained from:  https://github.com/zfsonlinux/zfs

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

10 years agoMFC r260181:
delphij [Thu, 20 Mar 2014 00:06:16 +0000 (00:06 +0000)]
MFC r260181:

Fix build on platforms where atomic_swap_64 is not available.

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

10 years agoMFC r260157: MFV r260153:
delphij [Thu, 20 Mar 2014 00:02:14 +0000 (00:02 +0000)]
MFC r260157: MFV r260153:

4121 vdev_label_init should treat request as succeeded when pool
     is read only

illumos/illumos-gate@973c78e94bf9634782164382c9e291bf81161fa5

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

10 years agoMFC r260150: MFV r259170:
delphij [Wed, 19 Mar 2014 23:58:05 +0000 (23:58 +0000)]
MFC r260150: MFV r259170:

4370 avoid transmitting holes during zfs send

4371 DMU code clean up

illumos/illumos-gate@43466aae47bfcd2ad9bf501faec8e75c08095e4f

NOTE: Make sure the boot code is updated if a zpool upgrade is
done on boot zpool.

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

10 years agoMFC r260141: MFV r258385:
delphij [Wed, 19 Mar 2014 23:51:29 +0000 (23:51 +0000)]
MFC r260141: MFV r258385:

(Note: this change is not applicable to FreeBSD and the file
is not included in build.  It's integrated for completeness).

4128 disks in zpools never go away when pulled

illumos/illumos-gate@39cddb10a31c1c2e66aed69e6871d09caa4c8147

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

10 years agoMFC r260138: MFV r242733:
delphij [Wed, 19 Mar 2014 23:46:59 +0000 (23:46 +0000)]
MFC r260138: MFV r242733:

3306 zdb should be able to issue reads in parallel
3321 'zpool reopen' command should be documented in the man page
and help message

illumos/illumos-gate@31d7e8fa33fae995f558673adb22641b5aa8b6e1

FreeBSD porting notes: the kernel part of this changeset depends
on Solaris buf(9S) interfaces and are not really applicable for
our use.  vdev_disk.c is patched as-is to reduce diverge from
upstream, but vdev_file.c is left intact.

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

10 years agoMFC r259813 + r259816: MFV r258374:
delphij [Wed, 19 Mar 2014 23:40:08 +0000 (23:40 +0000)]
MFC r259813 + r259816: MFV r258374:

4171 clean up spa_feature_*() interfaces

4172 implement extensible_dataset feature for use by other zpool
features

illumos/illumos-gate@2acef22db7808606888f8f92715629ff3ba555b9

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

10 years agoMFC r259811: MFV r258373:
delphij [Wed, 19 Mar 2014 23:31:47 +0000 (23:31 +0000)]
MFC r259811: MFV r258373:

4168 ztest assertion failure in dbuf_undirty

4169 verbatim import causes zdb to segfa
4170 zhack leaves pool in ACTIVE state

illumos/illumos-gate@7fdd916c474ea52896c671bbe7b56ba34a1ca132

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

10 years agoMFC r254587: MFV r254421:
delphij [Wed, 19 Mar 2014 23:22:25 +0000 (23:22 +0000)]
MFC r254587: MFV r254421:

Illumos ZFS issues:
  3996 want a libzfs_core API to rollback to latest snapshot

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

10 years agoMake it possible to call VOP_PUTPAGES with shared vnode lock instead
delphij [Wed, 19 Mar 2014 19:33:55 +0000 (19:33 +0000)]
Make it possible to call  VOP_PUTPAGES with shared vnode lock instead
of insisting an exclusive lock.

When VFS_LOCK_DEBUG is enabled and when the underlying file system is
capable of MNT_SHARED_WRITES,  a failed assertion may lead to a panic
because when calling fsync(2),  a.k.a.  sys_fsync() over a vnode with
mmap'ed page,  it will grab a shared lock when underlying file system
is capable,  then call vm_object_page_clean that eventually proceeded
to  vnode_pager_putpages()   that  tries  to do  VOP_PUTPAGES,  where
VOP_PUTPAGES_APV  generated from the declaration asserts the vnode is
always exclusively locked by caller.

This is a direct commit to stable/8 because a majority portion of the
original changeset 257899 (kib), which main goal was an optimization,
was omitted.   We saw the panic independently in a FreeNAS bug ticket
(#4578).

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

10 years agoMFC r257847, r260243: Update aacraid to version 3.2.5.
achim [Wed, 19 Mar 2014 10:20:13 +0000 (10:20 +0000)]
MFC r257847, r260243: Update aacraid to version 3.2.5.

Approved by: emaste (co-mentor)

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

10 years agoMFC r263021:
bdrewery [Wed, 19 Mar 2014 00:55:12 +0000 (00:55 +0000)]
MFC r263021:

  Support Last-Modified behind proxies which return UTC instead of GMT.

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

10 years agoMFC r249562:
delphij [Tue, 18 Mar 2014 20:05:55 +0000 (20:05 +0000)]
MFC r249562:

Fix incomplete printf.

PR: kern/177889
Submitted by: Sven-Thorsten Dietrich <sven vyatta com>

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