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

9 years agoMFC r276804:
ngie [Mon, 19 Jan 2015 07:24:18 +0000 (07:24 +0000)]
MFC r276804:

r276804 (by ngie):

  Fix 'make depend' before infiniband headers have been installed to build host
  by removing space between -I and the header directory

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277272:
ngie [Mon, 19 Jan 2015 07:19:56 +0000 (07:19 +0000)]
MFC r277272:

r277272 (by ngie):

  Don't call abort on usage errors; print out the usage message instead

  PR: 196793
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276798:
hselasky [Mon, 19 Jan 2015 07:18:59 +0000 (07:18 +0000)]
MFC r276798:
Fix handling of an error case when the MUSB driver is operating in USB
device side mode.

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

9 years agoMFC r277044:
hselasky [Mon, 19 Jan 2015 07:06:15 +0000 (07:06 +0000)]
MFC r277044:
Increase the maximum number of dynamic USB quirks. USB memory stick
devices which don't support the synchronize cache SCSI command are
likely to also not support the prevent-allow medium removal SCSI
command.

PR: 185747

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

9 years agoMFC r277212:
hselasky [Mon, 19 Jan 2015 06:57:51 +0000 (06:57 +0000)]
MFC r277212:
Fix compilation for 32-bit architectures.

PR: 196580
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276959:
np [Sun, 18 Jan 2015 20:38:38 +0000 (20:38 +0000)]
MFC r276959:
cxgb: replace r273280 with a more comprehensive fix.

Poll for link state when the link is down, even for interrupt capable
PHYs.

Allow PHYs to report a dubious "partial" link.  If this state is seen 3
consecutive times (each check is ~1s apart) then reset the PHY.  This is
a workaround for a situation where repeatedly toggling the link from the
peer gets the AEL2005 PHY into a state where it never establishes a PCS
block lock even when everything is in order.

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

9 years agoFix known issues which blow up the process after dlopen("libthr.so")
kib [Sun, 18 Jan 2015 11:54:20 +0000 (11:54 +0000)]
Fix known issues which blow up the process after dlopen("libthr.so")
(or loading a dso linked to libthr.so into process which was not
linked against threading library).

MFC r276630:
Remove interposing, fix malloc, reinstall signal handlers wrappers on
libthr load.

MFC r276681:
Avoid calling internal libc function through PLT or accessing data
though GOT.

MFC r277032:
Reduce the size of the interposing table and amount of
cancellation-handling code in the libthr.

MFC note:
r276646 ("do not erronously export 'openat' symbol from rtld") is not
applicable to stable/10 yet, since PATHFDS support was not merged.

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

9 years agoMFC r277023:
kib [Sun, 18 Jan 2015 09:49:32 +0000 (09:49 +0000)]
MFC r277023:
Avoid excessive flushing and do missed neccessary flushing in the IOMMU
page table update code.

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

9 years agoMFC r276517:
dim [Sat, 17 Jan 2015 12:54:02 +0000 (12:54 +0000)]
MFC r276517:

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

  Rename some internal templates to avoid conflict with complier
  intrinsics. __is_constructible --> __libcpp_is_constructible,
  __is_nothrow_constructible --> __libcpp_is_nothrow_constructible, and
  __is_nothrow_assignable --> __libcpp_is_nothrow_assignable. No
  functionality change.

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

  Use compiler intrinsic __is_constructible if available

This should fix building parts of world with -std=c++11 enabled.

Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>

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

9 years agoMFC r276901:
ae [Sat, 17 Jan 2015 11:43:13 +0000 (11:43 +0000)]
MFC r276901:
  Move the recursion detection code into separate function
  gif_check_nesting(). Also make MTAG_GIF definition private to if_gif.c.

MFC r276907:
  Restore Ethernet-within-IP Encapsulation support that was broken after
  r273087. Move all checks from gif_output() into gif_transmit(). Previously
  they were checked always, because if_start always called gif_output.
  Now gif_transmit() can be called directly from if_bridge() code and we need
  do checks here.

  PR: 196646

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

9 years agoMFC r277147:
dim [Sat, 17 Jan 2015 11:41:04 +0000 (11:41 +0000)]
MFC r277147:

Since the merge of file 5.21 in r276415 and r276416, stable/9 and
stable/10 cannot be built from FreeBSD 8.x.  This is because the
build-tools stage requires libmagic, but lib/libmagic/config.h was
generated on head, and it now enables using the xlocale.h APIs, which
are not supported on 8.x (and on 9.x before __FreeBSD_version 900506).

See also the start of this thread on -stable:
https://lists.freebsd.org/pipermail/freebsd-stable/2015-January/081521.html

To fix this, conditionalize the use of xlocale.h APIs to make
bootstrapping from older FreeBSD versions work correctly.

Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D1518

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

9 years agoMFC r276906:
dchagin [Sat, 17 Jan 2015 06:18:45 +0000 (06:18 +0000)]
MFC r276906:

