]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoRevert r278017 (MFC of r273381 and r276417) and r278018 (MFC of r273434)
dim [Sun, 1 Feb 2015 02:29:58 +0000 (02:29 +0000)]
Revert r278017 (MFC of r273381 and r276417) and r278018 (MFC of r273434)
until I can figure out why it leads to link failures in some scenarios.

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

9 years agoMFC r273434 (by bapt):
dim [Sun, 1 Feb 2015 01:42:38 +0000 (01:42 +0000)]
MFC r273434 (by bapt):

Do not define bad_array_new_length::bad_array_new_length in libc++ anymore
when used in combinaison with libcxxrt since it is now defined there already.
This fixes building world

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

9 years agoMFC r273381 (by bapt):
dim [Sat, 31 Jan 2015 23:48:59 +0000 (23:48 +0000)]
MFC r273381 (by bapt):

Add support for __cxa_throw_bad_array_new_length in libcxxrt

It is required for use with newer g++49

Differential Revision: https://reviews.freebsd.org/D982
Reviewed by: theraven
Approved by: theraven

MFC r276417:

Import libcxxrt master 00bc29eb6513624824a6d7db2ebc768a4216a604.

Interesting fixes:
76584a0  Reorganize code to use only 32bit atomic ops for 32bit platforms
30d2ae5  Implement __cxa_throw_bad_array_new_length

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D1390

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

9 years agoMFC r277855:
jamie [Sat, 31 Jan 2015 17:35:53 +0000 (17:35 +0000)]
MFC r277855:

  Add allow.mount.fdescfs jail flag.

PR: 192951
Submitted by: ruben@verweg.com

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

9 years agoMFC r277827:
kib [Sat, 31 Jan 2015 11:04:41 +0000 (11:04 +0000)]
MFC r277827:
tmpfs does not use UVM on FreeBSD.

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

9 years agoMFC r277646:
kib [Sat, 31 Jan 2015 11:02:20 +0000 (11:02 +0000)]
MFC r277646:
Avoid calling vmspace_free() while owning the process lock.

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

9 years agoMFC 274398,274537:
jhb [Fri, 30 Jan 2015 18:55:05 +0000 (18:55 +0000)]
MFC 274398,274537:
Move NFS and TFTP filesystems before the synthetic filesystems (bzip,
gzip, and split).

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

9 years agoMFC r277802, r277811:
pfg [Fri, 30 Jan 2015 14:36:02 +0000 (14:36 +0000)]
MFC r277802, r277811:

sed: Fix resource leak and dereference after NULL.

process.c:
Protect access against NULL.

main.c:
Prevent outfile overwrite resource leak.

CID: 271181
CID: 1006930

Obtained from: NetBSD

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

9 years agoMerge libedit fixes from NetBSD
emaste [Fri, 30 Jan 2015 14:22:15 +0000 (14:22 +0000)]
Merge libedit fixes from NetBSD

Add trailing NULL's to the varargs functions as required.
(John Spencer)

    readline.c r1.106

Bounds search for reallocated index, from OpenBSD via Andreas Fett

    map.c 1.34
    map.h 1.10
    parse.c 1.27
    read.c 1.71

This is a direct commit to stable/10 as these changes are included in a
broader sync with NetBSD committed by bapt@ in r276881.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D1728

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

9 years agoMFC r277247: Don't count status as sent until CTIO completes successfully.
mav [Fri, 30 Jan 2015 09:05:43 +0000 (09:05 +0000)]
MFC r277247: Don't count status as sent until CTIO completes successfully.

If we aggregated status sending with data move and got error, allow status
to be updated and resent again separately.  Without this command may stuck
without status sent at all.

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

9 years agoMFC r277529: Don't count requests with status sent as overlapping.
mav [Fri, 30 Jan 2015 09:04:20 +0000 (09:04 +0000)]
MFC r277529: Don't count requests with status sent as overlapping.

While those requests are still in target OOA queue, for initiator they are
already completed, so tags can be reused.

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

9 years agoMFC r277239:
smh [Fri, 30 Jan 2015 01:05:50 +0000 (01:05 +0000)]
MFC r277239:
Eliminate illumos whole disk special case when searching for a ZFS vdev

Sponsored by: Multiplay

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

9 years agoMFC r276446:
smh [Fri, 30 Jan 2015 01:04:17 +0000 (01:04 +0000)]
MFC r276446:
Use the correct state name for unavailable pools in zpool list

Sponsored by: Multiplay

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

9 years agoMFH (r277237): pass PAM_RHOST to RADIUS server as Calling-Station-ID
des [Thu, 29 Jan 2015 09:03:57 +0000 (09:03 +0000)]
MFH (r277237): pass PAM_RHOST to RADIUS server as Calling-Station-ID

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

