]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
9 years agoMFC 270674:
jhb [Fri, 5 Sep 2014 17:22:20 +0000 (17:22 +0000)]
MFC 270674:
Clarify that the -c argument clears the list of tracepoints specified by
-t (it does not clear all tracepoints).

Approved by: re (gjb for 10)

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

9 years agoMFC r270661:
ae [Wed, 3 Sep 2014 11:17:27 +0000 (11:17 +0000)]
MFC r270661:
  Remove leading '/' from hardlink name when removing them from the
  regular file name. This fixes the problem, when bsdtar can not create
  hardlinks to extracted files.

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

9 years agoMFC r257985:
ae [Mon, 1 Sep 2014 09:00:00 +0000 (09:00 +0000)]
MFC r257985:
  Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
  unlocked route. Use in6_rtalloc() instead of in6_rtalloc1. This helps
  simplify the code and remove several now unused variables.

  PR: 156283

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

9 years agoRegenerate
peter [Sun, 31 Aug 2014 20:23:56 +0000 (20:23 +0000)]
Regenerate

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

9 years agoBackport the separation of the knob that controls the legacy pkg_install
peter [Sun, 31 Aug 2014 20:14:22 +0000 (20:14 +0000)]
Backport the separation of the knob that controls the legacy pkg_install
tools (ie: WITH/WITHOUT_PKGTOOLS) and the pkg bootstrap tool.

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

9 years agoMFC r270728, tzdata2014f
pluknet [Fri, 29 Aug 2014 13:26:11 +0000 (13:26 +0000)]
MFC r270728, tzdata2014f

- Parts of Russia will change times on 2014-10-26.
- Time zone name changes for Asia/Novokuznetsk and Xinjiang and Samoa
  and America/Metlakatla, new zones Asia/Chita and Asia/Srednekolymsk.
- Australia will now use Axxx.
- New zone tab data format.

And lots of historical changes (See
http://mm.icann.org/pipermail/tz-announce/2014-August/000023.html
for the full details.)

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

9 years agoMFC r270510:
truckman [Thu, 28 Aug 2014 01:15:56 +0000 (01:15 +0000)]
MFC r270510:

Catch up to gcc 3.3 -> 3.4 upgrade.

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

9 years agoMFC r270134:
hselasky [Wed, 27 Aug 2014 14:25:18 +0000 (14:25 +0000)]
MFC r270134:
Use the "bSubslotSize" and "bSubFrameSize" fields to obtain the actual
sample size. According to the USB audio frame format specification
from USB.org, the value in the "bBitResolution" field can be less than
the actual sample size, depending on the actual hardware, and should
not be used for this computation.

PR: 192755

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

9 years agoMFC r270133:
hselasky [Wed, 27 Aug 2014 14:20:01 +0000 (14:20 +0000)]
MFC r270133:
Add more USB class codes.

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

9 years agoMFC r269777:
hselasky [Wed, 27 Aug 2014 14:13:47 +0000 (14:13 +0000)]
MFC r269777:
Fix string length argument passed to "sysctl_handle_string()" so that
the complete string is returned by the function and not just only one
byte.

PR: 192544

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

9 years agoBring in a collection of gcc and libstdc++ fixes and updates from head,
dim [Sat, 23 Aug 2014 10:58:16 +0000 (10:58 +0000)]
Bring in a collection of gcc and libstdc++ fixes and updates from head,
most of which are already in stable/10 and stable/9 for some time.

Requested by: danfe
Tested by: danfe and make universe

MFC r228328:
  Make it possible to use the debug versions of std::map and std::multimap
  with clang, by removing two unneeded using declarations.  Otherwise, you
  would get errors similar to:

  /usr/include/c++/4.2/debug/map.h:77:20: error: dependent using declaration resolved to type without 'typename'
using _Base::value_compare;
     ^

  N.B.: Take care when you actually use the debug versions of any
  libstdc++ header.  They are more likely to contain problems, because
  they are exercised far less often, and since the standard library
  complexity guarantees don't always apply anymore, compile times can
  drastically increase.

