]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
9 years agoMFC 266296:
jhb [Fri, 27 Jun 2014 19:50:30 +0000 (19:50 +0000)]
MFC 266296:
Correct some minor nits in the per-thread signal format description such
as missing posessives and misordering of fields.

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

9 years agoMFC: r224269
marius [Fri, 27 Jun 2014 13:19:03 +0000 (13:19 +0000)]
MFC: r224269

Add missing XHCI early takeover code. The XHCI takeover code
is supposed to disable the BIOS from using the XHCI controller
after bootup.

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

9 years agoMFC 253392:
jhb [Tue, 24 Jun 2014 19:58:42 +0000 (19:58 +0000)]
MFC 253392:
Workaround some broken BIOSes that specify edge-sensitive but active-low
settings for ACPI-enumerated serial ports by forcing any IRQs that use
an ISA IRQ value with these settings to active-high instead of active-low.

This is known to occur with the BIOS on an Intel D2500CCE motherboard.

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

9 years agoFix multiple vulnerabilities in file(1) and libmagic(3).
delphij [Tue, 24 Jun 2014 19:04:55 +0000 (19:04 +0000)]
Fix multiple vulnerabilities in file(1) and libmagic(3).

Security: FreeBSD-SA-14:16.file
Approved by: so

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

9 years agoMFC: r220871
marius [Wed, 18 Jun 2014 10:56:59 +0000 (10:56 +0000)]
MFC: r220871

Correctly output the entire array for hw.acpi.thermal._ACx.

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

9 years agoMFC: r220798
marius [Wed, 18 Jun 2014 10:38:29 +0000 (10:38 +0000)]
MFC: r220798

Fix a few acpi sysctls that want "IK" formatting to specify CTLTYPE_INT.

MFC: r245266

Remove not very useful printf, that can be too chatty.

MFC: r255077

Warn about insane _TMP temperature only once.

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

9 years agoMFC of i267473,tzdata2014e
edwin [Sat, 14 Jun 2014 11:37:53 +0000 (11:37 +0000)]
MFC of i267473,tzdata2014e

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.

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

9 years agoSync with 2014060201 which adds IPv6 to b.root-servers.net
erwin [Fri, 13 Jun 2014 07:23:46 +0000 (07:23 +0000)]
Sync with 2014060201 which adds IPv6 to b.root-servers.net

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@267434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r227519, r227520:
delphij [Thu, 12 Jun 2014 00:19:05 +0000 (00:19 +0000)]
MFC r227519, r227520:

r227519 (das)

Sync the style, comments, and variable names of arc4random.c with
OpenBSD's version (r1.22).  No functional changes, as verified with
md5.

r227520 (das)

Further reduce diffs with OpenBSD's arc4random.  The main functional
change here is to ensure that when a process forks after arc4random
is seeded, the parent and child don't observe the same random sequence.
OpenBSD's fix introduces some additional overhead in the form of a
getpid() call.

The only significant remaining difference between our arc4random and
OpenBSD's is in how we seed the generator in arc4_stir().

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

9 years agoMFC r267240:
hselasky [Wed, 11 Jun 2014 05:45:48 +0000 (05:45 +0000)]
MFC r267240:
Resolve a deadlock setting the USB configuration index from userspace
on USB HUBs by moving the code into the USB explore threads. The
deadlock happens because child devices of the USB HUB don't have the
expected reference count when called from outside the explore
thread. Only the HUB device itself, which the IOCTL interface locks,
gets the correct reference count.

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

9 years agoCorrect OpenSSL 0.9.8za release date.
jkim [Mon, 9 Jun 2014 17:03:16 +0000 (17:03 +0000)]
Correct OpenSSL 0.9.8za release date.

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

9 years agoMerge OpenSSL 0.9.8za.
jkim [Mon, 9 Jun 2014 06:03:38 +0000 (06:03 +0000)]
Merge OpenSSL 0.9.8za.

Approved by: so (delphij)

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

9 years agoMFC r266463:
bdrewery [Thu, 5 Jun 2014 15:39:54 +0000 (15:39 +0000)]
MFC r266463:

  - Include /etc/newsyslog.conf.d/* and /usr/local/etc/newsyslog.conf.d/* by
    default for newsyslog(8).

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

9 years agoMFC: r266793, r266799, r266808
marius [Thu, 5 Jun 2014 13:24:12 +0000 (13:24 +0000)]
MFC: r266793, r266799, r266808

- Fix compilation with PAE support enabled by merging r233362 and, thus,
  doing away with the unnecessary uint8_t pointer casting.
  physical addresses.
- Nuke the unused softc of emujoy(4).
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoFix OpenSSL multiple vulnerabilities.
delphij [Thu, 5 Jun 2014 12:32:38 +0000 (12:32 +0000)]
Fix OpenSSL multiple vulnerabilities.

Security: CVE-2014-0195, CVE-2014-0221, CVE-2014-0224,
CVE-2014-3470
Security: SA-14:14.openssl

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

9 years agoMFC r266538:
mav [Thu, 5 Jun 2014 06:00:08 +0000 (06:00 +0000)]
MFC r266538:
Make ng_mppc to not disable the node in case of multiple packet loss.
Quite often it can be just packet reorder, and killing link in such case
is inconvenient.  Add few sysctl's to control that behavior.

PR: kern/182212
Submitted by: Eugene Grosbein <egrosbein@rdtc.ru>

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

9 years agoMFC r266846:
kib [Thu, 5 Jun 2014 00:50:55 +0000 (00:50 +0000)]
MFC r266846:
When usermode loaded non-default segment selector into the %gs,
correctly prepare KGSBASE msr to restore the user descriptor base on
the last swapgs during return to usermode.

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

9 years agoMFC 266281:
jhb [Wed, 4 Jun 2014 18:22:34 +0000 (18:22 +0000)]
MFC 266281:
Clear the data buffer length field when freeing a command structure so that
it doesn't leak through when the command structure is reused for a user
command without a data buffer.

PR: 189668

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

9 years agoMFC r266664:
hselasky [Wed, 4 Jun 2014 10:42:04 +0000 (10:42 +0000)]
MFC r266664:
Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API
from sourceforge.

PR: usb/190204

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

9 years agoMFC r266798 and r266803:
hselasky [Wed, 4 Jun 2014 10:36:02 +0000 (10:36 +0000)]
MFC r266798 and r266803:
Fix for big-endian architectures.

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

9 years agoFix ktrace memory disclosure. [SA-14:12]
delphij [Tue, 3 Jun 2014 19:02:42 +0000 (19:02 +0000)]
Fix ktrace memory disclosure. [SA-14:12]

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

9 years agoMFC r265995:
delphij [Wed, 28 May 2014 18:53:10 +0000 (18:53 +0000)]
MFC r265995:

Switch using the new $2b$ format by default, when bcrypt is used.

Relnotes: default Blowfish crypt(3) format have been changed to $2b$.

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

9 years agoMFC r266483:
marck [Wed, 28 May 2014 15:24:30 +0000 (15:24 +0000)]
MFC r266483:

Document VMware-related filesystems additions.

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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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