]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
9 years agoMFC r268929:
hselasky [Tue, 29 Jul 2014 22:07:52 +0000 (22:07 +0000)]
MFC r268929:
Add new device ID.

PR: 191959

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

9 years agoMFC r269127:
hselasky [Tue, 29 Jul 2014 22:02:27 +0000 (22:02 +0000)]
MFC r269127:
Fix for division by zero.

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

9 years agoMFC: r269050 (partial)
marius [Tue, 29 Jul 2014 13:08:56 +0000 (13:08 +0000)]
MFC: r269050 (partial)

Copying and zeroing pages via temporary mappings involves updating the
corresponding page tables followed by accesses to the pages in question.
This sequence is subject to the situation exactly described in the "AMD64
Architecture Programmer's Manual Volume 2: System Programming" rev. 3.23,
"7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore, issuing
the INVLPG right after modifying the PTE bits is crucial.
For pmap_copy_page(), this has been broken in r124956.

1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf

Reviewed by: alc, kib
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r268979:
delphij [Tue, 29 Jul 2014 06:00:48 +0000 (06:00 +0000)]
MFC r268979:

Don't save entropy inside jails.

As of r126744, we no longer feed the entropy device in jails upon
start, and collecting them is no longer useful.

PR: conf/126744
Submitted by: Eugene Grosbein <eugen grosbein net> (with minor changes)
Approved by: so (des)

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

9 years agoMFC r268373
truckman [Sun, 20 Jul 2014 06:03:52 +0000 (06:03 +0000)]
MFC r268373

Declaration whitespace changes for style(9).

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

9 years agoMFC r268735:
hselasky [Sat, 19 Jul 2014 19:58:26 +0000 (19:58 +0000)]
MFC r268735:
Improve support for Intel Lynx Point USB 3.0 controllers by using the
USB 2.0 port mask in addition to the USB 3.0 port mask. The hardware
does not always accept when writing -1U to the port switching
registers.

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

9 years agoMFC r268583:
hselasky [Wed, 16 Jul 2014 06:25:44 +0000 (06:25 +0000)]
MFC r268583:
Turn off blinking device leds at attach.

PR: 183735

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

9 years agoMFC 255284:
jhb [Tue, 15 Jul 2014 19:18:46 +0000 (19:18 +0000)]
MFC 255284:
It was reported via email that the cu_sent field used by the
krpc client side UDP was observed as way out of range and
caused the rpc.lockd daemon to hang trying to do an RPC.
Inspection of the code found two places where the RPC request
is re-queued, but the value of cu_sent was not incremented.
Since cu_sent is always decremented when the RPC request is
dequeued, I think this could have caused cu_sent to go out of
range. This patch adds lines to increment cu_sent for these
two cases.

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

9 years agoMFC r268354:
hselasky [Mon, 14 Jul 2014 07:27:10 +0000 (07:27 +0000)]
MFC r268354:
Improve support for Intel Lynx Point USB 3.0 controllers by masking
the port routing bits like done in Linux.

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

9 years agoBump __FreeBSD_version after SA-14:17.kmem so we have something
peter [Wed, 9 Jul 2014 00:12:56 +0000 (00:12 +0000)]
Bump __FreeBSD_version after SA-14:17.kmem so we have something
to test against in the freebsd.org cluster.

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

9 years agoFix kernel memory disclosure in control message and SCTP notifications.
delphij [Tue, 8 Jul 2014 21:54:50 +0000 (21:54 +0000)]
Fix kernel memory disclosure in control message and SCTP notifications.

Security: FreeBSD-SA-14:17.kmem
Security: CVE-2014-3952, CVE-2014-3953

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

9 years agoRevert r268415.
brooks [Tue, 8 Jul 2014 19:15:32 +0000 (19:15 +0000)]
Revert r268415.

I botched testing and a large set of changes needs to be applied for this to
work.

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

9 years agoMFC r223930:
brooks [Tue, 8 Jul 2014 15:30:05 +0000 (15:30 +0000)]
MFC r223930:

Remove include of sys/sbuf.h from geom/geom.h.
sbuf support is not always required for geom/geom.h users, and no need to
depend from it.

PR: 158398

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

9 years agoMFC: r268095
marius [Fri, 4 Jul 2014 14:00:29 +0000 (14:00 +0000)]
MFC: r268095

Actually pro AMD chipsets, making r244146 (MFCed to stable/8 in r245801) work.

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r266814
truckman [Thu, 3 Jul 2014 17:57:12 +0000 (17:57 +0000)]
MFC r266814

Initialize r_flags the same way in all cases using a sanitized copy of
flags that has several bits cleared. The RF_WANTED and RF_FIRSTSHARE
bits are invalid in this context, and we want to defer setting RF_ACTIVE
in r_flags until later.  This should make rman_get_flags() return
the correct answer in all cases.

Add a KASSERT() to catch callers which incorrectly pass the RF_WANTED
or RF_FIRSTSHARE flags.

Do a strict equality check on the share type bits of flags.  In
particular, do an equality check on RF_PREFETCHABLE.  The previous
code would allow one type of mismatch of RF_PREFETCHABLE but disallow
the other type of mismatch.  Also, ignore the the RF_ALIGNMENT_MASK
bits since alignment validity should be handled by the amask check.
This field contains an integer value, but previous code did a strange
bitwise comparison on it.

Leave the original value of flags unmolested as a minor debug aid.

Change the start+amask overflow check to a KASSERT() since it is just
meant to catch a highly unlikely programming error in the caller.

Reviewed by: jhb

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

9 years agoMFC r243080:
bdrewery [Wed, 2 Jul 2014 19:18:59 +0000 (19:18 +0000)]
MFC r243080:

  Only pass ip[46].addr when _addrl contains a value

Partial MFC r204759:

  Redirect stdin from /dev/null when starting a jail:
    At least in RELENG_7 this fixes some start problems for some programs
    from the ports. It is also more correct, as a jail shall not expect
    input (interactivity) from the jail-host.

PR: 180916

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

9 years agoMFC r267372-267374: fix various misimplementation of instructions.
delphij [Tue, 1 Jul 2014 16:01:48 +0000 (16:01 +0000)]
MFC r267372-267374: fix various misimplementation of instructions.

Submitted by: Wolf Ramovsky <wolf.ramovsky gmail.com>

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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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