MFC r228474 (by ed):
  Add support for __COUNTER__.

  __COUNTER__ allows one to obtain incrementing (read: unique) numbers
  from the C preprocesor. This is useful when implementing things like a
  robust implementation of CTASSERT(), which currently fails when using
  it more than once on a single line of code. Probably not likely to cause
  any breakage, but still.

  __COUNTER__ was also added to GCC 4.3, but since that implementation is
  GPLv3 licensed, I took the liberty of implementing it without looking at
  any upstream sources. Therefore, this version is licensed under the same
  license as the rest of the code; GPLv2.

MFC r231336 (by kientzle):
  Implement -print-file-name=include (which is undocumented
  but used by some Linux boot loaders).  This option prints
  out the directory holding the include files needed by
  a freestanding program.  The default implementation of
  this doesn't work on FreeBSD because of the different
  include file layout.  But it's easy to implement:
  just return /usr/include (or the cross-compiling equivalent).

  Reviewed by: kan

MFC r233193:
  Add explicit braces to avoid dangling else in stl_tree.h.  This silences
  the following warning produced by clang trunk:

    In file included from /usr/src/sbin/devd/devd.cc:91:
    In file included from /usr/obj/usr/src/tmp/usr/include/c++/4.2/map:64:
    /usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/stl_tree.h:987:2: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
    else
    ^

MFC r241957:
  Fix several clang warnings in libstdc++, which were exposed by the
  recent atf import.  These changes are purely cosmetic, no functional
  change.

MFC r244776 (by pfg):
  gcc: avoid generating negative values to DW_AT_byte_size.

  There is a bug in gcc (GCC/35998) where dwarf reports
  sizes of unsigned -1 (0xffffffff).

  On NetBSD this generated a faulty CTF entry which then
  caused a segfault in ctfmerge. The issue was worked
  around in NetBSD's Dtrace but since the issue originated
  in gcc, it seems reasonable to fix it here.

  Upstream gcc has been slow to react to this issue and
  the author that submitted the patch is not interested
  in licensing the change to us, so I did an independent
  workaround for the issue.

MFC r251212 (by pfg):
  GCC: bring back experimental support for amdfam10/barcelona CPUs.

  Initial support for the AMD amdfam10 chipsets has been available in the
  gcc43 branch under GPLv2. AMD and some linux distributions (OpenSUSE) did
  a backport of the amdfam10 support and made it available.

  This is a revised subset of the support initially brought in in r236962
  and later reverted. The collateral efects seem to have disappeared but
  it is still recommended to set the CPUTYPE with caution.

  Reviewed by: jkim (ages ago)

MFC r258017 (by pfg):
  cxxfilt: small changes from Apple's developer tools

  From Apple's Developer Tools 4.0 [1]:

  demangle.patch
  2007-05-05  Geoffrey Keating
  (d_name): Detect local-source-name.
  (d_prefix): Likewise.
  (d_unqualified_name): Implement local-source-name.

  libiberty-printf.patch

  [1] http://opensource.apple.com/source/cxxfilt/cxxfilt-9/patches/

MFC r258429 (by pfg):
  libstdc++: merge non-abi changes from Apple's developer tools

  Take some changes from Apple's Developer Tools 4.0 [1]:

  block.patch
  emergency-buffer-reduction.patch
  test_cleanup.patch

  vector_copy_no_alloc.patch
  problem/6473222 copy-constructing a std::vector from an
  empty std::vector calls malloc

  2008-10-27  Howard Hinnant
  stl_tree_system_header.patch
  Added #pragma GCC system_header to stl_tree.h.
  copy_doc.patch
  Corrected documentation concerning copy in stl_algobase.h.
  string_compare.patch
  Fixed basic_string.h, basic_string.tcc, incorrect 64bit to
  32bit narrowing.

  Reference:

  [1] http://opensource.apple.com/source/libstdcxx/libstdcxx-39/patches-4.2.1/

  Obtained from: Apple

