]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC of 283079,tzdata9:
edwin [Mon, 18 May 2015 21:17:19 +0000 (21:17 +0000)]
MFC of 283079,tzdata9:

Update to tzdata2015d:

Release 2015d - 2015-04-24 08:09:46 -0700

  Changes affecting future time stamps

    Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

  Change affecting past and future time zone abbreviations

    The abbreviations for Hawaii-Aleutian standard and daylight times
    have been changed from HAST/HADT to HST/HDT, as per US Government
    Printing Office style.  This affects only America/Adak since 1983,
    as America/Honolulu was already using the new style.

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

9 years agoMFstable/10 r283054:
ngie [Mon, 18 May 2015 10:46:51 +0000 (10:46 +0000)]
MFstable/10 r283054:

MFC r281928:

Avoid an infinite loop by ensuring that the amount of bytes read is greater
than 0 in MDXFileChunk when calculating the checksum

This edgecase can be triggered if the file is truncated while the checksum
is being calculated (i.e. the EOF is reached)

Differential Revision: https://reviews.freebsd.org/D2351 (patch by darius)
PR: 196694
Reviewed by: delphij, ngie
Submitted by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC of 283042,tzdata9:
edwin [Mon, 18 May 2015 02:09:37 +0000 (02:09 +0000)]
MFC of 283042,tzdata9:

Update to tzdata2015c:

    Release 2015c - 2015-04-11 08:55:55 -0700

    Changes affecting future time stamps

    Egypt's spring-forward transition is at 24:00 on April's last Thursday,
    not 00:00 on April's last Friday.  2015's transition will therefore be on
    Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.  Similar fixes
    apply to 2026, 2037, 2043, etc.  (Thanks to Steffen Thorsen.)

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

9 years agoMerge r283036 from stable/10:
dim [Sun, 17 May 2015 20:39:29 +0000 (20:39 +0000)]
Merge r283036 from stable/10:

  For clang 3.4.1, when using -fformat-extensions, and warning about the
  FreeBSD-specific %D and %b printf format specifiers, avoid possible
  argument overruns.  Also reduce the differences with the version added
  in r280031 (which has been sent upstream).

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

9 years agoBring the contrib/llvm/patches directory up-to-date for stable/9.
dim [Sat, 16 May 2015 23:18:30 +0000 (23:18 +0000)]
Bring the contrib/llvm/patches directory up-to-date for stable/9.

MFC r263892:
Add the llvm/clang patch for r263891.

MFC r264350:
Update the llvm/clang patch for r264345.

MFC r264828:
Add patches corresponding to r264826 and r264827

MFC r266630:
Add the clang patch for r265477.  While here, add a description to the
patch for r263619, and unify all the URLs to point to svnweb.

MFC r266675:
Add the clang patch for r266674.

MFC r275651:
Add llvm patch corresponding to r275633.

MFC r275747:
Update llvm patches for r274286 and r275633 so all the tests will pass.

MFC r275760:
Add clang patch corresponding to r275759.

MFC r275772:
Update clang patch for r275759 to use correct test cases.

MFC r283015:
Bring the contrib/llvm/patches directory up-to-date.

MFC r263892:
Add the llvm/clang patch for r263891.

MFC r264350:
Update the llvm/clang patch for r264345.

MFC r266675:
Add the clang patch for r266674.

MFC r275651:
Add llvm patch corresponding to r275633.

MFC r275747:
Update llvm patches for r274286 and r275633 so all the tests will pass.

MFC r275760:
Add clang patch corresponding to r275759.

MFC r275772:
Update clang patch for r275759 to use correct test cases.

Partially merge r283015 from stable/10:
Additionally:
* Remove the clang patch corresponding to r263619, as ARM EABI
  hard-float support was never MFC'd.
* Add clang patch corresponding to r279302.

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

9 years agoBring clang 3.4.1 in stable/9 in sync with the version in stable/10.
dim [Sat, 16 May 2015 23:00:03 +0000 (23:00 +0000)]
Bring clang 3.4.1 in stable/9 in sync with the version in stable/10.

MFC r252503 (by andrew):
Work around an ARM EABI issue where clang would sometimes incorrectly align
the stack in a leaf function that uses TLS.

The issue is, when using TLS, the function is no longer a leaf as it calls
__aeabi_read_tp. With statically linked programs this is not an issue as
it doesn't make use of the stack, however with dynamically linked
applications we enter rtld which does use the stack and makes assumptions
about it's alignment.

This is only a temporary fix until a better patch can be made and submitted
upstream.

MFC r264826 (by emaste):
Merge LLVM r202188:

  Debug info: Support variadic functions.
  Variadic functions have an unspecified parameter tag after the last
  argument. In IR this is represented as an unspecified parameter in the
  subroutine type.

  Paired commit with CFE r202185.

  rdar://problem/13690847

  This re-applies r202184 + a bugfix in DwarfDebug's argument handling.

This merge includes a change to use the LLVM 3.4 API in
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:

DwarfUnit -> CompileUnit

Sponsored by:       DARPA, AFRL

MFC r264827 (by emaste):
Merge Clang r202185:

  Debug info: Generate debug info for variadic functions.
  Paired commit with LLVM.

  rdar://problem/13690847

This merege includes changes to use the Clang 3.4 API (revisions
199686 and 200082) in lib/CodeGen/CGDebugInfo.cpp:

