]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC r271695:
markj [Fri, 5 Dec 2014 18:55:32 +0000 (18:55 +0000)]
MFC r271695:
Fix some incorrect endianness checks.

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

9 years agoMFstable/10 r275501:
ngie [Fri, 5 Dec 2014 11:58:32 +0000 (11:58 +0000)]
MFstable/10 r275501:

  MFC r271796 (by will):

    Use 'cc' for the C compiler instead of 'gcc'.

    Sponsored by: Spectra Logic
    MFSpectraBSD: 1079507 on 2014/07/24

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

9 years agoAdd missing VT_ kernel config knobs
emaste [Thu, 4 Dec 2014 22:15:22 +0000 (22:15 +0000)]
Add missing VT_ kernel config knobs

MFC of r268059

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

9 years agoMFC r275366:
dim [Thu, 4 Dec 2014 01:21:56 +0000 (01:21 +0000)]
MFC r275366:

Pull in r209785 from upstream libc++ trunk (by Marshall Clow):

  Fix a problem exposed by r208825, which caused bind (and other bits of
  libc++) to stop working. And tests

This fix is needed to support clang 3.5.0 and higher, which are more
strict about forming pointer-to-function types with cv-qualifiers or
ref-qualifiers.  See also the upstream PR <http://llvm.org/PR19742> and
<http://llvm.org/viewvc/llvm-project?rev=208825&view=rev>

Reported by: amdmi3

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

9 years agoMFC r274922:
dim [Thu, 4 Dec 2014 01:10:50 +0000 (01:10 +0000)]
MFC r274922:

Fix the following -Werror warning from clang 3.5.0, while building the
ath kernel module:

sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) {
                    ^
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' since unsigned values cannot be negative
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
1 error generated.

This warning occurs because both lp[0] and target are unsigned, so the
subtraction expression is also unsigned, and calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D1212

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

9 years agoMFC r273488:
markj [Wed, 3 Dec 2014 19:44:24 +0000 (19:44 +0000)]
MFC r273488:
Fix some bugs in the error handling of getdevice().

PR: 194506

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

9 years agoMFC r275110:
hselasky [Wed, 3 Dec 2014 09:16:02 +0000 (09:16 +0000)]
MFC r275110:
Add new USB quirk.

PR: 195372

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

9 years agoMFC r275328 and r275330:
hselasky [Wed, 3 Dec 2014 09:10:41 +0000 (09:10 +0000)]
MFC r275328 and r275330:
Add missing libraries when linking and fix building of some infiniband
utilities by updating some header file locations and compiler include
directives.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r275101:
mav [Wed, 3 Dec 2014 07:02:48 +0000 (07:02 +0000)]
MFC r275101:
Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.

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

9 years agoMFC r258170:
mav [Wed, 3 Dec 2014 07:00:25 +0000 (07:00 +0000)]
MFC r258170:
Add some more Intel HDA controller IDs and rename HDMI CODEC to Haswell.

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

9 years agoMFC r258168: Add ID for Intel Lynx Point HDMI CODEC.
mav [Wed, 3 Dec 2014 06:59:00 +0000 (06:59 +0000)]
MFC r258168: Add ID for Intel Lynx Point HDMI CODEC.

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

9 years agoMFC r274806:
brooks [Tue, 2 Dec 2014 20:23:10 +0000 (20:23 +0000)]
MFC r274806:

Add a guard against attempting to invoke the buildenv target with -j# as
that silently exits rather than doing something useful.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r274918:
hselasky [Mon, 1 Dec 2014 07:36:00 +0000 (07:36 +0000)]
MFC r274918:
Don't use the synchronization endpoint unless referenced by the
isochronous endpoint descriptor used for the data transfers, hence the
synchronization feature might not be supposed to be supported [yet].
This makes seamless playback synced with the USB HOST clock work with
the DN32-USB module for Midas audio systems and possibly other similar
products from Klark Teknik.

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

9 years agoMFC r275162:
kevlo [Mon, 1 Dec 2014 03:01:01 +0000 (03:01 +0000)]
MFC r275162:
Init array field in the proper place.

Obtained from: OpenBSD

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

9 years agoMFC r274325:
bryanv [Sat, 29 Nov 2014 23:10:19 +0000 (23:10 +0000)]
MFC r274325:

  Enable LRO by default when available on vtnet interfaces

  The prior change to not enable LRO by default has confused several
  people. The configurations where LRO is problematic is not the
  typical use case for VirtIO, and due to other issues, this often
  requires checksum offloading to be disabled anyways.

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

9 years agoMFC r274017, r274088 and r275205:
hselasky [Sat, 29 Nov 2014 05:08:29 +0000 (05:08 +0000)]
MFC r274017, r274088 and r275205:

Provide an on-stack temporary buffer for small IOCTL requests.
Avoiding a memory allocation per IOCTL request can give a significant
speedup for applications which heavily rely on IOCTLs.

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

9 years agoMFC r275109:
hselasky [Sat, 29 Nov 2014 04:21:40 +0000 (04:21 +0000)]
MFC r275109:
Add support for 64-byte CQE size.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r273774:
hselasky [Wed, 26 Nov 2014 09:43:31 +0000 (09:43 +0000)]
MFC r273774:
Make some infiniband example utilities easily buildable:
- Add new Makefiles.
- Add more include directories when building.
- Fixed a printf() formatting string.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274724:
np [Wed, 26 Nov 2014 00:47:36 +0000 (00:47 +0000)]
MFC r274724:
cxgbe(4): figure out the max payload size and save it for later.

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

9 years agoRevert revisions 275047, 275051, and 275056.
dteske [Tue, 25 Nov 2014 22:16:43 +0000 (22:16 +0000)]
Revert revisions 275047, 275051, and 275056.
Oops, dpv(1,3) requires dialog-1.2-20130923 or higher (which I
introduced to HEAD via r255852 prior to the creation of the
stable/10 branch; however it never got merged to stable/9 so
we can't have dpv in stable/9).

Brief summary of reverted revisions:
r275047: Add dpv(1,3)/figpar(3)
r275051: Fixes
r275056: Enable compilation of dpv(1,3)

Pointy-hat: me

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

9 years agoSimilar to r274192: Enable dpv(1,3): Introduced [disabled] via r275047.
dteske [Tue, 25 Nov 2014 17:08:15 +0000 (17:08 +0000)]
Similar to r274192: Enable dpv(1,3): Introduced [disabled] via r275047.
This is a direct commit to stable/9 because stable/10 and above use a
better dependency calculation routine (versus simple ordering).

Thanks to: ngie, ian, jelischer, shurd, bapt

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

9 years agoMFC r274120, r274121, r274123, r274146, r274192, r274203, r274209,
dteske [Tue, 25 Nov 2014 16:45:40 +0000 (16:45 +0000)]
MFC r274120, r274121, r274123, r274146, r274192, r274203, r274209,
r274226, r274270, and r274851: dpv(1,3)/figpar(3) fixes after r275047

Thanks to: ngie, ian, jelischer, shurd, bapt

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

9 years agoMFC r274116:
dteske [Tue, 25 Nov 2014 15:49:51 +0000 (15:49 +0000)]
MFC r274116:

Add new libraries/utilities for data throughput visualization.
dpv(3): dialog progress view library
dpv(1): stream data from stdin or multiple paths with dialog progress view
figpar(3): configuration file parsing library

MFC r274124: Temporarily _disable_ compilation of dpv(1,3)

NB: MFC broken into two halves (first half to bring in the new dirs so
mergeinfo can be properly recorded on them -- the second half of MFC).

Reviews:        D714
Relnotes:       New libdpv/libfigpar and dpv(1) utility
Reviewed by:    jelischer, shurd
Discussed at:   MeetBSD California 2014 Vendor/Dev Summit
Discussed on:   -current
Thanks to:      ngie, ian, jelischer, shurd, bapt

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

9 years agoMFC r274900:
dim [Tue, 25 Nov 2014 13:29:13 +0000 (13:29 +0000)]
MFC r274900:

Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

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

9 years agoMFC r274898:
dim [Tue, 25 Nov 2014 13:12:45 +0000 (13:12 +0000)]
MFC r274898:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.sbin/rtadvd:

usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^~~
usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^~~
2 errors generated.

These warnings occur because both preferred_time and pfx_pltimeexpire
are uint32_t's, so the subtraction expression is also unsigned, and
calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D1197

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

9 years agoMFC r274856:
dim [Tue, 25 Nov 2014 12:58:21 +0000 (12:58 +0000)]
MFC r274856:

Avoid undefined behaviour in gas's rotate_left() macro for n == 0.
Otherwise, clang can effectively remove the first iteration of the for
loops where this macro is invoked, and as a result, "cmp r0, #99" fails
to assemble.

Obtained from: joerg at netbsd

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

9 years agoMFC r274847:
dim [Tue, 25 Nov 2014 12:45:31 +0000 (12:45 +0000)]
MFC r274847:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.bin/locate:

usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^
usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^~~
usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^
usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^~~

The problem is that ntohl() always returns an unsigned quantity.  In
this case, it's expected to be cast back to a signed integer, but to
stop complaints about abs() we just store it into an integer, and don't
call ntohl() again.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1196

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

9 years agoMFC r274846:
dim [Tue, 25 Nov 2014 12:19:05 +0000 (12:19 +0000)]
MFC r274846:

Fix the following -Werror warning from clang 3.5.0, while building
usr.bin/cpio on amd64 (or any arch with 64-bit time_t):

contrib/libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
if (abs(mtime - now) > (365/2)*86400)
    ^
contrib/libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead
if (abs(mtime - now) > (365/2)*86400)
    ^~~
    labs
1 error generated.

This is because time_t is a long on amd64. To avoid the warning, just
copy the equivalent test from a few lines before, which is used in the
Windows case, and which is type safe.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D1198

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

9 years agoMFC r273760:
kevlo [Mon, 24 Nov 2014 01:59:08 +0000 (01:59 +0000)]
MFC r273760:
Fix prototypes.

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

9 years agoMFC r274477: Fix check for vendor-specific peripheral qualifier.
mav [Thu, 20 Nov 2014 01:51:54 +0000 (01:51 +0000)]
MFC r274477: Fix check for vendor-specific peripheral qualifier.

Submitted by: anton.rang@isilon.com

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

9 years agoMFC r274376:
hselasky [Wed, 19 Nov 2014 09:07:49 +0000 (09:07 +0000)]
MFC r274376:
Fix some minor TSO issues:
- Improve description of TSO limits.
- Remove a not needed KASSERT()
- Remove some not needed variable casts.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274435:
hselasky [Wed, 19 Nov 2014 08:55:07 +0000 (08:55 +0000)]
MFC r274435:
Decode more fields when dumping USB descriptors.
- Some minor style changes while at it.

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

9 years agoMFC r274227:
hselasky [Wed, 19 Nov 2014 08:51:15 +0000 (08:51 +0000)]
MFC r274227:
Add new USB IDs.

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

9 years agoMFC r274442:
dim [Wed, 19 Nov 2014 07:24:43 +0000 (07:24 +0000)]
MFC r274442:

Pull in r221709 from upstream llvm trunk (by Frédéric Riss):

  Totally forget deallocated SDNodes in SDDbgInfo.

  What would happen before that commit is that the SDDbgValues associated with
  a deallocated SDNode would be marked Invalidated, but SDDbgInfo would keep
  a map entry keyed by the SDNode pointer pointing to this list of invalidated
  SDDbgNodes. As the memory gets reused, the list might get wrongly associated
  with another new SDNode. As the SDDbgValues are cloned when they are transfered,
  this can lead to an exponential number of SDDbgValues being produced during
  DAGCombine like in http://llvm.org/bugs/show_bug.cgi?id=20893

  Note that the previous behavior wasn't really buggy as the invalidation made
  sure that the SDDbgValues won't be used. This commit can be considered a
  memory optimization and as such is really hard to validate in a unit-test.

This should fix abnormally large memory usage and resulting OOM crashes
when compiling certain ports with debug information.

Reported by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Upstream PRs: http://llvm.org/PR19031 http://llvm.org/PR20893

MFC r274483:

The fix imported into llvm in r274442 contains some C++11 constructs,
which gcc in base cannot handle.  Replace these with C++98 equivalents.

While here, add the patch for the adapted fix.

Reported by: bz, kib
Pointy hat to: dim

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

9 years agoMFC r272708: l2arc_write_buffers: reduce headroom value
avg [Mon, 17 Nov 2014 13:29:58 +0000 (13:29 +0000)]
MFC r272708: l2arc_write_buffers: reduce headroom value

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

9 years agoMFC r272701: make userland __assfail from opensolaris compat honor 'aok' variable
avg [Mon, 17 Nov 2014 13:26:28 +0000 (13:26 +0000)]
MFC r272701: make userland __assfail from opensolaris compat honor 'aok' variable

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

9 years agoMFC r273360:
np [Mon, 17 Nov 2014 07:37:56 +0000 (07:37 +0000)]
MFC r273360:

One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.

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

9 years agoMFC r274351:
np [Mon, 17 Nov 2014 07:20:33 +0000 (07:20 +0000)]
MFC r274351:

cxgbe(4): adjust PMRX and PMTX parameters.

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

9 years agoMFC of 274559,tzdata9:
edwin [Sun, 16 Nov 2014 04:11:37 +0000 (04:11 +0000)]
MFC of 274559,tzdata9:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.

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

9 years agoMFC r273627,r273628:
ngie [Sat, 15 Nov 2014 05:35:24 +0000 (05:35 +0000)]
MFC r273627,r273628:

r273627:

  - Print out "Bail out!" in die(..) so prove terminates immediately
  - Handle the output from newer versions of openssl md5, similar to what
    pjd@ did in r248304

  Sponsored by: EMC / Isilon Storage Division

r273628:

  Move the redirection to stderr out of the cmd variable assignment

  Putting 2>/dev/null in cmd= escapes the redirection operation, which causes
  mdconfig to think it's a filename

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r273615:
np [Wed, 12 Nov 2014 20:26:22 +0000 (20:26 +0000)]
MFC r273615:

cxgbe(4): bump up PF4's share of some global resources.

This increases the size of the per-port RSS slice and also allows the
driver to use a larger number of tx and rx queues.

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

9 years agoMFC r273280:
np [Wed, 12 Nov 2014 20:09:20 +0000 (20:09 +0000)]
MFC r273280:

cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.

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

9 years agoMFC r272190:
np [Wed, 12 Nov 2014 19:56:51 +0000 (19:56 +0000)]
MFC r272190:

cxgbe(4): explicitly set various if_hw_tso* values.

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

9 years agoMFC r274286:
dim [Tue, 11 Nov 2014 08:00:49 +0000 (08:00 +0000)]
MFC r274286:

Pull in r201784 from upstream llvm trunk (by Benjamin Kramer):

  AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.

  There is code in the wild that relies on $0 not being expanded.

This fixes some cases of using $ signs in literals being incorrectly
assembled.

Reported by: Richard Henderson
Upstream PR: http://llvm.org/PR21500

MFC r274294:

Add llvm patch corresponding to r274286.

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

9 years agoMFC r273855:
ae [Thu, 6 Nov 2014 16:31:48 +0000 (16:31 +0000)]
MFC r273855:
  Fix mbuf leak in IPv6 multicast code.
  When multicast capable interface goes away, it leaves multicast groups,
  this leads to generate MLD reports, but MLD code does deffered send and
  MLD reports are queued in the in6_multi's in6m_scq ifq. The problem is
  that in6_multi structures are freed when interface leaves multicast groups
  and thread that does deffered send will not take these queued packets.

  PR: 194577

MFC r273857:
  Move ifq drain into in6m_purge().

  Suggested by: bms
Sponsored by: Yandex LLC

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

9 years agoBump __FreeBSD_version after SA-14:23, SA-14:24,
gjb [Thu, 6 Nov 2014 02:41:38 +0000 (02:41 +0000)]
Bump __FreeBSD_version after SA-14:23, SA-14:24,
SA-14:25.

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

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

9 years agoDocument SA-14:25, SA-14:26
gjb [Thu, 6 Nov 2014 02:23:01 +0000 (02:23 +0000)]
Document SA-14:25, SA-14:26

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

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

9 years agoMFC r273342:
markj [Thu, 6 Nov 2014 01:34:44 +0000 (01:34 +0000)]
MFC r273342:
Fix a typo from r189544, which replaced unp_global_rwlock with unp_list_lock
and unp_link_rwlock.

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

9 years agoMFC r273236:
markj [Thu, 6 Nov 2014 01:30:15 +0000 (01:30 +0000)]
MFC r273236:
Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is
consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy
PMCs if a process exits or execs without explicitly releasing them.

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

9 years agoMFC: r273486
rmacklem [Wed, 5 Nov 2014 23:57:33 +0000 (23:57 +0000)]
MFC: r273486
Clip the settings for the NFS rsize, wsize mount options
to a power of 2. For non-power of 2 settings, intermittent
page faults have been reported. Although the bug that causes
these page faults/crashes has not been identified, it does
not appear to occur when rsize, wsize is a power of 2.

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

9 years agoMFC r271992
lwhsu [Wed, 5 Nov 2014 16:26:23 +0000 (16:26 +0000)]
MFC r271992

  Reflect the chanages in sleepqueue.h and subr_sleepqueue.c
  - Priority argument is introduced to sleepq_*wait* in r177085
  - sleepq_calc_signal_retval is removed from implementation
  - sleepq_catch_signals is internal now

MFC r272475

  - Bump .Dd

Approved by:  kevlo

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

9 years agoRevert r273860. It breaks IPSEC in tunnel mode and needs more revisions to
ae [Wed, 5 Nov 2014 09:33:02 +0000 (09:33 +0000)]
Revert r273860. It breaks IPSEC in tunnel mode and needs more revisions to
be merged before it will work as expected.

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

9 years ago[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
des [Tue, 4 Nov 2014 23:30:47 +0000 (23:30 +0000)]
[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
[SA-14:26] Fix remote command execution in ftp(1).

Approved by: so (des)

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

9 years agoMFC r271946 and r272595:
hselasky [Mon, 3 Nov 2014 12:38:41 +0000 (12:38 +0000)]
MFC r271946 and r272595:
Improve transmit sending offload, TSO, algorithm in general. This
change allows all HCAs from Mellanox Technologies to function properly
when TSO is enabled. See r271946 and r272595 for more details about
this commit.

Sponsored by: Mellanox Technologies

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

9 years agoMFC: r272258 (partial)
nyan [Mon, 3 Nov 2014 11:43:39 +0000 (11:43 +0000)]
MFC: r272258 (partial)
  - Reduce diffs against i386.

MFC: r272259
  MFi386: Enable QUOTA, PRINTF_BUFR_SIZE and puc.

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

9 years agoMFC: r272252
nyan [Mon, 3 Nov 2014 10:38:22 +0000 (10:38 +0000)]
MFC: r272252

  Drop the 3rd clause from all 3 clause BSD licenses.

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

9 years agoMFC: r272248
nyan [Mon, 3 Nov 2014 10:27:03 +0000 (10:27 +0000)]
MFC: r272248

  - Cleanups pc98 code.
  - Remove unworked formats.

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

9 years agoMFC: r272245
nyan [Mon, 3 Nov 2014 06:34:08 +0000 (06:34 +0000)]
MFC: r272245

  Remove duplicate prog.

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

9 years agoMFC: r272243
nyan [Mon, 3 Nov 2014 05:36:12 +0000 (05:36 +0000)]
MFC: r272243

  Add missing library dependencies.

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

9 years agoMFC 273834:
jhb [Mon, 3 Nov 2014 00:13:20 +0000 (00:13 +0000)]
MFC 273834:
Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

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

9 years agoMFC 273644,273738:
jhb [Sun, 2 Nov 2014 23:22:22 +0000 (23:22 +0000)]
MFC 273644,273738:
Clarify that pthread_cleanup_push()/pop() are implemented as macros that
create a new code block and thus must be balanced at the same lexical
scope.  (This is also a requirement in POSIX.)

PR: 194280
Submitted by: dr2867.business@pacbell.net

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

9 years agoMFC r273837:
dim [Sat, 1 Nov 2014 13:45:01 +0000 (13:45 +0000)]
MFC r273837:

Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by: kib

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

9 years agoMFC r273733, r273740 and r273773:
hselasky [Fri, 31 Oct 2014 18:53:16 +0000 (18:53 +0000)]
MFC r273733, r273740 and r273773:

The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r271975:
hselasky [Fri, 31 Oct 2014 18:42:56 +0000 (18:42 +0000)]
MFC r271975:
Improvements to asmc(4):

1. changed the code so that 2**16 keys are supported
2. changed the number of possible fans in a system from 2 to 6
3. added write support for some fan sysctls
4. added a new sysctl which shows the ID of the fan
5. added four more apple models with their temperature keys
6. changed the maxnumber of temperature keys from 36 to 80
7. replaced several fixed buf sizes to sizeof buf

Obtained from:      Denis Ahrens denis at h3q.com

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

9 years agoMFC r228478, r263710, r273377, r273378, r273423, r273455 and r273899:
hselasky [Fri, 31 Oct 2014 18:18:04 +0000 (18:18 +0000)]
MFC r228478, r263710, r273377, r273378, r273423, r273455 and r273899:
- Reimplement CTASSERT() using _Static_assert().
- De-vnet hash sizes and hash masks.
- Fix multiple issues related to arguments passed to SYSCTL macros.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r264801, r264802, r264934, r273181, r273216 and r273252:
hselasky [Fri, 31 Oct 2014 08:14:13 +0000 (08:14 +0000)]
MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.

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

9 years agoMFC r269575, r269576 and r269578:
hselasky [Fri, 31 Oct 2014 08:12:04 +0000 (08:12 +0000)]
MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR: 145319

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

9 years agoMFC r250986:
hselasky [Fri, 31 Oct 2014 08:10:26 +0000 (08:10 +0000)]
MFC r250986:
Fix some statical clang analyzer warnings.

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

9 years agoMFC r246360:
hselasky [Fri, 31 Oct 2014 08:06:21 +0000 (08:06 +0000)]
MFC r246360:
Fix some nits.

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

9 years agoMFC r264923:
hselasky [Fri, 31 Oct 2014 08:00:22 +0000 (08:00 +0000)]
MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.

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

9 years agoMFC r269569:
hselasky [Fri, 31 Oct 2014 07:59:07 +0000 (07:59 +0000)]
MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR: 145319

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

9 years agoMFC r273593:
hselasky [Fri, 31 Oct 2014 07:18:27 +0000 (07:18 +0000)]
MFC r273593:

Update the network interface baudrate integer according to the actual
line rate.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r273135 and r273867:
hselasky [Thu, 30 Oct 2014 17:05:32 +0000 (17:05 +0000)]
MFC r273135 and r273867:
Update the OFED Linux compatibility layer and
Mellanox hardware driver(s):

- Properly name an inclusion guard.
- Fix compile warnings regarding unsigned enums.
- Fix compile warning regarding unused variable.
- Add two new sysctl nodes.
- Remove all empty linux header files.
- Make an error printout more verbose.
- Use "mod_delayed_work()" instead of
  cancelling and starting a timeout.
- Implement more Linux scatterlist
  functions.
- Don't forget to add "options OFED" to
  the kernel configuration file before
  using infiniband.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r254122, r254123, r256116, r255970, r247671, r269861, r268314, r256269,
hselasky [Thu, 30 Oct 2014 15:41:25 +0000 (15:41 +0000)]
MFC r254122, r254123, r256116, r255970, r247671, r269861, r268314, r256269,
  r255969, r256179, r230135, r254121, r255932, r255972, r255973, r256281,
  r256470, r257867, r259608, r269862, r271127, r272407, r257864, r256682,
  r258276, r254734, r247675, r254735 and r272683:

Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

NOTE:
  - TSO feature needs r271946, which is not yet merged.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r272770 (modified version):
ae [Thu, 30 Oct 2014 13:59:28 +0000 (13:59 +0000)]
MFC r272770 (modified version):
  When tunneling interface is going to insert mbuf into netisr queue after stripping
  outer header, consider it as new packet and clear the protocols flags.

  This fixes problems when IPSEC traffic goes through various tunnels and router
  doesn't send ICMP/ICMPv6 errors.

PR: 174602
Sponsored by: Yandex LLC

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

9 years agoMFC r272746:
ae [Wed, 29 Oct 2014 11:47:04 +0000 (11:47 +0000)]
MFC r272746:
  Add an ability to set dumpdev via loader(8) tunable.

MFC r272747:
  Revert r156046. We support setting dumpdev via loader tunable again.
  Also change default disk name to ada.

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

9 years agoMerge upstream r825: fix line continuation in whitespace
des [Tue, 28 Oct 2014 18:19:22 +0000 (18:19 +0000)]
Merge upstream r825: fix line continuation in whitespace

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

9 years agoMFC r273359:
yongari [Tue, 28 Oct 2014 00:44:20 +0000 (00:44 +0000)]
MFC r273359:
  It seems multicast filtering of RTL8168F does not work.  Workaround
  the silicon bug by accepting any multicast packets.

  PR: 193488

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

9 years agoMFC r273328: Add another PCI ID for JMB368 PATA controller.
mav [Mon, 27 Oct 2014 07:21:37 +0000 (07:21 +0000)]
MFC r273328: Add another PCI ID for JMB368 PATA controller.

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

9 years agoMFC of 267473,tzdata2014e
edwin [Mon, 27 Oct 2014 06:12:29 +0000 (06:12 +0000)]
MFC of 267473,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/9@273721 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC of 273718, tzdata2014i
edwin [Mon, 27 Oct 2014 06:12:10 +0000 (06:12 +0000)]
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.

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

9 years agoMFC r270643, r273448:
kevlo [Sat, 25 Oct 2014 15:14:19 +0000 (15:14 +0000)]
MFC r270643, r273448:
- Fix typo: s/mac_rev/mac_ver/
- Fix the kernel panic in hostap mode.
  rvp->beacon_mbuf was NULL in run_update_beacon().

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

9 years agoMFC r258902:
markj [Fri, 24 Oct 2014 17:24:29 +0000 (17:24 +0000)]
MFC r258902:
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".

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

9 years agoMFC 272763:
markj [Thu, 23 Oct 2014 18:48:43 +0000 (18:48 +0000)]
MFC 272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143

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

9 years agoMFC r271692:
markj [Wed, 22 Oct 2014 23:55:06 +0000 (23:55 +0000)]
MFC r271692:
Fix a typo.

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

9 years agoDocument the following security advisories:
gjb [Tue, 21 Oct 2014 21:44:24 +0000 (21:44 +0000)]
Document the following security advisories:
 FreeBSD-SA-14:20.rtsold
 FreeBSD-SA-14:21.routed
 FreeBSD-SA-14:22.namei
 FreeBSD-SA-14:23.openssl

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

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

9 years agoBump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
gjb [Tue, 21 Oct 2014 21:37:53 +0000 (21:37 +0000)]
Bump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
SA-14:23

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

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

9 years agoMFC r272833 (des):
delphij [Tue, 21 Oct 2014 21:11:25 +0000 (21:11 +0000)]
MFC r272833 (des):

Two more places where login_setcryptfmt() defaults to MD5 were missed
in r252688.

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

9 years agoMFC r272830 (des):
delphij [Tue, 21 Oct 2014 21:09:54 +0000 (21:09 +0000)]
MFC r272830 (des):

Change the hardcoded default back from SHA512 to DES.

This will become EN-14:11.crypt.

PR: 192277

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

9 years agoFix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]
delphij [Tue, 21 Oct 2014 20:20:17 +0000 (20:20 +0000)]
Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix routed(8) remote denial of service vulnerability. [SA-14:21]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

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

9 years agoMFC revisions 253175, 268999, 269027, 269351-269352, 269354, 269460,
dteske [Tue, 21 Oct 2014 18:31:08 +0000 (18:31 +0000)]
MFC revisions 253175, 268999, 269027, 269351-269352, 269354, 269460,
270283, 270505, 270954, 270989, 273067, and 273068:
r253175: Introduce f_which() to common.subr
r268999: Add new bsdconfig example scripts; remove obsolete ones
r269027: Update bsdconfig dot module; fixes and enhancements
r269351: Add setvar() for non-FreeBSD platforms using bash as /bin/sh
r269352: Fix syntax error when run under bash
r269354: Update setvar() function introduced in r269351
r269460: Update f_xdialog_info() in bsdconfig's dialog.subr include
r270283: Add `-A' flag to pkg-install(8) when installing dependencies
r270505: Optimize f_which() to be slightly faster still (common.subr)
r270954: Update f_dialog_init() for safer getopts usage (dialog.subr)
r270989: Fix for previously mentioned r270954
r273067: Fix awk(1) asorti() implementation to work when called in a loop
r273068: Rename awk(1) asorti() to prevent conflict with GNU awk(1)

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

9 years agoMFC r271287:
brooks [Tue, 21 Oct 2014 16:44:03 +0000 (16:44 +0000)]
MFC r271287:

Merge from NetBSD:

PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings
gracefully.  (don't abuse 0 to mean compute string length internally)

PR: 193447
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>

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

9 years agoMFC: r273034
brueffer [Tue, 21 Oct 2014 13:09:52 +0000 (13:09 +0000)]
MFC: r273034

Add one more AMD Kaveri APU device ID.

Submitted by: Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>

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

9 years agoMFC r272731:
yongari [Tue, 21 Oct 2014 04:55:55 +0000 (04:55 +0000)]
MFC r272731:
  Document newly added controller AR816x/AR817x.

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

9 years agoMFC r272730,273018:
yongari [Tue, 21 Oct 2014 04:50:07 +0000 (04:50 +0000)]
MFC r272730,273018:
  Add support for QAC AR816x/AR817x Gigabit/Fast Ethernet controllers.
  These controllers seem to have the same feature of AR813x/AR815x and
  improved RSS support(4 TX queues and 8 RX queues).  alc(4) supports
  all hardware features except RSS.  I didn't implement RX checksum
  offloading for AR816x/AR817x just because I couldn't get
  confirmation from the Vendor whether AR816x/AR817x corrected its
  predecessor's RX checksum offloading bug on fragmented packets.
  This change adds supports for the following controllers.
   o AR8161 PCIe Gigabit Ethernet controller
   o AR8162 PCIe Fast Ethernet controller
   o AR8171 PCIe Gigabit Ethernet controller
   o AR8172 PCIe Fast Ethernet controller
   o Killer E2200 Gigabit Ethernet controller

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

9 years agoMFC r272729,272732:
yongari [Tue, 21 Oct 2014 01:49:07 +0000 (01:49 +0000)]
MFC r272729,272732:
  Add new quirk PCI_QUIRK_MSI_INTX_BUG to pci(4).
  QAC AR816x/E2200 controller has a silicon bug that MSI interrupt
  does not assert if PCIM_CMD_INTxDIS bit of command register is set.

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

9 years agoMFC r272721:
yongari [Tue, 21 Oct 2014 01:15:43 +0000 (01:15 +0000)]
MFC r272721:
  Fix a long standing bug in MAC statistics register access.  One
  additional register was erroneously added in the MAC register set
  such that 7 TX statistics counters were wrong.

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

9 years agoMFC r271073:
yongari [Mon, 20 Oct 2014 07:27:34 +0000 (07:27 +0000)]
MFC r271073:
  Do not blindly announce 1000baseT half-duplex capability in
  autonegotiation.  Some controllers like cgem(4) do not support
  half-duplex at gigabit speeds.

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

9 years agoMFC 272668:
jhb [Fri, 17 Oct 2014 19:55:12 +0000 (19:55 +0000)]
MFC 272668:
Properly set the timeout in a query_state.  The global query_timeout
configuration value is an integer count of seconds, it is not a timeval.
Using memcpy() to copy a timeval from it put garbage into the tv_usec
field.

PR: 194025

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

9 years agoMFC 272449:
jhb [Fri, 17 Oct 2014 19:28:21 +0000 (19:28 +0000)]
MFC 272449:
Require p_cansched() for changing a process' protection status via
procctl() rather than p_cansee().

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