9 years agoMFC r277352:
rstone [Wed, 28 Jan 2015 21:51:34 +0000 (21:51 +0000)]
MFC r277352:

  When mountd is creating sockets, it iterates over all addresses specified
  in the "hosts" array and eventually looks up the network address with
  getaddrinfo(). At one point it checks for a numeric address and if it
  sees one, it sets a hint parameter to force getaddrinfo to interpret the
  host as a numeric address. However that hint is not cleared for subsequent
  iterations of the loop and if any hosts seen after this point are host names,
  getaddrinfo will fail on the name.  The result of this bug is that you cannot
  pass a host name to the -h flag.

  Unfortunately, the first iteration will either process ::1 or 127.0.0.1,
  so the flag is set on the first iteration and all host names will fail
  to be processed.

  The same bug applies to rpc.lockd and rpc.statd, so fix them too.

  Differential Revision:        https://reviews.freebsd.org/D1507
  Reported by:  Dylan Martin
  MFC after:    1 week
  Sponsored by: Sandvine Inc.

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

9 years agoMFC r277246:
hselasky [Wed, 28 Jan 2015 20:01:21 +0000 (20:01 +0000)]
MFC r277246:
Add more USB device IDs.

PR: 196362

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

9 years agoMFC r277245:
hselasky [Wed, 28 Jan 2015 19:49:53 +0000 (19:49 +0000)]
MFC r277245:
Add more USB request definitions. The values are described in section
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"

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

9 years agoMFC r277417:
hselasky [Wed, 28 Jan 2015 19:41:31 +0000 (19:41 +0000)]
MFC r277417:
Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular
the value returned in the "udp_port_level" field.

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

9 years agoMFC r277340, r277349:
pfg [Wed, 28 Jan 2015 15:36:24 +0000 (15:36 +0000)]
MFC r277340, r277349:

Remove dead code.
After the ext2 variant of the "orlov allocator" was implemented,
the case for a negative or zero dirsize disappeared.

Drop the dead code and unsign dirsize given that it can't be
negative anyways.

ext2fs: fix for uninitialized pointer read.
path.ep_bp was being used uninitialized in ext4_ext_find_extent().

CID: 1062344
CID: 1008669

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

9 years agoMFC r277185:
mav [Wed, 28 Jan 2015 02:56:18 +0000 (02:56 +0000)]
MFC r277185:
Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.

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

9 years agoMFC r277169: Reimplement TRIM throttling added in r248577.
mav [Wed, 28 Jan 2015 02:55:20 +0000 (02:55 +0000)]
MFC r277169: Reimplement TRIM throttling added in r248577.

Previous throttling implementation approached problem from the wrong side.
It significantly limited useful delaying of TRIM requests and aggregation
potential, while not so much controlled TRIM burstiness under heavy load.

With this change random 4K write benchmarks (probably the worst case for
TRIM) show me IOPS increase by 20%, average latency reduction by 30%, peak
TRIM bursts reduction by 3 times and same peak TRIM map size (memory usage).

Also the new logic does not force map size down so heavily, really allowing
to keep deleted data for 32 TXG or 30 seconds under moderate load.  It was
practically impossible with old throttling logic, which pushed map down to
only 64 segments.

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

9 years agoMFC r277608, r277656, r277659:
pfg [Wed, 28 Jan 2015 02:25:48 +0000 (02:25 +0000)]
MFC r277608, r277656, r277659:

Small upstream fixes for GDB.

GDB: Fix memset thinkos.

2005-03-25  Anthony Green  <green@redhat.com>

       * remote.c (remote_store_registers): Fix memset usage.
       * std-regs.c (value_of_builtin_frame_reg): Ditto.
       (value_of_builtin_frame_fp_reg): Ditto.
       (value_of_builtin_frame_reg): Ditto.

Reported by: Dirk Engling

gdb: Add missing break statements

2004-05-21  Jim Blandy  <jimb@redhat.com>

       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

GDB: Replace use of sprintf.

2005-03-17  Mark Kettenis  <kettenis@gnu.org>

      * corelow.c (get_core_register_section): Replace usage of sprintf
      and strcpy with xstrprintf and xstrdup.

CID: 604160, 604161, 604162, 604163
CID: 1006819 1008254

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

9 years agoMFC r277647: Fix wrong LUN reference in XCOPY block-to-block operation.
mav [Tue, 27 Jan 2015 19:41:24 +0000 (19:41 +0000)]
MFC r277647: Fix wrong LUN reference in XCOPY block-to-block operation.