Allow clock_getcpuclockid() on the CPU-time clock for zombie process.
Posix does not prohibit this.

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

9 years agoMFC r272947, r272950:
pfg [Sat, 17 Jan 2015 01:20:28 +0000 (01:20 +0000)]
MFC r272947, r272950:

tcpd: complete function prototypes.
tcpd.h: add prototype for hosts_ctl

This clears up at least a build issues on mysql-server
ports. While here also replace some spaces with tabs
in our headers.

PR: 32808
PR: 42336

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

9 years agoMFC r277158:
jamie [Sat, 17 Jan 2015 01:16:03 +0000 (01:16 +0000)]
MFC r277158:

  Don't set prison's pr_ip4s or pr_ip6s to -1.

PR: 196474

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

9 years agoMFC r276412:
nwhitehorn [Wed, 14 Jan 2015 21:23:46 +0000 (21:23 +0000)]
MFC r276412:

Fix loader's ability to read the 10.1 release PowerPC ISOs. There appears to
be some kind of problem with the version of makefs used for these disks.
There may be a better way to handle this problem, so I've set the MFC
timer for a fairly long time period.

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

9 years agoMFC r275752:
trasz [Wed, 14 Jan 2015 11:31:31 +0000 (11:31 +0000)]
MFC r275752:

Fix quick_exit(3) manual page to match reality - the status was missing.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275510:
trasz [Wed, 14 Jan 2015 11:29:16 +0000 (11:29 +0000)]
MFC r275510:

Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as the
former is obsolete.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276981:
hselasky [Wed, 14 Jan 2015 05:29:35 +0000 (05:29 +0000)]
MFC r276981:
Fix support for ConnectX2 hardware.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r276419:
wblock [Tue, 13 Jan 2015 22:51:44 +0000 (22:51 +0000)]
MFC r276419:

Move the explanation for examples before the example itself.  Add
numerous QEMU examples and explanations supplied by sbruno, with thanks
to Ingo Schwarze for help with the mdoc markup.  Code, text, testing,
proofreading, cinematography, stunts, and the haunting theme song
supplied by sbruno.

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

9 years agoMFC r276426:
wblock [Tue, 13 Jan 2015 22:41:38 +0000 (22:41 +0000)]
MFC r276426:

Remove the svn:executable property from iscsi.4.

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

9 years agoMFC r276749:
hselasky [Tue, 13 Jan 2015 17:07:30 +0000 (17:07 +0000)]
MFC r276749:
Fixes and updates for the Linux compatibility layer:
- Remove unsupported "bus" field from "struct pci_dev".
- Fix logic inside "pci_enable_msix()" when the number of allocated
  interrupts are less than the number of available interrupts.
- Update header files included from "list.h".
- Ensure that "idr_destroy()" removes all entries before destroying
  the IDR root node(s).
- Set the "device->release" function so that we don't leak memory at
  device destruction.
- Use FreeBSD's "log()" function for certain debug printouts.
- Put parenthesis around arguments inside the min, max, min_t and max_t macros.
- Make sure we don't leak file descriptors by dropping the extra file
  reference counts done by the FreeBSD kernel when calling falloc()
  and fget_unlocked().

MFC after: 1 week
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276879:
hselasky [Tue, 13 Jan 2015 16:57:02 +0000 (16:57 +0000)]
MFC r276879:
Don't mask the IP-address when doing multicast IP over infiniband.

PR: 196631
Sponsored by: Mellanox Technologies

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

9 years agoMFC:
ganbold [Tue, 13 Jan 2015 07:45:16 +0000 (07:45 +0000)]
MFC:
Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.

Approved by:    stas (mentor)

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

9 years agoMFC r273048 by jhb:
dchagin [Tue, 13 Jan 2015 06:23:38 +0000 (06:23 +0000)]
MFC r273048 by jhb:

Fix most of the warnings in kdump(1).

    r276758:

Eliminate new clang warnings.

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

9 years agoBump version after r277086. yacc(1) is now built with maximum MAXTABLE.
jkim [Mon, 12 Jan 2015 20:27:06 +0000 (20:27 +0000)]
Bump version after r277086.  yacc(1) is now built with maximum MAXTABLE.

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

9 years agoMFC: r274460, r274475
jkim [Mon, 12 Jan 2015 20:14:31 +0000 (20:14 +0000)]
MFC: r274460, r274475

Increase MAXTABLE to the maxmimum possible value and regen test cases.

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

9 years agoMFH: r276695
brueffer [Mon, 12 Jan 2015 10:43:40 +0000 (10:43 +0000)]
MFH: r276695

Add a very basic manpage for the Etherswitch framework.

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

9 years agoMFC r276012:
smh [Mon, 12 Jan 2015 10:25:07 +0000 (10:25 +0000)]
MFC r276012:
Add a constant AHCI_MAX_IRQS removing magic number