getParamType  -> getArgType
getNumParams  -> getNumArgs
getReturnType -> getResultType

Sponsored by: DARPA, AFRL

MFC r265477 (by emaste):
Merge -fstandalone-debug from Clang r198655:

  Implement a new -fstandalone-debug option. rdar://problem/15685848
  It controls everything that -flimit-debug-info used to, plus the
  vtable type optimization. The old -fno-limit-debug-info option is now an
  alias to -fstandalone-debug and vice versa.

  Standalone is the default on Darwin until dtrace is updated to work with
  non-standalone debug info (rdar://problem/15758808).

  Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind
  because NoStandaloneDebugInfo sounded even more confusing.

MFC r269387 (by andrew):
Update the ARMv6 core clang targets to be an arm1176jzf-s. This brings us
in line with gcc in base as this makes llvm generate code for the armv6k
variant of the instruction set.

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

9 years agoMFstable/10 r283016:
ngie [Sat, 16 May 2015 22:38:16 +0000 (22:38 +0000)]
MFstable/10 r283016:

MFC r282747:

Use MIN from sys/param.h instead of handrolling the macro

Replace sys/types.h with sys/param.h per-style(9)

Sponsored by: EMC / Isilon Storage Division

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

9 years agoRemove mergeinfo for r280893
ngie [Fri, 15 May 2015 22:14:42 +0000 (22:14 +0000)]
Remove mergeinfo for r280893

It wasn't actually committed to stable/9 in r282992

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

9 years agoMFC r280893,r280894,r280895:
ngie [Fri, 15 May 2015 22:13:11 +0000 (22:13 +0000)]
MFC r280893,r280894,r280895:

r280893:

Cleanup and do minor refactoring before converting testcases to ATF

- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
  instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
  not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6

Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division

r280894:

Minor cleanup before converting to ATF testcases

- Remove blank (tab-only) lines.
- Fix -Wunused warnings.
- Bump up to WARNS= 6

r280895:

- Fix -Wsign issue
- Bump up to WARNS=6

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

9 years agoMFC r282482: cp: Remove fts sorting.
jilles [Thu, 14 May 2015 19:32:13 +0000 (19:32 +0000)]
MFC r282482: cp: Remove fts sorting.

In an attempt to improve performance, cp reordered directories first
(although the comment says directories last). This is not effective with new
UFS layout policies.

The sorting reorders multiple arguments passed to cp, which may be
undesirable.

Additionally, the comparison function does not induce a total order. Per
POSIX, this causes undefined behaviour in qsort().

NetBSD removed the sorting in 2009.

On filesystems that return directory entries in hash/btree order, sorting by
d_fileno before statting improves performance on large directories. However,
this can only be implemented in fts(3).

PR: 53475
Reviewed by: bde (in 2004)

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

9 years agoMFC r282578:
ae [Thu, 14 May 2015 11:52:27 +0000 (11:52 +0000)]
MFC r282578:
  Mark data checksum as valid for multicast packets, that we send back
  to myself via simloop.
  Also remove duplicate check under #ifdef DIAGNOSTIC.

  PR: 180065

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

9 years agoMFC r281877:
yongari [Thu, 14 May 2015 05:19:29 +0000 (05:19 +0000)]
MFC r281877:
  Add another variant of BCM5708S controller to IBM HS21 workaround
  list.

  PR: 118238

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

9 years agoDocument EN-15:04 and EN-15:05.
gjb [Thu, 14 May 2015 04:05:34 +0000 (04:05 +0000)]
Document EN-15:04 and EN-15:05.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279571,281563 (allanjude):
delphij [Wed, 13 May 2015 22:36:52 +0000 (22:36 +0000)]
MFC r279571,281563 (allanjude):

Add a new safetly belt to freebsd-update to prevent a user doing a minor
update (-pX) while having an unfinished major upgrade (9.x to 9.y)
Safetly belt can be disabled with the -F flag

Additionally, add the --not-running-from-cron flag they bypasses the TTY
requirement, and allows freebsd-update to be invoked by orchestration
frameworks, scripts, or otherwise.

PR: 196760

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

9 years agoMFstable/10 r282851:
ngie [Wed, 13 May 2015 11:07:40 +0000 (11:07 +0000)]
MFstable/10 r282851:

MFC r282075:

Convert this testcase over to a TAP format testcase

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

9 years agoMFstable/10 r281951,r281954:
ngie [Wed, 13 May 2015 10:43:49 +0000 (10:43 +0000)]
MFstable/10 r281951,r281954:

r281951:

Backport MHSIZE/MPKTHSIZE equivalents from head

These macros are equivalent to the ones on head, except they are only exposed
when _KERNEL is defined, i.e. to kernel code, whereas the code on head is exposed
to userland as well

This is for improved forwards compatibility with mbuf(9) macros in head@r277203+,
and is required for a clean MFC of r279393

This is a direct commit to stable/10

Differential Revision: https://reviews.freebsd.org/D2126
Reviewed by: glebius, rwatson
Sponsored by: EMC / Isilon Storage Division

r281954:

MFC r279393:

Pad RX copy alignment calculation to avoid illegal memory accesses

The optimization made in r239940 is valid for struct mbuf's current structure
and size in FreeBSD, but hardcodes assumptions about sizes of struct mbuf,
which are unfortunately broken if additional data is added to the beginning of
struct mbuf

X-MFC note (discussed with rwatson):

This change requires the MPKTHSIZE definition, which is only available after
head@r277203 and will not be MFCed as it breaks mbuf(9) KPI.

A direct commit to stable/10 and merges to other branches to add the necessary
definitions to work with the code as-is will be done to facilitate this MFC

PR: 194314
Approved/Reviewed by: erj, jfv
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r282062:
ngie [Wed, 13 May 2015 10:17:34 +0000 (10:17 +0000)]
MFC r282062:

Fix -Wformat warnings by using proper format string qualifiers for
long and unsigned[ long] types

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

9 years agoMFC r282131: replace a comment about zfs recv -F corner case with a longer one
avg [Mon, 11 May 2015 09:43:16 +0000 (09:43 +0000)]
MFC r282131: replace a comment about zfs recv -F corner case with a longer one

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

9 years agoMFC r282130: zfs_onexit_fd_hold: return EBADF even if devfs_get_cdevpriv gave ENOENT
avg [Mon, 11 May 2015 08:46:23 +0000 (08:46 +0000)]
MFC r282130: zfs_onexit_fd_hold: return EBADF even if devfs_get_cdevpriv gave ENOENT

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

9 years agoMFC r282127: dsl_dir_rename_check: return EXDEV on cross-pool rename attempt
avg [Mon, 11 May 2015 08:43:37 +0000 (08:43 +0000)]
MFC r282127: dsl_dir_rename_check: return EXDEV on cross-pool rename attempt

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

9 years agoMFC r282126: FV r282123: 5610 zfs clone from different source and target pools
avg [Mon, 11 May 2015 08:41:21 +0000 (08:41 +0000)]
MFC r282126: FV r282123: 5610 zfs clone from different source and target pools

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

9 years agoMFC r282122: nvpair_type_is_array: DATA_TYPE_INT8_ARRAY was not recognized
avg [Mon, 11 May 2015 08:34:08 +0000 (08:34 +0000)]
MFC r282122: nvpair_type_is_array: DATA_TYPE_INT8_ARRAY was not recognized

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

9 years agoMFC r282121: dump_nvlist: handle DATA_TYPE_BOOLEAN_ARRAY
avg [Mon, 11 May 2015 08:31:39 +0000 (08:31 +0000)]
MFC r282121: dump_nvlist: handle DATA_TYPE_BOOLEAN_ARRAY

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

9 years agoMFC: r281628
rmacklem [Sat, 9 May 2015 12:10:59 +0000 (12:10 +0000)]
MFC: r281628
mav@ has found that NFS servers exporting ZFS file systems
can perform better when using a 128K read/write data size.
This patch changes NFS_MAXDATA from 64K to 128K so that
clients can use 128K for NFS mounts to allow this.
The patch also renames NFS_MAXDATA to NFS_SRVMAXIO so
that it is clear that it applies to the NFS server side
only. It also avoids a name conflict with the NFS_MAXDATA
defined in rpcsvc/nfs_prot.h, that is used for userland RPC.

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

9 years agoMFC r277396, r278681, r278865, r278924, r279205, r280208,
hselasky [Tue, 5 May 2015 20:59:43 +0000 (20:59 +0000)]
MFC r277396, r278681, r278865, r278924, r279205, r280208,
  r280210, r280764 and r280768:

Update the Linux compatibility layer:
- Add more functions.
- Add some missing includes which are needed when the header files
  are not included in a particular order.
- The kasprintf() function cannot be inlined due to using a variable
  number of arguments. Move it to a C-file.
- Fix problems about 32-bit ticks wraparound and unsigned long
  conversion. Jiffies or ticks in FreeBSD have integer type and are
  not long.
- Add missing "order_base_2()" macro.
- Fix BUILD_BUG_ON() macro.
- Declare a missing symbol which is needed when compiling without -O2
- Clean up header file inclusions in the linux/completion.h, linux/in.h
  and linux/fs.h header files.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r280598:
hselasky [Tue, 5 May 2015 20:00:20 +0000 (20:00 +0000)]
MFC r280598:
Add definition of the ISOCHRONOUS endpoint usage bits.
Refer to the USB v2.0 specification for more information.

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

9 years agoMFC r282120:
hselasky [Tue, 5 May 2015 19:52:22 +0000 (19:52 +0000)]
MFC r282120:
The add_bounce_page() function can be called when loading physical
pages which pass a NULL virtual address. If the BUS_DMA_KEEP_PG_OFFSET
flag is set, use the physical address to compute the page offset
instead. The physical address should always be valid when adding
bounce pages and should contain the same page offset like the virtual
address.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>
Reviewed by: jhb@

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

9 years agoMFC r282128:
kib [Tue, 5 May 2015 08:16:47 +0000 (08:16 +0000)]
MFC r282128:
Do not sleep waiting for the MAP_ENTRY_IN_TRANSITION state ending with
the vnode locked.

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

9 years agoMFC r281765:
mav [Mon, 4 May 2015 19:34:59 +0000 (19:34 +0000)]
MFC r281765:
Activate write-only optimization if bpf device opened with O_WRONLY.

dhclient opens bpf as write-only to send packets. It never reads received
packets from that descriptor, but processing them in kernel takes time.
Especially much time takes packet timestamping on systems with expensive
timecounter, such as bhyve guest, where network speed dropped in half.

Sponsored by: iXsystems, Inc.

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

9 years agoMFC r281738:
mav [Sun, 3 May 2015 07:18:06 +0000 (07:18 +0000)]
MFC r281738:
Change wcommitsize default from one empirical value to another.

The new value is more predictable with growing RAM size:

        hibufspace maxvnodes      old      new
i386:
  256MB   32980992     15800  2198732  2097152
    2GB   94027776    107677   878764  4194304
amd64:
  256MB   32980992     15800  2198732  2097152
    1GB  114114560     68062  1678155  4194304
    4GB  217055232    111807  1955452  4194304
   16GB 1717846016    337308  5097465 16777216
   64GB 1734918144   1164427  1490479 16777216
  256GB 1734918144   4426453   391983 16777216

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

9 years agoMFC: r281962
rmacklem [Sat, 2 May 2015 12:58:04 +0000 (12:58 +0000)]
MFC: r281962
Fix the NFS server's handling of a bogus NFSv2 ROOT RPC.
The ROOT RPC is deprecated in the NFSv2 RFC, RFC-1094
and should never be used by a client.

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

9 years agoMFC r281923, r281924: Add link to mvs(4).
mav [Fri, 1 May 2015 17:36:13 +0000 (17:36 +0000)]
MFC r281923, r281924: Add link to mvs(4).

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

9 years agoMFC r281617:
bdrewery [Thu, 30 Apr 2015 18:11:43 +0000 (18:11 +0000)]
MFC r281617:

  wc: Fix SIGINFO race causing final results to be lost to stderr.

Relnotes: yes

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

9 years agoMFC 280721:
jhb [Wed, 29 Apr 2015 18:57:19 +0000 (18:57 +0000)]
MFC 280721:
Allow additional flags to be passed to netstat -i in the daily status check.
In particular, this allows an administrator to specify "-h" for human
readable output if that is preferred.

The default setting passes "-d", so that can be excluded by using a custom
setting.

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

9 years agoMFC r281857:
pfg [Wed, 29 Apr 2015 15:33:55 +0000 (15:33 +0000)]
MFC r281857:
_pthread_cleanup_push: fix allocator sizeof operand mismatch

Same fix appears to be in DragonFly's libthread_xu.

Found by: Clang Static Analyzer

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

9 years agoMFC r281875:
pfg [Wed, 29 Apr 2015 15:28:04 +0000 (15:28 +0000)]
MFC r281875:
libgeom: plug memory leak in EndElement.

CID: 1016696
Found by: Clang static checker

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

9 years agoMFC r281769:
pfg [Mon, 27 Apr 2015 15:00:16 +0000 (15:00 +0000)]
MFC r281769:
g_uncompress_taste: prevent a double free.

Found by: Clang Static Analyzer

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

9 years agoMFC r222211,r222287,r225845,r226184,r226418,r236596,r267773,r267887,r273507,
delphij [Mon, 27 Apr 2015 06:02:47 +0000 (06:02 +0000)]
MFC r222211,r222287,r225845,r226184,r226418,r236596,r267773,r267887,r273507,
    r281500,r281540,r281626:

Sync with HEAD: xz support, bug fixes, etc.

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

9 years agoMFC r281696:
kib [Sat, 25 Apr 2015 08:09:15 +0000 (08:09 +0000)]
MFC r281696:
Initialize td_sel in the thread_init().

PR: 199518

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

9 years agoMFC r281698: Do not report stripe size if it is equal to sector size.
mav [Sat, 25 Apr 2015 06:50:15 +0000 (06:50 +0000)]
MFC r281698: Do not report stripe size if it is equal to sector size.

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

9 years agoMFstable/10 r281968:
ngie [Sat, 25 Apr 2015 05:08:30 +0000 (05:08 +0000)]
MFstable/10 r281968:

MFC r280475:

The number of commands added when ddb(4) is enabled is 3, not 2

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r281969:
ngie [Sat, 25 Apr 2015 05:05:23 +0000 (05:05 +0000)]
MFstable/10 r281969:

MFC r280893:

Cleanup and do minor refactoring before converting testcases to ATF

- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
  instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
  not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6

Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r273973: vt(4): Fix keyboard allocation when kbdmux(4) isn't used
emaste [Fri, 24 Apr 2015 19:26:01 +0000 (19:26 +0000)]
MFC r273973: vt(4): Fix keyboard allocation when kbdmux(4) isn't used

  The problem was that only the kbdmux keyboard index was saved in
  vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this
  case, the keyboard was correctly allocated, but the returned index was
  discarded.

PR: 196512

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

9 years agoMFC r277464: Add missing R_X86_64_ constants to elf_common.h
emaste [Fri, 24 Apr 2015 16:12:30 +0000 (16:12 +0000)]
MFC r277464: Add missing R_X86_64_ constants to elf_common.h

PR: 196918
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279301: GNU nm: Avoid NULL dereference
emaste [Fri, 24 Apr 2015 15:36:58 +0000 (15:36 +0000)]
MFC r279301: GNU nm: Avoid NULL dereference

  bfd_dwarf2_find_line() calls find_line() with NULL functionname_ptr,
  which resulted in a crash on certain ELF objects.

  This change was implemented independently from upstream binutils, but
  I have checked that the crash does not happen there.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281537: Increase vt font limits to allow use of GNU Unifont
emaste [Fri, 24 Apr 2015 15:34:20 +0000 (15:34 +0000)]
MFC r281537: Increase vt font limits to allow use of GNU Unifont

PR: 199438
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281380:
ae [Fri, 24 Apr 2015 02:43:02 +0000 (02:43 +0000)]
MFC r281380:
  Fix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
  interface index is specified as zero, the system should select the
  interface to use for outgoing multicast packets. Even the comment
  for the in6p_set_multicast_if() function says about index of zero.
  But in fact for zero index the function just returns EADDRNOTAVAIL.

  I.e. if you first set some interface and then will try reset it
  with zero ifindex, you will get EADDRNOTAVAIL.

  Reset im6o_multicast_ifp to NULL when interface index specified as
  zero. Also return EINVAL in case when ifnet_byindex() returns NULL.
  This will be the same behaviour as when ifindex is bigger than
  V_if_index. And return EADDRNOTAVAIL only when interface is not
  multicast capable.

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

9 years agoMFC r281756:
pfg [Fri, 24 Apr 2015 02:15:14 +0000 (02:15 +0000)]
MFC r281756:
nfsrpc_createv4: fix double free.

Reported by: Oliver Pinter, clang static checker
Obtained from: HardenedBSD (63cac77c42c0c3fc67da62f97d5ab651d52ae707)
Reviewed by: rmacklem

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

9 years agoMFC 281159:
jhb [Thu, 23 Apr 2015 22:39:32 +0000 (22:39 +0000)]
MFC 281159:
Move the message complaining about failed system resource allocations
under bootverbose.  Every example I've seen to date has been due to
an ACPI system resource device reserving a range that overlaps with
system memory (which ram0 attempts to reserve) or a local or I/O APIC
(which apic0 attempts to reserve).  These are always harmless but look
scary to users.

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

9 years agoMFC r281775:
dim [Thu, 23 Apr 2015 22:06:02 +0000 (22:06 +0000)]
MFC r281775:

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

  MC: Allow multiple comma-separated expressions on the .uleb128 directive.

  For compatiblity with GNU as. Binutils documents this as
  '.uleb128 expressions'. Subtle, isn't it?

Reported by: sbruno
PR: 199554

MFC r281777:

Add llvm patch corresponding to r281775.

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

9 years agoMFC r281582:
bdrewery [Thu, 23 Apr 2015 15:25:22 +0000 (15:25 +0000)]
MFC r281582:

  Remove extra flags from r250462.

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

9 years agoMFC r280999:
bdrewery [Thu, 23 Apr 2015 15:20:57 +0000 (15:20 +0000)]
MFC r280999:

  Use proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.

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

9 years agoMFC r274988 (with modification):
ae [Wed, 22 Apr 2015 20:48:56 +0000 (20:48 +0000)]
MFC r274988 (with modification):
  Skip L2 addresses lookups for tunneling interfaces.

PR: 197286

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

9 years agoMFC r281309:
ae [Wed, 22 Apr 2015 19:59:08 +0000 (19:59 +0000)]
MFC r281309:
  Fix the check for maximum mbuf's size needed to send ND6 NA and NS.
  It is acceptable that the size can be equal to MCLBYTES. In the later
  KAME's code this check has been moved under DIAGNOSTIC ifdef, because
  the size of NA and NS is much smaller than MCLBYTES. So, it is safe to
  replace the check with KASSERT.

  PR: 199304

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

9 years agoMFC r281670, r281703:
pfg [Wed, 22 Apr 2015 00:40:41 +0000 (00:40 +0000)]
MFC r281670, r281703:
Drop experimental ext2fs dir_index support.

The htree directory index is a highly desirable feature for research
purposes and was meant to improve performance in our ext2/3 driver.
Unfortunately our implementation has two problems:

- It never really delivered any performance improvement.
- It appears to corrupt the filesystem in undetermined circumstances.

Strictly speaking dir_index is not required for read/write support in
ext2/3 and our limited ext4 support still works fine without it.

Regain stability in the ext2 driver by removing it. We may need it back
(fixed) if we want to support encrypted ext4 support but thanks to the
wonders of version control we can always revert this change and bring it
back.

PR: 191895
PR: 198731
PR: 199309

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

9 years agoDocument SA-15:07, SA-15:08, SA-15:09.
gjb [Tue, 21 Apr 2015 16:54:21 +0000 (16:54 +0000)]
Document SA-15:07, SA-15:08, SA-15:09.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281605,281768:
brooks [Tue, 21 Apr 2015 14:48:18 +0000 (14:48 +0000)]
MFC r281605,281768:

r281605:
Fix a minor function definition inconsistancy.

r281768:
Bump doc date missed in r281605.

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

9 years agoMFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.
mav [Tue, 21 Apr 2015 11:29:07 +0000 (11:29 +0000)]
MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.

In some cases limits are just not needed, in others -- DFLTPHYS is the
right constant to use instead.

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

9 years agoMFC r281146.
rakuco [Wed, 15 Apr 2015 22:17:16 +0000 (22:17 +0000)]
MFC r281146.

bthidd: Remove unused macros from hid.c.

ASIZE() was never used, and min() stopped being used in r207812.

Differential Revision: https://reviews.freebsd.org/D2230
Reviewed by: emax
Approved by: emax

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

9 years agoMFC r281116.
rakuco [Wed, 15 Apr 2015 22:15:23 +0000 (22:15 +0000)]
MFC r281116.

bthidd: Consider usage ranges when dealing with array inputs.

So far, we were always using HID_USAGE() to determine the Usage ID of a
certain HID report input item. This does not work as intended if a field
is an array and the allowed usages are specified with a usage range, as
HID_USAGE() will return 0. We need to use the field value as an index in
the usage range list in this case instead.

This makes the volume keys in a Microsoft Bluetooth Mobile Keyboard
5000 be properly recognized. The relevant part of the HID report looks
like this:

  0xA1, 0x01,        // Collection (Application)
  0x85, 0x07,        //   Report ID (7)
  0x05, 0x0C,        //   Usage Page (Consumer)
  0x19, 0x00,        //   Usage Minimum (Unassigned)
  0x2A, 0xFF, 0x03,  //   Usage Maximum (0x03FF)
  0x95, 0x01,        //   Report Count (1)
  0x75, 0x10,        //   Report Size (16)
  0x15, 0x00,        //   Logical Minimum (0)
  0x27, 0xFF, 0x03, 0x00, 0x00,  //   Logical Maximum (1023)
  0x81, 0x00,        //   Input (Data,Array,Abs,No Wrap,Linear,Preferred
                     //   State,No Null Position)

When a key such as "volume down" is pressed, the following data is
transferred through Interrupt In:

  0x07 0xEA 0x00

Differential Revision: https://reviews.freebsd.org/D2229
Reviewed by: emax
Approved by: emax

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

9 years agoMFC 278474,278476,280279:
jhb [Tue, 14 Apr 2015 20:05:26 +0000 (20:05 +0000)]
MFC 278474,278476,280279:
Expand the bitcount*() API and use it to implement CPU_COUNT for cpusets.

278474:
Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and
use this to implement CPU_COUNT() to count the number of CPUs in a cpuset.

278476:
Use __builtin_popcountl() instead of __builtin_popcount().

280279:
Expand the bitcount* API to support 64-bit integers, plain ints and longs
and create a "hidden" API that can be used in other system headers without
adding namespace pollution.
- If the POPCNT instruction is enabled at compile time, use
  __builtin_popcount*() to implement __bitcount*(), otherwise fall back
  to software implementations.
- Use the existing bitcount16() and bitcount32() from <sys/systm.h> to
  implement the non-POPCNT __bitcount16() and __bitcount32() in
  <sys/types.h>.
- For the non-POPCNT __bitcount64(), use a similar SWAR method on 64-bit
  systems.  For 32-bit systems, use two __bitcount32() operations on the
  two halves.
- Use __bitcount32() to provide a __bitcount() that operates on plain ints.
- Use either __bitcount32() or __bitcount64() to provide a
  __bitcountl() that operates on longs.
- Add public bitcount*() wrappers for __bitcount*() for use in the kernel
  in <sys/libkern.h>.
- Use __bitcountl() instead of __builtin_popcountl() in BIT_COUNT().

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

9 years agoMFC r281320:
pfg [Tue, 14 Apr 2015 18:46:42 +0000 (18:46 +0000)]
MFC r281320:
Update documented OEM string in newfs_msdos(8).

This was updated in r203868 to better match the naming scheme
in other OSs that use FAT.

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

9 years agoMFC r281199: Remove hard limits on number of accepting NFS connections.
mav [Tue, 14 Apr 2015 09:58:58 +0000 (09:58 +0000)]
MFC r281199: Remove hard limits on number of accepting NFS connections.

Limits of 5 connections set long ago creates problems for SPEC benchmark.
Make the NFS follow system-wide maximum.

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

9 years agoMFC: r281331
jkim [Mon, 13 Apr 2015 22:22:32 +0000 (22:22 +0000)]
MFC: r281331

Do not crash when RSDT/XSDT contains an empty entry.

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

9 years agoMFC: r281171
jkim [Sat, 11 Apr 2015 01:17:19 +0000 (01:17 +0000)]
MFC: r281171

Tidy up battery status information.  Remove a trailing white space.

PR: 193671

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

9 years agoMFC: r276347
rmacklem [Fri, 10 Apr 2015 22:53:07 +0000 (22:53 +0000)]
MFC: r276347
r245508 modified the NFS client's Setattr RPC to
use VA_UTIMES_NULL to indicate whether it should
set the time to the current tod on the server.
This had the side effect of making the NFS client
use the client's timestamp for exclusive create,
starting with FreeBSD9.2.
Unfortunately a bug in some Solaris NFS servers
causes these servers to return NFS_OK to the
Setattr RPC done during exclusive create, but not
actually set the file's mode, leaving the file's
mode == 0.
This patch restores the NFS client's behaviour to
use the server's tod for the exclusive open's
Setattr RPC, to avoid the Solaris server bug and
to restore the pre-FreeBSD9.2 NFS behaviour.

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

9 years agoMFC r280757: Remove request sorting from GEOM_MIRROR and GEOM_RAID.
mav [Fri, 10 Apr 2015 09:52:17 +0000 (09:52 +0000)]
MFC r280757: Remove request sorting from GEOM_MIRROR and GEOM_RAID.

When CPU is not busy, those queues are typically empty.  When CPU is busy,
then one more extra sorting is the last thing it needs.  If specific device
(HDD) really needs sorting, then it will be done later by CAM.

This supposed to fix livelock reported for mirror of two SSDs, when UFS
fires zillion of BIO_DELETE requests, that totally blocks I/O subsystem by
pointless sorting of requests and responses under single mutex lock.

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

9 years agoMFC 279951:
jhb [Thu, 9 Apr 2015 21:06:51 +0000 (21:06 +0000)]
MFC 279951:
Simplify string mangling in ifmaybeload().
- Use strlcpy() instead of strcpy().
- Use strlcat() instead of a strlcpy() with a magic number subtracted
  from the length.
- Replace strncmp(..., strlen(foo) + 1) with strcmp(...).

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

9 years agoMFC 279952:
jhb [Thu, 9 Apr 2015 18:50:41 +0000 (18:50 +0000)]
MFC 279952:
- Align comment for df flags variable in periodic.conf.
- Note default value of df flags variable in periodoc.conf(5).

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

9 years agoMFC 279931:
jhb [Thu, 9 Apr 2015 18:45:03 +0000 (18:45 +0000)]
MFC 279931:
Spin the twiddle in dosfs to give visual feedback for disk I/O on
FAT filesystems as is done for other filesystems in the loader.

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

9 years agoMFC 279892:
jhb [Thu, 9 Apr 2015 17:56:25 +0000 (17:56 +0000)]
MFC 279892:
Resize receive socket buffers that support autosizing when receiving
TCP data via direct data placement.

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

9 years agoMFstable/10 r228371:
ngie [Thu, 9 Apr 2015 16:52:53 +0000 (16:52 +0000)]
MFstable/10 r228371:

This missing MFC fixes PR 199308

r228371 (by jhb):

- Add a test for PR 151758.
- While here, make this compile and work on non-i386:
  - Use CMSG_SPACE(), CMSG_LEN(), and CMSG_FIRSTHDR() instead of ignoring
    padding between 'struct cmsghdr' and control message payloads.
  - Don't initialize the control message before calling recvmsg().
    Instead, check that we get a valid control message on return from
    recvmsg().
- Use errx() instead of err() for some errors that don't report failures
  that set errno.

Requested by: kib (1)

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

9 years agoMFC r280702: Make swapper release orphaned (lost) GEOM provider.
mav [Thu, 9 Apr 2015 10:12:58 +0000 (10:12 +0000)]
MFC r280702: Make swapper release orphaned (lost) GEOM provider.

Swap device is still reported as enabled, and system still may crash later
if some swapped-out kernel pages were lost with the device, but at least
GEOM and CAM can now release the lost disk, allowing it to be reconnected.

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

9 years agoMFC r280687: Make GEOM_PART work in presence of previous withered self.
mav [Thu, 9 Apr 2015 10:10:38 +0000 (10:10 +0000)]
MFC r280687: Make GEOM_PART work in presence of previous withered self.

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

9 years agoMFC r280686: Report withered providers as such alike to GEOMs.
mav [Thu, 9 Apr 2015 10:08:49 +0000 (10:08 +0000)]
MFC r280686: Report withered providers as such alike to GEOMs.

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

9 years agoMFC r280685: When searching for provider by name, prefer non-withered one.
mav [Thu, 9 Apr 2015 10:07:06 +0000 (10:07 +0000)]
MFC r280685: When searching for provider by name, prefer non-withered one.

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

9 years agoUpdate BIND to 9.9.7.
delphij [Wed, 8 Apr 2015 19:49:38 +0000 (19:49 +0000)]
Update BIND to 9.9.7.

This is a direct commit to stable/9 because BIND is no longer in -HEAD.

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

9 years agoImprove patch for SA-15:04.igmp to solve a potential buffer overflow.
delphij [Tue, 7 Apr 2015 20:20:44 +0000 (20:20 +0000)]
Improve patch for SA-15:04.igmp to solve a potential buffer overflow.

Fix multiple vulnerabilities of ntp. [SA-15:07]

Fix Denial of Service with IPv6 Router Advertisements. [SA-15:09]

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

9 years agoMFC r281006
davidcs [Tue, 7 Apr 2015 18:07:16 +0000 (18:07 +0000)]
MFC r281006
When an mbuf allocation fails in the receive path, the mbuf containing the received packet is not sent to the host network stack and is reused again on the receive ring.  Remaining received packets in the ring are not processed in that invocation of bxe_rxeof() and defered to the task thread

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

9 years agoMFC r280360:
bdrewery [Tue, 7 Apr 2015 02:55:22 +0000 (02:55 +0000)]
MFC r280360:

  Document "none" for VersionAddendum.

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

9 years agoMFC r280864:
dim [Mon, 6 Apr 2015 14:50:54 +0000 (14:50 +0000)]
MFC r280864:

Pull in r233552 from upstream libc++ trunk (by Eric Fiselier):

  [libcxx] Fix PR22771 - Support access control SFINAE in the library
  version of is_convertible.

  Summary:
  Currently the conversion check does not take place in a context where
  access control SFINAE is applied. This patch changes the context of
  the test expression so that SFINAE occurs if access control does not
  permit the conversion.

  Related bug: https://llvm.org/bugs/show_bug.cgi?id=22771

  Reviewers: mclow.lists, rsmith, dim

  Reviewed By: dim

  Subscribers: dim, rodrigc, emaste, cfe-commits

  Differential Revision: http://reviews.llvm.org/D8461

This fixes building clang, and other programs using libc++, with newer
versions of gcc (specifically, gcc 4.8 and higher).

Reported by: rodrigc

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

9 years agoMFC r280357:
dim [Mon, 6 Apr 2015 14:45:40 +0000 (14:45 +0000)]
MFC r280357:

Build expr with -fwrapv, since it relies on signed integer wrapping
having defined behavior.

Reported by: rodrigc

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

9 years agoMFC r280822: Some cosmetic polishing. No functional change.
mav [Sun, 5 Apr 2015 06:54:28 +0000 (06:54 +0000)]
MFC r280822: Some cosmetic polishing.  No functional change.

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

9 years agoMFC r280781:
kib [Sat, 4 Apr 2015 08:11:10 +0000 (08:11 +0000)]
MFC r280781:
Make it possible for the signal handler to act on #ss.

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

9 years agoMFC r280178:
bdrewery [Fri, 3 Apr 2015 17:52:57 +0000 (17:52 +0000)]
MFC r280178:

  Unhide linker line for libraries.

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

9 years agoMFC r280177:
bdrewery [Fri, 3 Apr 2015 17:25:41 +0000 (17:25 +0000)]
MFC r280177:

  Remove unneeded handling of undefined NM.

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

9 years agoMFC r278530:
bdrewery [Fri, 3 Apr 2015 17:17:17 +0000 (17:17 +0000)]
MFC r278530:

  When catopen(3) returns an error, it caches the result of that error from
  r202992. The refcount on the cache entry is not initialized, so any attempt
  to clean the cache will skip over this item since it likely has a >0 value.

  This change is currently a NOP.

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

9 years agoMFC r272291:
bdrewery [Fri, 3 Apr 2015 17:13:20 +0000 (17:13 +0000)]
MFC r272291:

  Document [EPERM] for UNIX sockets.

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

9 years agoMFC r280756, r280758: Fix bug on memory allocation error in split method.
mav [Fri, 3 Apr 2015 06:17:24 +0000 (06:17 +0000)]
MFC r280756, r280758: Fix bug on memory allocation error in split method.

While there, use bioq_takefirst() in place where it is convenient.

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

9 years agoMFC 276724:
jhb [Thu, 2 Apr 2015 01:02:42 +0000 (01:02 +0000)]
MFC 276724:
On some Intel CPUs with a P-state but not C-state invariant TSC the TSC
may also halt in C2 and not just C3 (it seems that in some cases the BIOS
advertises its C3 state as a C2 state in _CST).  Just play it safe and
disable both C2 and C3 states if a user forces the use of the TSC as the
timecounter on such CPUs.

PR: 192316

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

9 years agoMFC 278761:
jhb [Wed, 1 Apr 2015 19:48:19 +0000 (19:48 +0000)]
MFC 278761:
Include OBJT_PHYS VM objects in ELF core dumps. In particular this
includes the shared page allowing debuggers to use the signal trampoline
code to identify signal frames in core dumps.

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

9 years agoMFC 278760:
jhb [Tue, 31 Mar 2015 15:37:24 +0000 (15:37 +0000)]
MFC 278760:
Add two new counters for vnode life cycle events:
- vfs.recycles counts the number of vnodes forcefully recycled to avoid
  exceeding kern.maxvnodes.
- vfs.vnodes_created counts the number of vnodes created by successful
  calls to getnewvnode().

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

9 years agoMFC r280172: Improve ATA and SCSI versions printing.
mav [Tue, 31 Mar 2015 07:27:29 +0000 (07:27 +0000)]
MFC r280172: Improve ATA and SCSI versions printing.

There is no "SCSI-6" and "ATA-9", but there is "SPC-4" and "ACS-2".

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

9 years agoMFC r280166:
mav [Tue, 31 Mar 2015 07:22:53 +0000 (07:22 +0000)]
MFC r280166:
Make ATA power management commands to work on SCSI HBAs via PASS THROUGH.

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

9 years agoMFC r280780:
kib [Tue, 31 Mar 2015 01:08:51 +0000 (01:08 +0000)]
MFC r280780:
The #ss fault handler erronously does not check for the fault
originated from the return to usermode. #ss must be handled same as
#np.

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

9 years agoMFC r280090: Hide virtio features negotiation messages under bootverbose.
mav [Sun, 29 Mar 2015 07:48:02 +0000 (07:48 +0000)]
MFC r280090: Hide virtio features negotiation messages under bootverbose.

Those messages are noisy, but useless for average user.

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

9 years agoMFC r280286: Add comment explaining existing powerd behavior on SMP systems.
mav [Fri, 27 Mar 2015 09:04:31 +0000 (09:04 +0000)]
MFC r280286: Add comment explaining existing powerd behavior on SMP systems.

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

9 years agoMFC r280236:
ae [Thu, 26 Mar 2015 18:51:00 +0000 (18:51 +0000)]
MFC r280236:
  To avoid a possible race, release the reference to ifa after return
  from nd6_dad_na_input().

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

9 years agoMFC r280262 and r280263:
hselasky [Thu, 26 Mar 2015 10:26:25 +0000 (10:26 +0000)]
MFC r280262 and r280263:
Add more known bugs to the USB audio manual page.

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

9 years agoMFC r279903,279941:
yongari [Thu, 26 Mar 2015 05:45:21 +0000 (05:45 +0000)]
MFC r279903,279941:
  Add RTL8211F gigabit PHY support.

  PR: 197265

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