This could cause data corruption due to accessing wrong LUN in case of
retries on write errors.  Failed writes were retried to read LUN.

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

9 years agoFix SCTP SCTP_SS_VALUE kernel memory corruption and disclosure vulnerability
delphij [Tue, 27 Jan 2015 19:36:08 +0000 (19:36 +0000)]
Fix SCTP SCTP_SS_VALUE kernel memory corruption and disclosure vulnerability
and SCTP stream reset vulnerability.

Security: FreeBSD-SA-15:02.kmem
Security: CVE-2014-8612
Security: FreeBSD-SA-15:03.sctp
Security: CVE-2014-8613

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

9 years agoBump __FreeBSD_version after r277789: Changes to the UDP tunneling callback
bryanv [Tue, 27 Jan 2015 06:24:33 +0000 (06:24 +0000)]
Bump __FreeBSD_version after r277789: Changes to the UDP tunneling callback

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

9 years agoMFC r272886:
bryanv [Tue, 27 Jan 2015 06:19:30 +0000 (06:19 +0000)]
MFC r272886:

  Add context pointer and source address to the UDP tunnel callback

  These are needed for the forthcoming vxlan implementation. The context
  pointer means we do not have to use a spare pointer field in the inpcb,
  and the source address is required to populate vxlan's forwarding table.

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

9 years agoMFC: r277594
jkim [Mon, 26 Jan 2015 19:27:30 +0000 (19:27 +0000)]
MFC: r277594

Simplify retry loops.

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

9 years agoMFC: r277579
jkim [Mon, 26 Jan 2015 19:25:35 +0000 (19:25 +0000)]
MFC: r277579

Revert r216942.  This commit was premature and caused too many complaints.

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

9 years agoMFC r277385: Remove extra mtx_unlock().
mav [Mon, 26 Jan 2015 16:30:17 +0000 (16:30 +0000)]
MFC r277385: Remove extra mtx_unlock().

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

9 years agoMFC r277096: Skip extra bcopy() when scrubbing vdev without redundancy.
mav [Mon, 26 Jan 2015 16:29:07 +0000 (16:29 +0000)]
MFC r277096: Skip extra bcopy() when scrubbing vdev without redundancy.

According to profiler, this bcopy() can use about 10% of CPU time.

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

9 years agoMFC r276226:
smh [Mon, 26 Jan 2015 13:59:39 +0000 (13:59 +0000)]
MFC r276226:
Enhancements to zpool upgrade processing

Sponsored by: Multiplay

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

9 years agoMFC r274496:
trasz [Mon, 26 Jan 2015 13:39:35 +0000 (13:39 +0000)]
MFC r274496:

Fix mdoc warning by removing empty lines.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272294 by gavin@:
trasz [Mon, 26 Jan 2015 13:37:18 +0000 (13:37 +0000)]
MFC r272294 by gavin@:

Make clear in the ipheth(4) hardware notes that this driver is for the
tethering functionality only.  Add a "bugs" section to give a pointer
to usbconfig set_config if the device isn't automatically detected.

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

9 years agoMFC r272171 by pluknet@:
trasz [Mon, 26 Jan 2015 13:35:45 +0000 (13:35 +0000)]
MFC r272171 by pluknet@:

Add smsc(4) to the list of drivers use the miibus interface.

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

9 years agoMFC r272168 by gavin@:
trasz [Mon, 26 Jan 2015 13:34:21 +0000 (13:34 +0000)]
MFC r272168 by gavin@:

Add MLINKS for if_ipheth(4) and if_smsc(4).

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

9 years agoMFC r272165 by gavin@:
trasz [Mon, 26 Jan 2015 13:32:07 +0000 (13:32 +0000)]
MFC r272165 by gavin@:

Add very basic outline man page for smsc(4).

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

9 years agoMFC r272107 by gavin@:
trasz [Mon, 26 Jan 2015 13:29:43 +0000 (13:29 +0000)]
MFC r272107 by gavin@:

Cross reference cdce(4), ipheth(4) and urndis(4) from each other.

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

9 years agoMFC r272106 by gavin@:
trasz [Mon, 26 Jan 2015 13:28:13 +0000 (13:28 +0000)]
MFC r272106 by gavin@:

Add basic man page for ipheth(4).

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

9 years agoMFC r274791:
trasz [Mon, 26 Jan 2015 13:21:30 +0000 (13:21 +0000)]
MFC r274791:

Add missing error checking for kernel_port_{add,remove}().  Both can fail
for reasons yet unknown; don't make it increment cumulated_error as a kind
of temporary workaround.

MFC r275399:

Fix null pointer dereference.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275746:
trasz [Mon, 26 Jan 2015 13:17:20 +0000 (13:17 +0000)]
MFC r275746:

Fix markup.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r277358:
ngie [Mon, 26 Jan 2015 11:49:06 +0000 (11:49 +0000)]
MFC r277358:

r277358 (by ngie):

  Integrate contrib/netbsd-tests/bin/expr into the build/kyua as bin/expr/tests

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277390:
kib [Mon, 26 Jan 2015 11:37:16 +0000 (11:37 +0000)]
MFC r277390:
Ignore devfs directory entries for devices being destroyed.

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

9 years agoMerge 272659:
luigi [Mon, 26 Jan 2015 03:26:37 +0000 (03:26 +0000)]
Merge 272659:

Add netmap support to libpcap. Tcpdump and other native pcap clients
can now run directly on netmap ports using netmap:foo or valeXX:YY
as device names.

Modifications to existing code are small and trivial,
the netmap-specific code is all in a new file.

Please be aware that in netmap mode the physical interface is
disconnected from the host stack, so libpcap will steal the traffic
not just make a copy.

For the full version of the code (including linux and autotools support) see
https://code.google.com/p/netmap-libpcap/

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

9 years agoMFC r277295:
ae [Sun, 25 Jan 2015 16:35:03 +0000 (16:35 +0000)]
MFC r277295:
  Fix condition and really sort ports. Also add comment describing
  the intent of this code.

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

9 years agoMFC r276983: When aggregating TRIM segments, move the new one to the end.
mav [Sun, 25 Jan 2015 14:31:44 +0000 (14:31 +0000)]
MFC r276983: When aggregating TRIM segments, move the new one to the end.

New segment at the list head may block all TRIM requests until txg of that
segment can be processed.  On my random I/O tests this change reduce peak
TRIM list length from 650 to 450 segments.  Hopefully it should reduce TRIM
burstiness when list processing is unblocked.

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

9 years agoMFC r276952: Add LBA as secondary sort key for synchronous I/O requests.
mav [Sun, 25 Jan 2015 14:29:40 +0000 (14:29 +0000)]
MFC r276952: Add LBA as secondary sort key for synchronous I/O requests.

On FreeBSD gethrtime() implemented via getnanouptime(), that has 1ms (1/hz)
precision.  It makes primary sort key (timestamp) collision very possible.
In such situations sorting by secondary key of LBA is much more reasonable
then by totally meaningless zio pointer value.

With this change on multi-threaded synchronous ZVOL read I've measured 10%
throughput increase and average latency reduction.

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

9 years agoMFC r276913: Use new optimized dmu_read_uio_dbuf() for ZVOLs in device mode.
mav [Sun, 25 Jan 2015 14:25:44 +0000 (14:25 +0000)]
MFC r276913: Use new optimized dmu_read_uio_dbuf() for ZVOLs in device mode.

This slightly reduces overhead by avoiding dnode_hold()/dnode_rele() calls.

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

9 years agoMFC r277322:
kib [Sun, 25 Jan 2015 13:15:12 +0000 (13:15 +0000)]
MFC r277322:
Add procctl(2) PROC_TRACE_CTL command to enable or disable debugger
attachment to the process.

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

9 years agoMFC r277321:
kib [Sun, 25 Jan 2015 13:09:53 +0000 (13:09 +0000)]
MFC r277321:
Make SIGSTOP working for sleeps done while waiting for fifo readers or
writers in open(2), when the fifo is located on an NFS mount.

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

9 years agoMFC r277318:
cperciva [Sun, 25 Jan 2015 08:16:51 +0000 (08:16 +0000)]
MFC r277318:
  When disabling C3+ CPU states due to the CPU_QUIRK_NO_C3 quirk, don't
  accidentally enable non-existent states.

  This bug was triggered if ACPI advertises the presence of a C2 state
  which we fail to parse via acpi_PkgGas due to our lack of support for
  FFixedHW resources, and causes an immediate panic when an attempt is
  made to enter the (NULL) state.

  One affected platform is the EC2 c4.8xlarge VM instance type; there
  may be others.

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

9 years agoMFC r277527:
ngie [Sun, 25 Jan 2015 05:18:03 +0000 (05:18 +0000)]
MFC r277527:

r277527 (by ngie):

  Make this compile with WARNS=6 and clang/gcc

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277278:
ngie [Sun, 25 Jan 2015 00:28:15 +0000 (00:28 +0000)]
MFC r277278:

r277278 (by ngie):

  Fix lib/libthr/tests/detach_test

  - Eliminate race with liberal use of sleep(3) [1]
  - Fix NetBSD-specific implementation way of testing result from pthread_cancel
    by testing with `td` instead of `NULL` [2]

  PR: 196738 [1]
  PR: 191906 [2]

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277301:
pfg [Sat, 24 Jan 2015 21:23:53 +0000 (21:23 +0000)]
MFC r277301:
ext2: cosmetical issues

Minor sorting and note when the cases are expected to fall through.

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

9 years agoMFC r277488:
kib [Sat, 24 Jan 2015 08:35:49 +0000 (08:35 +0000)]
MFC r277488:
Do not allow pthread_sigmask() to block SIGCANCEL.

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

9 years agouse the same version as in HEAD
luigi [Sat, 24 Jan 2015 06:11:13 +0000 (06:11 +0000)]
use the same version as in HEAD
(among other things, the -v flag to make is long since unsupported)

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

9 years agoMFC r276194:
smh [Sat, 24 Jan 2015 00:40:42 +0000 (00:40 +0000)]
MFC r276194:
Prevent zpool upgrade failing due to unavailable pools

Sponsored by: Multiplay

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

9 years agoMFC r276904:
delphij [Sat, 24 Jan 2015 00:27:50 +0000 (00:27 +0000)]
MFC r276904:

Improve style and fix a possible use-after-free case introduced in r268384
by reinitializing the 'freestate' pointer after freeing the memory.

Obtained from: HardenedBSD (71fab80c5dd3034b71a29a61064625018671bbeb)
PR: 194525
Submitted by: Oliver Pinter <oliver.pinter@hardenedbsd.org>

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

9 years agoMFC r275923:
delphij [Fri, 23 Jan 2015 22:46:07 +0000 (22:46 +0000)]
MFC r275923:

Add missing continue: we can't proceed further if the
kernel does not panic with zfs_panic_recover.

Illumos issue:
    5438 zfs_blkptr_verify should continue after zfs_panic_recover

Reported by: Coverity
CID: 1232014

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

9 years agoNote OpenSSL MFC.
delphij [Fri, 23 Jan 2015 19:19:34 +0000 (19:19 +0000)]
Note OpenSSL MFC.

This is a direct commit to stable/10.

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

9 years agoMFC: r277274
jkim [Fri, 23 Jan 2015 19:17:04 +0000 (19:17 +0000)]
MFC: r277274

Update buildinf.h to make SSLeay_version(3) little bit more useful.

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

9 years agoMFC: r277270
jkim [Fri, 23 Jan 2015 19:14:36 +0000 (19:14 +0000)]
MFC: r277270

Merge OpenSSL 1.0.1l.

Relnotes: yes

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

9 years agoMFC r276891:
delphij [Fri, 23 Jan 2015 18:56:31 +0000 (18:56 +0000)]
MFC r276891:

var/named/etc/namedb/working should be removed as part of namedb.

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

9 years agoMFC r276795:
delphij [Fri, 23 Jan 2015 18:55:24 +0000 (18:55 +0000)]
MFC r276795:

Fix sos@'s name.

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

9 years agoMFC r276577: MFV r276568:
delphij [Fri, 23 Jan 2015 18:48:59 +0000 (18:48 +0000)]
MFC r276577: MFV r276568:

Update file to 5.22.

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

9 years agoMFC r276495: Fix markup for minthreads and maxthreads.
delphij [Fri, 23 Jan 2015 18:45:22 +0000 (18:45 +0000)]
MFC r276495: Fix markup for minthreads and maxthreads.

PR: 196403

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

9 years agoMFC r275918:
delphij [Fri, 23 Jan 2015 18:42:05 +0000 (18:42 +0000)]
MFC r275918:

Sync with NetBSD, mainly address NetBSD bug #43355:

Fix valid_format() to be more careful about allowing only valid
printf formats.

Obtained from:        NetBSD

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

9 years agoMFC r275552: MFV r260710 + 275532:
delphij [Fri, 23 Jan 2015 18:40:47 +0000 (18:40 +0000)]
MFC r275552:  MFV r260710 + 275532:

Add a new method, nvlist_print_json to allow libnvpair to emit JSON.

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

9 years agoMFC r275922: MFV r275914:
delphij [Fri, 23 Jan 2015 18:39:26 +0000 (18:39 +0000)]
MFC r275922: MFV r275914:

As of r270383, the dbuf_compare comparator compares the dbuf
attributes in the following order:

      db_level (indirect level)
      db_blkid (block number)
      db_state (current state)
      the address of the element