MFC r258501 (by pfg):
  gcc: Bring updates from Google's enhanced gcc-4.2.1.

  Google released and enhanced version of gcc-4.2.1 plus their local
  patches for Android[1].

  The patches are owned by Google and the license hasn't been changed
  from  the original GPLv2. We are only bringing a subset of the
  available patches that may be helpful in FreeBSD. Changes specific
  to android are not included.

  From the README.google file[1].

  Patches applied to google_vendor_src_branch/gcc/gcc-4.2.1:

  gcc/Makefile.in
  gcc/c-common.c
  gcc/c-common.h
  gcc/c-opts.c
  gcc/c-typeck.c
  gcc/cp/typeck.c
  gcc/doc/invoke.texi
  gcc/flags.h
  gcc/opts.c
  gcc/tree-flow.h
  gcc/tree-ssa-alias-warnings.c
  gcc/tree-ssa-alias.c

   Backport of -Wstrict-aliasing from mainline.
    Silvius Rus <rus@google.com>

  gcc/coverage.c:
    Patch coverage_checksum_string for PR 25351.
    Seongbae Park <spark@google.com>
    Not yet submitted to FSF.

  gcc/c-opts.c
  gcc/c-ppoutput.c
  gcc/c.opt
  gcc/doc/cppopts.texi
  libcpp/Makefile.in
  libcpp/directives-only.c
  libcpp/directives.c
  libcpp/files.c
  libcpp/include/cpplib.h
  libcpp/init.c
  libcpp/internal.h
  libcpp/macro.c
    Support for -fdirectives-only.
    Ollie Wild <aaw@google.com>.
    Submitted to FSF but not yet approved.

  libstdc++-v3/include/ext/hashtable.h
    http://b/742065
    http://b/629994
    Reduce min size of hashtable for hash_map, hash_set from 53 to 5

  libstdc++-v3/include/ext/hashtable.h
    http://b/629994
    Do not iterate over buckets if hashtable is empty.

  gcc/common.opt
  gcc/doc/invoke.texi
  gcc/flags.h
  gcc/gimplify.c
  gcc/opts.c
    Add Saito's patch for -finstrument-functions-exclude-* options.

  gcc/common.opt
  gcc/doc/invoke.texi
  gcc/final.c
  gcc/flags.h
  gcc/opts.c
  gcc/testsuite/gcc.dg/Wframe-larger-than.c
    Add a new flag -Wframe-larger-than- which enables a new warning
    when a frame size of a function is larger than specified.
    This patch hasn't been integrated into gcc mainline yet.

  gcc/tree-vrp.c
    Add a hack to avoid using ivopts information for pointers starting
    at constant values.

  Reference:

  [1]
  https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.2.1/

  Obtained from: Google Inc.

MFC r258507 (by pfg):
  gcc: Missing makefile changes for r258501.

  pointyhat: me

MFC r258530 (by pfg):
  libcpp: Keep a record of changes from upstream GCC (pre-43).

  This makes it easier to track the changes in the rare event of the code
  being distributed without access to version control.

MFC r258651 (by pfg):
  gcc: Altivec register adjustments from Apple.

  Obtained from: gcc pre-4.3 (rev. 124763; GPLv2)

MFC r258658 (by mdf):
  Fix a segfault / internal compiler error.

  Among other causes, when gcc throws a warning before parsing any tokens,
  the cur_token pointer is at the beginning of malloc'd memory.
  Dereferencing cur_token[-1] can cause a segfault.

  Code taken from OpenBSD
  http://www.openbsd.org/cgi-bin/cvsweb/src/gnu/gcc/libcpp/errors.c
  which was a more complete fix than the one I originally coded.

MFC r258731 (by pfg):
  gcc: Make use of TREE_OVERFLOW_P.

  While it was brought in r258179 only to fix a build issue,
  bringing the rest of the change has the advantage of fixing
  GCC/19978.

  Obtained from: gcc 4.3 (rev. 120505; GPLv2)