MFC r276013:
Clamp ahci max irq's to AHCI_MAX_IRQS

MFC r276016:
Return the error from ahci_setup_interrupt in ahci_attach

MFC r276019:
style (9) nits

Sponsored by: Multiplay

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

9 years agoMFH (r273114, r273124): disable SSLv3 by default.
des [Mon, 12 Jan 2015 10:02:23 +0000 (10:02 +0000)]
MFH (r273114, r273124): disable SSLv3 by default.

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

9 years agoDocument r276991, Remove termcap(5) entry reordering; install
gjb [Mon, 12 Jan 2015 03:14:54 +0000 (03:14 +0000)]
Document r276991, Remove termcap(5) entry reordering; install
termcap(5) verbatim instead.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r276986, hint.acpi_throttle.0.disabled="1" and
gjb [Mon, 12 Jan 2015 02:50:22 +0000 (02:50 +0000)]
Document r276986, hint.acpi_throttle.0.disabled="1" and
hint.p4tcc.0.disabled="1" by default.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC discussed with: jilles, -developers
ngie [Sun, 11 Jan 2015 19:15:28 +0000 (19:15 +0000)]
MFC discussed with: jilles, -developers

MFC r266971:

  - Return NULL and set errno to EINVAL if size is 0 (as required by POSIX).
  Update the manpage to reflect this change.
  - Always set the current position to the first null-byte when opening in append
  mode. This makes the implementation compatible with glibc's. Update the test
  suite.

  Reported by: pho
  Approved by: cognet

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

9 years agoCorrect comparison of IPv6 wildcard address.
ume [Sun, 11 Jan 2015 18:39:27 +0000 (18:39 +0000)]
Correct comparison of IPv6 wildcard address.

MFH: r276814

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

9 years agoMFC r275687,r275692:
ngie [Sun, 11 Jan 2015 18:13:56 +0000 (18:13 +0000)]
MFC r275687,r275692:

Relnotes: yes

r275687:

  Remove termcap entry reordering; install the file verbatim instead

  termcap entry reordering requires ex (which is available via usr.bin/vi), which
  breaks on build hosts where installworld is run with MK_VI == no (or when
  make delete-old is run on ^/projects/building-blocks as vi, et al, are
  removed on the branch when the knob is tweaked to => "no")

  Reordering termcap was believed to improve performance, but the file is now
  accessed via /etc/termcap.db, so /etc/termcap (and /usr/share/misc/termcap by
  proxy) access is less preferred.

  Reordering the file broke the historical comment <-> entry mapping as well,
  which could muddle the purpose of entries in the file, so it could be
  potentially harmful to readers in its reordered state.

  Discussion took place on hackers@ here:
  https://lists.freebsd.org/pipermail/freebsd-hackers/2014-December/046657.html

  Discussed with: -hackers, mp
  Sponsored by: EMC / Isilon Storage Division

r275692:

  Fix building termcap.db when make obj is run beforehand from a clean tree by
  using make variables for the filenames, which helps resolve pathing
  appropriately when running cap_mkdb

  Pointyhat to: me

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

9 years agoMFC r265329:
nwhitehorn [Sun, 11 Jan 2015 17:10:07 +0000 (17:10 +0000)]
MFC r265329:
Disable ACPI and P4TCC throttling by default, following discussion on
freebsd-current. These CPU speed control techniques are usually unhelpful
at best. For now, continue building the relevant code into GENERIC so that
it can trivially be re-enabled at runtime if anyone wants it.

Relnotes: yes

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

9 years agoMFC r276815:
hselasky [Sun, 11 Jan 2015 14:36:26 +0000 (14:36 +0000)]
MFC r276815:
Fix for compilation issue. Don't use the "abs()" function for unsigned
computations.

PR: 196597
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276823:
hselasky [Sun, 11 Jan 2015 14:22:00 +0000 (14:22 +0000)]
MFC r276823:
Add makefile for the "osmtest" utility. While at it:
- Fix depend target by removing a space after an "-I" inclusion option.
- Fix some minor compile issues in the "osmtest" utility.

PR: 196580

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

9 years agoMFC r276611:
hselasky [Sun, 11 Jan 2015 13:59:25 +0000 (13:59 +0000)]
MFC r276611:
Make sure an error case exits unlocked.

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

9 years agoMFC r276534:
hselasky [Sun, 11 Jan 2015 12:25:10 +0000 (12:25 +0000)]
MFC r276534:
The "vt_suspend_flush_timer()" function is sometimes called locked
which prevents us from doing a "callout_drain()" call. The callout in
question has a lock associated with it and we are not freeing the
callout. That means we can use the "callout_stop()" function to
atomically stop the callback iff the "callout_stop()" function is
called locked. This patch applies proper locking to "callout_stop()"
and replaces a "callout_drain()" with a "callout_stop()".

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