Because db_state is being considered before the element's state,
changing of db_state would affect balancedness of the AVL tree,
even when the address of element compares differently.  For
instance, in dbuf_create, db_state may be altered after the
node is inserted into the AVL tree and may break AVL tree
balancedness.

Instead of using db_state as a comparision critera (introduced
in r270383), consider it only when we are doing a lookup, that
is one of the two dbuf pointers contains DB_SEARCH.

Illumos issue:
    5422 preserve AVL invariants in dn_dbufs

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

9 years agoMFC r275812: MFV r275784:
delphij [Fri, 23 Jan 2015 18:36:21 +0000 (18:36 +0000)]
MFC r275812: MFV r275784:

Plug a memory leak in libzfs.  In zfs_iter_bookmarks, an nvlist is allocated
before calling lzc_get_bookmarks, which allocates the nvlist again (and
overwrites the pointer to previously allocated list).

Illumos issue:
    5427 memory leak in libzfs when doing rollback

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

9 years agoMFC r275811: MFV r275783:
delphij [Fri, 23 Jan 2015 18:33:50 +0000 (18:33 +0000)]
MFC r275811: MFV r275783:

Convert ARC flags to use enum.  Previously, public flags are defined in
arc.h and private flags are defined in arc.c which can lead to confusion
and programming errors.

Consistently use 'hdr' (when referencing arc_buf_hdr_t) instead of 'buf'
or 'ab' because arc_buf_t are often named 'buf' as well.

Illumos issue:
    5369 arc flags should be an enum
    5370 consistent arc_buf_hdr_t naming scheme

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

9 years agoMFC r275782: MFV r275551:
delphij [Fri, 23 Jan 2015 18:30:32 +0000 (18:30 +0000)]
MFC r275782: MFV r275551:

Remove "dbuf phys" db->db_data pointer aliases.

Use function accessors that cast db->db_data to the appropriate
"phys" type, removing the need for clients of the dmu buf user
API to keep properly typed pointer aliases to db->db_data in order
to conveniently access their data.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_leaf.c:
        In zap_leaf() and zap_leaf_byteswap, now that the pointer alias
        field l_phys has been removed, use the db_data field in an on
        stack dmu_buf_t to point to the leaf's phys data.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:
        Remove the db_user_data_ptr_ptr field from dbuf and all logic
        to maintain it.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dbuf.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dmu.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:
        Modify the DMU buf user API to remove the ability to specify
        a db_data aliasing pointer (db_user_data_ptr_ptr).

cddl/contrib/opensolaris/cmd/zdb/zdb.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_diff.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_bookmark.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_deadlist.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_deleg.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_destroy.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_synctask.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_userhold.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_leaf.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dataset.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dir.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_impl.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_leaf.h:
        Create and use the new "phys data" accessor functions
        dsl_dir_phys(), dsl_dataset_phys(), zap_m_phys(),
        zap_f_phys(), and zap_leaf_phys().

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dataset.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dir.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_impl.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_leaf.h:
        Remove now unused "phys pointer" aliases to db->db_data
        from clients of the DMU buf user API.

Illumos issue:
    5314 Remove "dbuf phys" db->db_data pointer aliases in ZFS

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

9 years agoMFC r275781: MFV r275550:
delphij [Fri, 23 Jan 2015 18:28:37 +0000 (18:28 +0000)]
MFC r275781: MFV r275550:

In addition to r273158, make the code in spa_sync() that checks if the
current TXG is a no-op TXG less fragile.

Illumos issue:
    5347 idle pool may run itself out of space

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

9 years agoMFC r275748: MFV r247174:
delphij [Fri, 23 Jan 2015 18:23:19 +0000 (18:23 +0000)]
MFC r275748: MFV r247174:

Expose arc_meta_limit, et al via kstats.

Note that as a result, vfs.zfs.arc_meta_used is removed.
The existing vfs.zfs.arc_meta_limit sysctl/tunable is retained
with a SYSCTL_PROC wrapper.

Illumos ZFS issues:
    3561 arc_meta_limit should be exposed via kstats

Relnotes: yes

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

9 years agoMFC r275740: MFV r275548:
delphij [Fri, 23 Jan 2015 18:16:36 +0000 (18:16 +0000)]
MFC r275740: MFV r275548:

Verify that the block pointer is structurally valid, before attempting to
read it in.  It can only be invalid in the case of a ZFS bug, but this
change will help identify such bugs in a more transparent way, by
panic'ing with a relevant message, rather than indexing off the end of an
array or something.

Illumos issue:
    5349 verify that block pointer is plausible before reading

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