MFC r258748 (by pfg):
  gcc: upstream alignment cleanups.

  This solves GCC/32617 and contributes to reduce differences with
  Apple's gcc42.

  Complete some references in the ChangeLog while here.

  Obtained from: gcc 4.3 (rev. 126529, 126588; GPLv2)

MFC r258817 (by pfg):
  libiberty: upstream updates.

  There is a new ChangeLog.gcc43 file but most notable:

  * floatformat.c (get_field): Fix segfault with little-endian word
    order on 64-bit hosts.
    (put_field): Likewise.
    (min): Move definition.

  gcc/cp/ChangeLog
  2007-05-04  Geoffrey Keating  <geoffk@apple.com>

    PR 31775
    * mangle.c (write_mangled_name): Mangle static variable names.
    (write_unqualified_name): Use local-source-name for
    namespace-scope static variables.
  (Completes FreeBSD's r258017 )

  Obtained from: gcc 4.3 (rev. 118552, 120097, 20698, 120702,
   121364, 122972, 126588; GPLv2)

MFC r258826 (by pfg):
  libcpp: Merge fixes from upstream

  GCC preprocessor/29966:
  * macro.c (lex_expansion_token): Save and restore cpp_reader's
  cur_token.
  (_cpp_create_definition): Don't restore cur_token here.
  * lex.c (_cpp_lex_token): Added assertion.

  GCC preprocessor/28709:
  * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs.

  GCC c/31924
  * expr.c (interpret_float_suffix): Check for invalid suffix.

  GCC preprocessor/14331
  * lex.c (_cpp_get_fresh_line):  Don't warn if no newline at EOF.

  Fixup whitespacing

  Obtained from: gcc per-4.3 (rev. 121340, 124356, 124358, 124730,
    125212, 125255 ; GPLv2)

MFC r258943 (by pfg):
  gcc: On rs6000 update sp_offset depending only on size.

  This fixes a nasty bug introduced in r258651.

  Reported and tested by: Justin Hibbits
  Obtained from: gcc pre-4.3 (rev. 125116; GPLv2)

MFC r259005 (by pfg):
  gcc: Add -flax-vector-conversions

  Obtained from: gcc 4.3 (rev. 120572, 120688; GPLv2)

MFC r259022 (by pfg):
  gcc: Include types in error message for build_binary_op.

  Mostly cosmetic change, again to reduce differences with Apple's gcc.

  Obtained from: gcc 4.3 (rev. 125239; GPLv2)

MFC r259092 (by pfg):
  gcc: new fvisibility-ms-compat option

  Obtained from: gcc 4.3 (rev. 126088; GPLv2)

MFC r259111:
  Use correct casts in gcc's emmintrin.h for the first arguments of the
  following builtin functions:

  * __builtin_ia32_pslldi128() takes __v4si instead of __v8hi
  * __builtin_ia32_psllqi128() takes __v2di instead of __v8hi
  * __builtin_ia32_psradi128() takes __v4si instead of __v8hi

  This should fix the following errors when building the LINT kernel with
  gcc:

  sys/crypto/aesni/aesni_wrap.c:191: error: incompatible type for argument 1 of
  '__builtin_ia32_psradi128'
  sys/crypto/aesni/aesni_wrap.c:195: error: incompatible type for argument 1 of
  '__builtin_ia32_pslldi128'

MFC r259525 (by pfg):
  gcc: fix ICE in rs600 when using -fno-trapping-math.

  Solves GCC-PR target/30485

  Obtained from: gcc 4.3 (rev. 120902; GPLv2)

MFC r259529 (by pfg):
  gcc: small merges from upstream

  Solves GCC issues:
  PR middle-end/32602
  PR middle-end/32603

  Updates the to documentation and processing
  improvement.

  Obtained from: gcc 4.3 (rev. 119427, 126278, 126422; GPLv2)

MFC r259555 (by pfg):
  gcc: add Apple compatible -Wnewline-eof

  GCC 4.2 and previous have always warned about
  "No newline at end of file".

  Upstream GCC removed the warning completely but
  Apple made it an optional warning. Adopt it for
  compatibility with older GCC and clang.

  While here, add comment to complement r258712.

  Obtained from: Apple Inc. (Apple GCC 4.2 - 5531)

MFC r259558 (by pfg):
  gcc: add Apple compatible -Wnewline-eof

  Fix document: "Apple compatible" suits better the origin.

MFC r259649 (by pfg):
  gcc: more diff reductions against Apple GCC.

  Mostly cosmetical changes to aid further merges.

  Obtained from: gcc 4.3 (rev. 120611, 124839; GPLv2)

MFC r259655 (by pfg):
  gcc: merge upstream fix and new feature.

  Fix for PR c++/29928

  Add support for Rvalue references as described here:
  http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html

  Obtained from: gcc 4.3 (rev. 124724, 125211; GPLv2)

MFC r259660 (by pfg):
  gcc: revert Rvalue references.

  They are very useful but at this time I prefer not to figure out
  some  minor conflicts with the bigger Apple's blocks support
  patch that is being worked on for current.

MFC r259841 (by pfg):
  gcc:  Add ability to generate DWARF pubtypes section if
  DEBUG_PUBTYPES_SECTION is defined.

  Obtained from: gcc 4.3 (rev. 118826; GPLv2)

MFC r259873 (by pfg):
  gcc: small enhancements for the arm support.

  Very small updates: fixes GCC-PR target/31152

  Tested by building the cross-compiler.

  Obtained from: gcc 4.3 (rev. r118461, 125973: GPLv2)

MFC r259944 (by pfg):
  gcc: merge small upstream change.

  Backport from mainline:
  2007-04-24  Hui-May Chang <hm.chang@apple.com>

  * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
  instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.

  Obtained from: gcc 4.3 (rev. r124115: GPLv2)

MFC r260014 (by pfg):
  gcc: Add support for label attributes and "unavailable" attribute.

  Apple GCC has extensions to support for both label attributes and
  an "unavailable" attribute. These are critical for objc but are
  also useful in regular C/C++.

  Apparently at least the label attributes might have found their way to
  upstream GCC but the code doesn't seem available on the GPLv2 tree so
  we are taking the code directly from Apple. To make this clearer we
  are preserving the annoying "APPLE LOCAL" tags and the ChangeLogs
  when they are available.

  Obtained from: Apple GCC 4.2 - 5531

MFC r260099 (by pfg):
  gcc: Fix issue with "unavailable" attribute.

  While here, point where we dropped the support for objc from r260014.

MFC r260310 (by pfg):
  libcpp: misc fixes from Apple's GCC.

  Fixes some bugs detected by Apple:
  #error with unmatched quotes
  pragma mark

  Obtained from: Apple GCC 4.2 - 5553

MFC r263775:
  Avoid "cc1: warning: is shorter than expected" when using GNU cpp in
  combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs"
  shebang lines.  This is because dtrace positions the file pointer after
  the shebang line, before passing the file to GNU cpp.

  To fix the warning, adjust the size downwards by the current position,
  after a bit of sanity checking.

  Suggested by: avg

MFC r269948:
  Supplement r259111 by also using correct casts in gcc's emmintrin.h for
  the first argument of the following builtin function:

  * __builtin_ia32_psrlqi128() takes __v2di instead of __v4si

  This should fix the following errors when building the graphics/webp
  port with base gcc:

  lossless_sse2.c:403: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'
  lossless_sse2.c:404: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'

  Reported by: Jos Chrispijn <ports@webrz.net>

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

9 years agoMFC r255286: don't stop the whole universe build if one kernel fails.
ian [Wed, 20 Aug 2014 00:06:54 +0000 (00:06 +0000)]
MFC r255286: don't stop the whole universe build if one kernel fails.

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

9 years agoMFC 238423,238426,238428,258063,258064,258066,258097,258185,259134:
jhb [Tue, 19 Aug 2014 17:54:15 +0000 (17:54 +0000)]
MFC 238423,238426,238428,258063,258064,258066,258097,258185,259134:
The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

Requested by: peter

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

9 years agoMFC r269566:
hselasky [Wed, 13 Aug 2014 07:11:37 +0000 (07:11 +0000)]
MFC r269566:
Fix for deadlock in USB device side mode.

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

9 years agoMFC r269180:
delphij [Mon, 11 Aug 2014 07:01:29 +0000 (07:01 +0000)]
MFC r269180:

When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR:        bin/151023
Submitted by:    tjmao at tjmao.net

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

9 years agoMFC r269470: avoid divide-by-zero panic when setting baudrate to 0.
joerg [Fri, 8 Aug 2014 15:04:02 +0000 (15:04 +0000)]
MFC r269470: avoid divide-by-zero panic when setting baudrate to 0.

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

9 years agoMerge OpenSSL 0.9.8zb.
jkim [Thu, 7 Aug 2014 21:06:34 +0000 (21:06 +0000)]
Merge OpenSSL 0.9.8zb.

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

9 years agoFix cut/paste brain-o. Spell #endif correctly.
peter [Thu, 7 Aug 2014 20:05:50 +0000 (20:05 +0000)]
Fix cut/paste brain-o. Spell #endif correctly.

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

9 years agoLike on stable/9 and later, don't redefine MALLOC_PRODUCTION
peter [Thu, 7 Aug 2014 20:01:00 +0000 (20:01 +0000)]
Like on stable/9 and later, don't redefine MALLOC_PRODUCTION

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

9 years agoMFC: r260457
marius [Tue, 5 Aug 2014 16:44:27 +0000 (16:44 +0000)]
MFC: r260457

The changes in r233781 (MFCed to stable/8 in r235517) attempted to make
logging during a machine check exception more readable.  In practice they
prevented all logging during a machine check exception on at least some
systems.  Specifically, when an uncorrected ECC error is detected in a DIMM
on a Nehalem/Westmere class machine, all CPUs receive a machine check
exception, but only CPUs on the same package as the memory controller for
the erroring DIMM log an error.  The CPUs on the other package would complete
the scan of their machine check banks and panic before the first set of CPUs
could log an error.  The end result was a clearer display during the panic
(no interleaved messages), but a crashdump without any useful info about
the error that occurred.

To handle this case, make all CPUs spin in the machine check handler
once they have completed their scan of their machine check banks until
at least one machine check error is logged.  I tried using a DELAY()
instead so that the CPUs would not potentially hang forever, but that
was not reliable in testing.

While here, don't clear MCIP from MSR_MCG_STATUS before invoking panic.
Only clear it if the machine check handler does not panic and returns
to the interrupted thread.

MFC: r263113

Correct type for malloc().

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

MFC: r269052, r269239, r269242

Intel desktop Haswell CPUs may report benign corrected parity errors (see
HSD131 erratum in [1]) at a considerable rate. So filter these (default),
unless logging is enabled. Unfortunately, there really is no better way to
reasonably implement suppressing these errors than to just skipping them
in mca_log(). Given that they are reported for bank 0, they'd need to be
masked in MSR_MC0_CTL. However, P6 family processors require that register
to be set to either all 0s or all 1s, disabling way more than the one error
in question when using all 0s there. Alternatively, it could be masked for
the corresponding CMCI, but that still wouldn't keep the periodic scanner
from detecting these spurious errors. Apart from that, register contents of
MSR_MC0_CTL{,2} don't seem to be publicly documented, neither in the Intel
Architectures Developer's Manual nor in the Haswell datasheets.

Note that while HSD131 actually is only about C0-stepping as of revision
014 of the Intel desktop 4th generation processor family specification
update, these corrected errors also have been observed with D0-stepping
aka "Haswell Refresh".

1: http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-desktop-specification-update.pdf

Reviewed by: jhb
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

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

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