]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
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

9 years agoMFC 272666: Fix build for i386 kernels with out 'I686_CPU'.
jhb [Wed, 21 Jan 2015 17:59:32 +0000 (17:59 +0000)]
MFC 272666: Fix build for i386 kernels with out 'I686_CPU'.

Reported by: Mike Tancsa <mike@sentex.net>

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

9 years agoMFC r276063:
smh [Wed, 21 Jan 2015 09:45:48 +0000 (09:45 +0000)]
MFC r276063:
Standardise on illumos for #ifdef's in zvol.c

MFC r276066:
Refactor zvol locking to minimise diff with upstream

MFC r276069:
Fix panic when resizing ZFS zvol's

Sponsored by: Multiplay

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

9 years agoMFC r272509 (by delphi):
smh [Wed, 21 Jan 2015 09:39:20 +0000 (09:39 +0000)]
MFC r272509 (by delphi):
Diff reduction with upstream

Sponsored by: Multiplay

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

9 years agoMFC r275907:
ngie [Tue, 20 Jan 2015 23:39:08 +0000 (23:39 +0000)]
MFC r275907:

r275907 (by ngie):

  Fix building/installing tests when TESTSBASE != /usr/tests

  The work in r258233 hardcoded the assumption that tests was the last component
  of the tests tree by pushing tests as an explicit prefix for the paths in
  BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
  of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
  provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

  One thing that r258233 did properly though was remove "/usr/tests" creation
  from BSD.usr.dist -- that should have not been there in the first place. That
  was an "oops" on my part for the work that was originally committed in r241823

  Phabric: D1301
  Reviewed by: imp
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r267004,r274592:
ngie [Tue, 20 Jan 2015 21:59:48 +0000 (21:59 +0000)]
MFC r267004,r274592:

r267004 (by gahr):

  - Use strlen instead of hardcoding a number
  - Terminate a sentence with a period

  Approved by: cognet

r274592 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase and
  rename as lib/libc/stdio/fmemopen2_test

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276590:
ngie [Tue, 20 Jan 2015 21:48:42 +0000 (21:48 +0000)]
MFC r276590:

r276590 (by jilles):

  Link lib/libc/c063 tests to the build.

  Some files lack required #include <sys/stat.h>. The #ifdef is per ngie's
  request; the includes are clearly necessary for struct stat.

  The faccessat test fails because it tries to use AT_SYMLINK_NOFOLLOW with
  faccessat(), which is not specified by POSIX.1-2008.

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

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

9 years agoMFC r276318:
ngie [Tue, 20 Jan 2015 21:46:04 +0000 (21:46 +0000)]
MFC r276318:

r276318 (by ngie):

  Build/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes

  Reported by: Beeblebrox <zaphod@berentweb.com>

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

9 years agoMFC r274075,r274581,r274582,r274595:
ngie [Tue, 20 Jan 2015 21:42:40 +0000 (21:42 +0000)]
MFC r274075,r274581,r274582,r274595:

r274075 (by ngie):

  Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately
  500 new testcases

  Various TODOs have been sprinkled around the Makefiles for items that even need
  to be ported (missing features), testcases have issues with building/linking, or
  issues at runtime.

  A variant of this code has been tested extensively on amd64 and i386
  10-STABLE/11-CURRENT for several months without issue. It builds on other
  architectures, but the code will remain off until I have prove it works on
  virtual hardware or real hardware on other architectures

  In collaboration with: pho, Casey Peel <casey.peel@isilon.com>
  Sponsored by: EMC / Isilon Storage Division

r274581 (by ngie):

  Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase and
  rename as lib/libc/gen/arc4random_test

  Sponsored by: EMC / Isilon Storage Division

r274582 (by ngie):

  Remove test-arc4random from this Makefile so others can continue to use
  this as-is for the time being

r274595 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase and
  Rename as lib/libc/stdio/fpclassify2_test

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277128:
trasz [Tue, 20 Jan 2015 20:44:16 +0000 (20:44 +0000)]
MFC r277128:

Fix detection of ext2/ext3 filesystems that lack labels.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276704:
trasz [Tue, 20 Jan 2015 20:42:55 +0000 (20:42 +0000)]
MFC r276704:

Fix memory leaks.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276703:
trasz [Tue, 20 Jan 2015 20:41:32 +0000 (20:41 +0000)]
MFC r276703:

Remove leftovers.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275680:
trasz [Tue, 20 Jan 2015 20:39:29 +0000 (20:39 +0000)]
MFC r275680:

Add fstyp(8).  This utility, named after its SVR4 counterpart, detects
filesystems.  It differs from file(1) in that it gives machine-parseable
output, it outputs filesystem labels, doesn't get confused by other
formats metadata, and runs in Capsicum sandbox.

Differential Revision: https://reviews.freebsd.org/D1255
Relnotes: yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276892:
hselasky [Tue, 20 Jan 2015 05:12:30 +0000 (05:12 +0000)]
MFC r276892:
Add support for USB device side mode to the USB modem driver.

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

9 years agoMFC r276825 and r277372:
hselasky [Tue, 20 Jan 2015 05:00:38 +0000 (05:00 +0000)]
MFC r276825 and r277372:
Allow a block size of zero to mean 512 bytes, which is the most common
block size for USB disks. This fixes support for "Action Cam SJ4000".

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

9 years agoMFC r276491:
bryanv [Mon, 19 Jan 2015 17:02:30 +0000 (17:02 +0000)]
MFC r276491:

  Add softc flag for when the indirect descriptor feature was negotiated

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

9 years agoMFC r276489:
bryanv [Mon, 19 Jan 2015 17:00:53 +0000 (17:00 +0000)]
MFC r276489:

  Use the appropriate IPv4 or IPv6 TSO HW assist flag

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

9 years agoMFC r277055:
kib [Mon, 19 Jan 2015 11:07:29 +0000 (11:07 +0000)]
MFC r277055:
Revert r263475: TDP_DEVMEMIO no longer needed.

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

9 years agoMFC r277051:
kib [Mon, 19 Jan 2015 11:02:23 +0000 (11:02 +0000)]
MFC r277051:
Fix several issues with /dev/mem and /dev/kmem devices on amd64.

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

9 years agoMFH: r277085
brueffer [Mon, 19 Jan 2015 10:57:00 +0000 (10:57 +0000)]
MFH: r277085

Fix a typo in the FFS maxbpg option, it was erroneously spelled maxbpf.

The error has been reported to and fixed in the NetBSD upstream version as well.

PR:             196598
Submitted by:   Dan McGregor

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

9 years agoMFC r277047:
kib [Mon, 19 Jan 2015 10:52:55 +0000 (10:52 +0000)]
MFC r277047:
For x86, read MAXPHYADDR into variable cpu_maxphyaddr.

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

9 years agoMFC r276805:
ngie [Mon, 19 Jan 2015 07:29:28 +0000 (07:29 +0000)]
MFC r276805:

X-MFC note: the svn:mergeinfo for this MFC was accidentally committed via
            r277371

r276805 (by ngie):

  Build contrib/ofed/usr.{bin,lib} in parallel

  Sponsored by: EMC / Isilon Storage Division

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