9 years agoMerge r274709 by eri@: deal with IPv6 same way as we IPv4 and calculate
glebius [Fri, 23 Jan 2015 18:15:15 +0000 (18:15 +0000)]
Merge r274709 by eri@: deal with IPv6 same way as we IPv4 and calculate
the checksum before entering pf_test6().

PR: 172648, 179392

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

9 years agoMFC r275739: MFV r275547:
delphij [Fri, 23 Jan 2015 18:14:29 +0000 (18:14 +0000)]
MFC r275739: MFV r275547:

Port Illumos 'zfs allow' examples update.  While I'm there also fix
a typo.

Illumos issue:
    4181 zfs(1m): 'zfs allow' examples in the man page are outdated

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

9 years agoMFC r274418 (gjb):
delphij [Fri, 23 Jan 2015 18:11:48 +0000 (18:11 +0000)]
MFC r274418 (gjb):

Fix an mdoc(7) macro that is not an option in the provided
description.

Bump Dd.

As CDDL License dictates, update the Copyright accordingly.

Sponsored by: The FreeBSD Foundation

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

9 years agoMerge r277258: plug mutex leak in ngctl(8).
glebius [Fri, 23 Jan 2015 17:49:16 +0000 (17:49 +0000)]
Merge r277258: plug mutex leak in ngctl(8).

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

9 years agoMFC r275738: MFV r275546:
delphij [Fri, 23 Jan 2015 17:41:34 +0000 (17:41 +0000)]
MFC r275738: MFV r275546:

Reduce scrub activities when system there is enough dirty data, namely when
dirty data is more than zfs_vdev_async_write_active_min_dirty_percent (once
we start to increase the number of concurrent async writes).

While there also correct rounding error which would make scrub end up
pausing for (zfs_txg_timeout + 1) seconds instead of the desired
zfs_txg_timeout seconds.

Illumos issue:
    5351 scrub goes for an extra second each txg
    5352 scrub should pause when there is some dirty data

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

9 years agoMFC r275737: MFV r275545:
delphij [Fri, 23 Jan 2015 17:31:41 +0000 (17:31 +0000)]
MFC r275737:  MFV r275545:

If zio_checksum_error() returns other than ECKSUM (e.g. EINVAL), it does not
fill in the "zio_bad_cksum_t *info" parameter. Caller should not attempt to
use it in this case.

Illumos issue:
    5348 zio_checksum_error() only fills in info if ECKSUM

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

9 years agoMFC r275736: MFV r275544:
delphij [Fri, 23 Jan 2015 17:24:56 +0000 (17:24 +0000)]
MFC r275736: MFV r275544:

Clean up some duplicated code in dnode_sync() around freeing spill blocks.

Illumos issue:
    5350 clean up code in dnode_sync()

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

9 years agoMFC r275735: MFV r275543:
delphij [Fri, 23 Jan 2015 17:21:11 +0000 (17:21 +0000)]
MFC r275735: MFV r275543:

Remove always true tests for ds->ds_phys' presence.

Clean up assertions in dsl_dataset_disown.

Remove unreachable code in dsl_dataset_disown().

Illumos issue:
    5310 Remove always true tests for non-NULL ds->ds_phys

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

9 years agoMFC r275734: MFV r275542:
delphij [Fri, 23 Jan 2015 17:16:26 +0000 (17:16 +0000)]
MFC r275734: MFV r275542:

If a dnode has a spill block and there is an error while accessing
a data block then traverse_dnode() loses information about that error
and returns a status of visiting the spill block.

This issue is discovered by Spectra Logic.

Illumos issue:
    5311 traverse_dnode may report success when it should not

Original author: gibbs

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

9 years agolibelf: Improve ELF header validation
emaste [Fri, 23 Jan 2015 04:07:07 +0000 (04:07 +0000)]
libelf: Improve ELF header validation

Avoid integer overflow and reading past EOF.

MFC of r276427, r276443, r277249 from contrib/elftoolchain.

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

9 years agocrunchide: Correct 64-bit section header offset
emaste [Fri, 23 Jan 2015 02:39:00 +0000 (02:39 +0000)]
crunchide: Correct 64-bit section header offset

For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44.
Instead of using an incorrect hardcoded offset, let the compiler
figure it out for us with offsetof().

MFC of r277259

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

9 years agoMFC r275595:
delphij [Fri, 23 Jan 2015 00:54:56 +0000 (00:54 +0000)]
MFC r275595:

Use calloc() instead of malloc() + bzero().  This also gets rid of a warning
because bzero is defined by strings.h which is not included in thread_pool.c.

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

9 years agoMFC r275594: MFV r275540:
delphij [Fri, 23 Jan 2015 00:44:14 +0000 (00:44 +0000)]
MFC r275594: MFV r275540:

When importing a pool, don't assume that the passed pool configuration
at vdev_load is always vaild.  It's possible that a stale configuration
that comes with extra vdevs, where metaslab_init() would fail because
of lower layer returns error.

Change the code to make metaslab_init() handle and return errors from
lower layer and pass it back to upper layer and handle it there.

Illumos issue:
    5213 panic in metaslab_init due to space_map_open returning ENXIO

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

9 years agoMFC r275579: MFV r275537:
delphij [Fri, 23 Jan 2015 00:40:43 +0000 (00:40 +0000)]
MFC r275579: MFV r275537:

Illumos issue:
   5316 allow smbadm join to use RPC

(Due to our lack of smbsrv this is mostly no-op on
FreeBSD)

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

9 years agoMFC r275563: MFV r275536:
delphij [Fri, 23 Jan 2015 00:36:17 +0000 (00:36 +0000)]
MFC r275563: MFV r275536:

Illumos issue:
    3363 Mark non-returning functions in ctftools

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

9 years agoMFC r276806:
ngie [Fri, 23 Jan 2015 00:35:47 +0000 (00:35 +0000)]
MFC r276806:

r276806 (by ngie):

  Remove unnecessary .include of bsd.own.mk

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276671,r277357:
ngie [Fri, 23 Jan 2015 00:34:19 +0000 (00:34 +0000)]
MFC r276671,r277357:

r276671 (by ngie):

  Expect :arithmetic_ops_body to fail with syntax errors on FreeBSD

  Sponsored by: EMC / Isilon Storage Division

r277357 (by ngie):

  Expect :overflow to fail with FreeBSD's expr as it doesn't have stringent
  overflow checks like NetBSD's expr does

  PR: 196867

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

9 years agoMFC r277453:
ngie [Fri, 23 Jan 2015 00:27:37 +0000 (00:27 +0000)]
MFC r277453:

r277453 (by ngie):

  Garbage collect a prove test wrapper

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r275562: MFV r275535:
delphij [Fri, 23 Jan 2015 00:27:08 +0000 (00:27 +0000)]
MFC r275562: MFV r275535:

Unexpand ISP2() and MSEC2NSEC().

Illumos issue:
    5255 uts shouldn't open-code ISP2

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

9 years agoMFC r275561: MFV r275534:
delphij [Fri, 23 Jan 2015 00:23:48 +0000 (00:23 +0000)]
MFC r275561: MFV r275534:

Sync with Illumos.  This have no effect to FreeBSD.

Illumos issue:
    5285 pass in cpu_pause_func via pause_cpus

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

9 years agoMFC r275533:
delphij [Fri, 23 Jan 2015 00:19:58 +0000 (00:19 +0000)]
MFC r275533:

Sync with Illumos.  This have no effect to FreeBSD.

Illumos issue:
    5100 sparc build failed after 5004

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

9 years agoMFC r276832 (partial), r277099
pfg [Thu, 22 Jan 2015 21:41:41 +0000 (21:41 +0000)]
MFC r276832 (partial), r277099

Avoid a warning from gcc48.
Replace __inline GNUism with the standard inline.

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

9 years agoMFC r274816:
brooks [Thu, 22 Jan 2015 21:17:58 +0000 (21:17 +0000)]
MFC r274816:

Add FPU support for MIPS setjmp(3)/longjmp(3).

This change saves/restores the callee-saved MIPS floating point
registers as documented by the o32/n32/n64 spec ("MIPSpro N32
ABI Handbook", Table 2-1) for the _setjmp(3), _longjmp(3),
setjmp(3) and longjmp(3) C library functions.  This is only
included when the C library is built with hardware floating point
support (or when "SOFTFLOAT" is not defined).

Submitted by: sson
Sponsored by: DARPA, AFRL

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

9 years agoMFC r277236:
kib [Thu, 22 Jan 2015 09:07:02 +0000 (09:07 +0000)]
MFC r277236:
For sigaction(2), ignore possible garbage in sa_flags for sa_handler
== SIG_DFL or SIG_IGN.

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

9 years agoMFC r277211:
kib [Thu, 22 Jan 2015 09:02:58 +0000 (09:02 +0000)]
MFC r277211:
fcntl F_O{GET,SET}LK take pointer as the arg, handle them properly for
compat32.

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

9 years agoMFC r277216:
gjb [Thu, 22 Jan 2015 02:24:09 +0000 (02:24 +0000)]
MFC r277216:
  Evaluate running userland/kernel version in daily
  periodic(8) run, taken from uname(1) '-U' and '-K'
  flags.

Sponsored by: The FreeBSD Foundation

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