]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
8 years agoMFC r284297: several lockstat improvements
avg [Wed, 1 Jul 2015 10:17:17 +0000 (10:17 +0000)]
MFC r284297: several lockstat improvements

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

8 years agoMFH (r228976): UTFize
des [Wed, 1 Jul 2015 08:06:15 +0000 (08:06 +0000)]
MFH (r228976): UTFize
MFH (r243076): check range of gid
MFH (r243083): fix possible overflow in error counter
MFH (r275765): clean up, reindent, add special case for + lines

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

8 years agoMFC r284741
davidcs [Tue, 30 Jun 2015 21:19:27 +0000 (21:19 +0000)]
MFC r284741

Updated Copyright information
Added support for the following:
    - iSCSI TLV (requires 64 Tx and 32 Rx rings
    - 9K receive buffers for jumbo frames (feature may be enabled/disabled)
    - builtin firmware, bootloader and minidump template
    - quick stats
    - async event handling for SFP insertion/removal and DCBX changes
    - Configuring DCBX and interrupt coalescing parameters

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

8 years agoMFC r284739
davidcs [Tue, 30 Jun 2015 20:17:38 +0000 (20:17 +0000)]
MFC r284739
tx_mtx should be grabbed before calling buf_ring_dequeue_sc()

Submitted by:Attilio.Rao@isilon.com

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

8 years agoreverse r284973
davidcs [Tue, 30 Jun 2015 20:11:48 +0000 (20:11 +0000)]
reverse r284973

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

8 years agoMFC r284739
davidcs [Tue, 30 Jun 2015 20:01:24 +0000 (20:01 +0000)]
MFC r284739
  tx_mtx should be grabbed before calling buf_ring_dequeue_sc()

Submitted by: Attilio.Rao@isilon.com

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

8 years agoMFC r284470
davidcs [Tue, 30 Jun 2015 19:59:19 +0000 (19:59 +0000)]
MFC r284470
In bxe_init_mcast_macs_list(): mc_mac->mac needs to point to the multicast mac address
In bxe_set_mc_list(): added missing BXE_MCAST_UNLOCK()
In __ecore_vlan_mac_h_exec_pending(): need to check for ECORE_PENDING

Submitted by:gary.zambrano@qlogic.com

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

8 years agoMFC r284335
davidcs [Tue, 30 Jun 2015 19:53:59 +0000 (19:53 +0000)]
MFC r284335

PHY LOCK acquires the hardware lock via bxe_acquire_phy_lock() and releases it via bxe_release_phy_lock(). It was simply acquiring a mutex earlier which can cause the PHY to use bogus values. Fixes intermittent link failures.

bxe_ioctl() completes all functions within its context as opposed to a taskqueue earlier.

bxe_handle_rx_mode_tq() no longer required. bxe_set_rx_mode() handles the functionality within its context

Submitted by:gary.zambrano@qlogic.com

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

8 years agoMFH (r277695): allow tracing dlfunc() / dlsym() events
des [Tue, 30 Jun 2015 15:21:18 +0000 (15:21 +0000)]
MFH (r277695): allow tracing dlfunc() / dlsym() events

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

8 years agoMFH (r270391): don't set rc_debug in /etc/defaults/rc.conf
des [Tue, 30 Jun 2015 13:34:46 +0000 (13:34 +0000)]
MFH (r270391): don't set rc_debug in /etc/defaults/rc.conf

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

8 years agoMFH (r283578): import new moduli from upstream
des [Tue, 30 Jun 2015 12:57:35 +0000 (12:57 +0000)]
MFH (r283578): import new moduli from upstream

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

8 years agoMFC r284858:
tijl [Tue, 30 Jun 2015 08:39:34 +0000 (08:39 +0000)]
MFC r284858:

Enable the use of __builtin_va_* for ICC.

PR: 198822
Submitted by: Sergey Melnikov <sergey.melnikov@intel.com>

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

8 years agoProvide a temporary bandaid for libmagic by lowering WARNS to 1.
delphij [Mon, 29 Jun 2015 18:11:10 +0000 (18:11 +0000)]
Provide a temporary bandaid for libmagic by lowering WARNS to 1.
The defined but unused warnings are legimite but not really fatal.

Reported by: kib

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

8 years agoMFC r282115, r282152, r282201
pfg [Mon, 29 Jun 2015 17:58:45 +0000 (17:58 +0000)]
MFC r282115, r282152, r282201
MFV r282150
libgomp: Update to version 4.3.5.
bring initial BSD support from upstream.

This was not meant to be MFC'd at first but the original OMP support
for FreeBSD was in very poor shape.  The effect of this change should
be minimal as all ports are already using the version of libgomp that
comes with the gcc ports.

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

8 years agoDocument FreeBSD-EN-15:06.file, FreeBSD-EN-15:07.zfs,
gjb [Thu, 25 Jun 2015 20:01:27 +0000 (20:01 +0000)]
Document FreeBSD-EN-15:06.file, FreeBSD-EN-15:07.zfs,
FreeBSD-EN-15:08.sendmail, FreeBSD-SA-15:10.openssl.

Sponsored by: The FreeBSD Foundation

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

8 years agorevert local hack that sneaked into r284804
avg [Thu, 25 Jun 2015 11:32:41 +0000 (11:32 +0000)]
revert local hack that sneaked into r284804

Pointy hat to: avg

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

8 years agoMFC r284308: MFV r284042: 1778 Assertion failed: rn->rn_nozpool == B_FALSE
avg [Thu, 25 Jun 2015 08:10:23 +0000 (08:10 +0000)]
MFC r284308: MFV r284042: 1778 Assertion failed: rn->rn_nozpool == B_FALSE

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

8 years agoAdd a note on the second sendmail fix for WeakDH interoperability.
gshapiro [Thu, 25 Jun 2015 01:55:27 +0000 (01:55 +0000)]
Add a note on the second sendmail fix for WeakDH interoperability.

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

8 years agoMFC: An additional fix for the openssl Weak DH remediation:
gshapiro [Thu, 25 Jun 2015 01:53:45 +0000 (01:53 +0000)]
MFC: An additional fix for the openssl Weak DH remediation:

     The import of openssl to address the FreeBSD-SA-15:10.openssl security
     advisory includes a change which rejects handshakes with DH parameters
     below 768 bits.  sendmail releases prior to 8.15.2 (not yet released),
     defaulted to a 512 bit DH parameter setting for client connections.

     The first fix committed last week changed the default to 1024 bits.

     This commit fixes the case where the DHParameters option is set to a
     file which doesn't exist, which is the case on newer versions of
     FreeBSD which enable STARTTLS by default by auto-creating TLS
     certificates.

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

8 years agoMFC r284237,r284277:
delphij [Wed, 24 Jun 2015 23:04:07 +0000 (23:04 +0000)]
MFC r284237,r284277:

file 5.23.

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

8 years agoMFC r284306: MFV r284036: 5961 Fix stack overflow in zfs_create_fs
avg [Wed, 24 Jun 2015 14:42:05 +0000 (14:42 +0000)]
MFC r284306: MFV r284036: 5961 Fix stack overflow in zfs_create_fs

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

8 years agoMFC r284303: MFV r283534: 5515 dataset user hold doesn't reject empty tags
avg [Wed, 24 Jun 2015 14:39:38 +0000 (14:39 +0000)]
MFC r284303: MFV r283534: 5515 dataset user hold doesn't reject empty tags

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

8 years agoMFC r284301: MFV r284040: check that datasets are snapshots
avg [Wed, 24 Jun 2015 14:37:19 +0000 (14:37 +0000)]
MFC r284301: MFV r284040: check that datasets are snapshots

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

8 years agoMFC r284309: zfs clone should not mount the clone if canmount == noauto
avg [Wed, 24 Jun 2015 14:32:05 +0000 (14:32 +0000)]
MFC r284309: zfs clone should not mount the clone if canmount == noauto

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

8 years agoMFH: r284250
brueffer [Wed, 24 Jun 2015 12:48:55 +0000 (12:48 +0000)]
MFH: r284250

Consistently use trailing whitespace in passphrase prompts.

PR:        193496
Submitted by:    Fabian Keil

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

8 years agoMFC r284346:
dim [Sat, 20 Jun 2015 13:30:09 +0000 (13:30 +0000)]
MFC r284346:

Fix the following clang 3.7.0 warnings in lib/libfetch/http.c:

    lib/libfetch/http.c:1628:26: error: address of array 'purl->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = purl->user ?
                                                   ~~~~~~^~~~ ~
    lib/libfetch/http.c:1630:30: error: address of array 'purl->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = purl->pwd?
                                                       ~~~~~~^~~~
    lib/libfetch/http.c:1657:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1659:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~
    lib/libfetch/http.c:1669:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1671:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~

Since url->user and url->pwd are arrays, they can never be NULL, so the
checks can be removed.

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

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

8 years agoMFC r284167:
dim [Sat, 20 Jun 2015 13:25:28 +0000 (13:25 +0000)]
MFC r284167:

Merge r283870 from amd64:

Remove unneeded NULL checks in trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed.  In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier for curproc->p_pid.

Requested by: jhb

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

8 years agoMFC r284229: Add support for '_' occurring at the beginning or
ume [Thu, 18 Jun 2015 16:43:38 +0000 (16:43 +0000)]
MFC r284229: Add support for '_' occurring at the beginning or
end of a name component.

PR: 176093
Submitted by: landonf__at__bikemonkey.org

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

8 years agoMFC r264038 (theraven)
delphij [Wed, 17 Jun 2015 19:13:13 +0000 (19:13 +0000)]
MFC r264038 (theraven)

Fix an issue where the locale and rune locale could become out of sync,
causing mb* functions (and similar) to be called with the wrong data
(possibly a null pointer, causing a crash).

PR: standards/188036

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

8 years agoMFC r284025,284032: dnode_read: handle hole blocks in zfs boot code
avg [Wed, 17 Jun 2015 11:48:00 +0000 (11:48 +0000)]
MFC r284025,284032: dnode_read: handle hole blocks in zfs boot code

PR: 199804

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

8 years agoMFC r284012:
hselasky [Wed, 17 Jun 2015 07:43:20 +0000 (07:43 +0000)]
MFC r284012:
Disable VGA PCI interrupts until a chipset driver is loaded for VGA
PCI devices. Else unhandled display adapter interrupts might freeze
the CPU or consume a lot of CPU.

PR: 156596

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

8 years agoMFC r284011:
hselasky [Wed, 17 Jun 2015 07:37:11 +0000 (07:37 +0000)]
MFC r284011:
Don't wait forever for USB data to be flushed.

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

8 years agoMFC r284125:
hselasky [Wed, 17 Jun 2015 07:30:53 +0000 (07:30 +0000)]
MFC r284125:
Add new USB quirk.

PR: 200693

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

8 years agoMFC r280991:
hselasky [Wed, 17 Jun 2015 07:28:51 +0000 (07:28 +0000)]
MFC r280991:
Extend fixes made in r278103 and r38754 by copying the complete packet
header and not only partial flags and fields. Firewalls can attach
classification tags to the outgoing mbufs which should be copied to
all the new fragments. Else only the first fragment will be let
through by the firewall. This can easily be tested by sending a large
ping packet through a firewall. It was also discovered that VLAN
related flags and fields should be copied for packets traversing
through VLANs. This is all handled by "m_dup_pkthdr()".

Regarding the MAC policy check in ip_fragment(), the tag provided by
the originating mbuf is copied instead of using the default one
provided by m_gethdr().

Tested by: Karim Fodil-Lemelin <fodillemlinkarim at gmail.com>
Sponsored by: Mellanox Technologies
PR: 7802

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

8 years agoAdd a note regarding the change to sendmail'c default DH parameter size
gshapiro [Wed, 17 Jun 2015 03:19:31 +0000 (03:19 +0000)]
Add a note regarding the change to sendmail'c default DH parameter size
for client connections.

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

8 years agoMFC: The import of openssl to address the FreeBSD-SA-15:10.openssl security
gshapiro [Wed, 17 Jun 2015 03:11:25 +0000 (03:11 +0000)]
MFC: The import of openssl to address the FreeBSD-SA-15:10.openssl security
     advisory includes a change which rejects handshakes with DH parameters
     below 768 bits.  sendmail releases prior to 8.15.2 (not yet released),
     defaulted to a 512 bit DH parameter setting for client connections.
     This commit chages that default to 1024 bits.  sendmail 8.15.2, when
     released well use a default of 2048 bits.

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

8 years agoMFC of 284397,tzdata9:
edwin [Mon, 15 Jun 2015 01:02:10 +0000 (01:02 +0000)]
MFC of 284397,tzdata9:

Update to tzdata2015e:

  Changes affecting future time stamps

    Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
    not 06-13 and 07-18 as we had guessed.  (Thanks to Milamber.)

    Assume Cayman Islands will observe DST starting next year, using US rules.
    Although it isn't guaranteed, it is the most likely.

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

8 years agoMFC 283546:
jhb [Sat, 13 Jun 2015 16:15:43 +0000 (16:15 +0000)]
MFC 283546:
Add KTR tracing for some MI ptrace events.

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

8 years agoMFC r283525: zfs: fixes for a full stream received into an existing dataset
avg [Fri, 12 Jun 2015 11:52:32 +0000 (11:52 +0000)]
MFC r283525: zfs: fixes for a full stream received into an existing dataset

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

8 years agoMFC r283939: userboot: enable bzipfs support
avg [Fri, 12 Jun 2015 11:41:47 +0000 (11:41 +0000)]
MFC r283939: userboot: enable bzipfs support

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

8 years agoMerge OpenSSL 0.9.8zg.
jkim [Thu, 11 Jun 2015 19:39:27 +0000 (19:39 +0000)]
Merge OpenSSL 0.9.8zg.

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

8 years agoMFC r284022: Avoid ID conflict
achim [Tue, 9 Jun 2015 11:41:37 +0000 (11:41 +0000)]
MFC r284022: Avoid ID conflict

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

8 years agoMFC r283870:
dim [Mon, 8 Jun 2015 19:44:04 +0000 (19:44 +0000)]
MFC r283870:

Remove unneeded NULL checks in amd64's trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed.  In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier curproc->p_pid.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D2695

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

8 years agoMFC 233665: (just to ps.1)
jhb [Mon, 8 Jun 2015 18:59:14 +0000 (18:59 +0000)]
MFC 233665:  (just to ps.1)
mandoc complains loudly when <TAB>s are misused in columnated lists. Fix
this syntax violation and while I'm here also convert <TAB> to Ta and adjust
quotation marks in order to prevent this problem in the future.

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

8 years agoMFC 261811,282660,282706:
jhb [Sat, 6 Jun 2015 20:37:40 +0000 (20:37 +0000)]
MFC 261811,282660,282706:
Place VM objects on the object list when created and never remove them.

261811:
Fix function name in KASSERT().

282660:
Place VM objects on the object list when created and never remove them.
This is ok since objects come from a NOFREE zone and allows objects to
be locked while traversing the object list without triggering a LOR.

Ensure that objects on the list are marked DEAD while free or stillborn,
and that they have a refcount of zero.  This required updating most of
the pagers to explicitly mark an object as dead when deallocating it.
(Only the vnode pager did this previously.)

282706:
Satisfy vm_object uma zone destructor requirements after r282660 when
vnode object creation raced.

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

8 years agoMFC 281932:
jhb [Fri, 5 Jun 2015 20:38:22 +0000 (20:38 +0000)]
MFC 281932:
Rename the kld for oce(4) to if_oce.ko.  ifconfig(8) has special knowledge
about kld filenames for network drivers that requires them to follow the
pattern of if_<foo>.  This also fixes the existing documentation in the
manpage which says to use if_oce_load=YES in loader.conf.

PR: 199095

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

8 years agoMFC r283524: dsl_dataset_promote_check: ensure that shared snaps do not
avg [Fri, 5 Jun 2015 16:02:07 +0000 (16:02 +0000)]
MFC r283524: dsl_dataset_promote_check: ensure that shared snaps do not
become too long

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

8 years agoRework r281869 to not skip RTM announces for tunneling interfaces.
ae [Fri, 5 Jun 2015 07:34:52 +0000 (07:34 +0000)]
Rework r281869 to not skip RTM announces for tunneling interfaces.
This is direct commit to stable/9.

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

8 years agoMFC 281887:
jhb [Tue, 2 Jun 2015 19:20:39 +0000 (19:20 +0000)]
MFC 281887:
Reassign copyright statements on several files from Advanced
Computing Technologies LLC to Hudson River Trading LLC.

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

8 years agoMFC 282417:
jhb [Tue, 2 Jun 2015 15:12:33 +0000 (15:12 +0000)]
MFC 282417:
Various updates to the ftruncate(2) documentation:
- Note that ftruncate(2) can operate on shared memory objects and cross
  reference shm_open(2).
- Note that ftruncate(2) does not change the file position pointer (aka
  seek pointer) of the file descriptor.
- ftruncate(2) will fail with EINVAL for all sorts of other fd types than
  just sockets, so instead note that it fails for all but regular files and
  shared memory objects.
- Note that ftruncate(2) also appeared in 4.2BSD along with truncate(2).
  (Or at least the manpage for both appeared in 4.2, I did not check the
  kernel code itself to see if either predated 4.2.)

PR: 199472

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

8 years agoMFC 281170:
jhb [Tue, 2 Jun 2015 15:02:28 +0000 (15:02 +0000)]
MFC 281170:
vfork() first appeared in 3BSD which pre-dates 2.9BSD.  Verified via the
copy of 3BSD on disc 1 of "The CSRG Archives".

PR: 198612

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

8 years agoMFC: r283261
jkim [Mon, 1 Jun 2015 19:26:24 +0000 (19:26 +0000)]
MFC: r283261

Do not probe Intel PIIX4 south bridge quirks on amd64.

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

8 years agoMFC 283123:
jhb [Mon, 1 Jun 2015 18:08:56 +0000 (18:08 +0000)]
MFC 283123:
Fix two bugs that could result in PMC sampling effectively stopping.
In both cases, the the effect of the bug was that a very small positive
number was written to the counter. This means that a large number of
events needed to occur before the next sampling interrupt would trigger.
Even with very frequently occurring events like clock cycles wrapping all
the way around could take a long time. Both bugs occurred when updating
the saved reload count for an outgoing thread on a context switch.

First, the counter-independent code compares the current reload count
against the count set when the thread switched in and generates a delta
to apply to the saved count. If this delta causes the reload counter
to go negative, it would add a full reload interval to wrap it around to
a positive value. The fix is to add the full reload interval if the
resulting counter is zero.

Second, occasionally the raw counter value read during a context switch
has actually wrapped, but an interrupt has not yet triggered. In this
case the existing logic would return a very large reload count (e.g.
2^48 - 2 if the counter had overflowed by a count of 2). This was seen
both for fixed-function and programmable counters on an E5-2643.
Workaround this case by returning a reload count of zero.

PR: 198149
Sponsored by: Norse Corp, Inc.

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

8 years agoMFC r283117:
ae [Sun, 31 May 2015 22:51:16 +0000 (22:51 +0000)]
MFC r283117:
  Remove unneded mbuf length adjustment, M_PREPEND() already did that.

PR: 139387

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

8 years agoMFC r283274
davidcs [Fri, 29 May 2015 22:33:06 +0000 (22:33 +0000)]
MFC r283274

Submitted by: gary.zambrano@qlogic.com
Approved by:davidcs@freebsd.org

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

8 years agoMFC r283269
davidcs [Fri, 29 May 2015 22:27:48 +0000 (22:27 +0000)]
MFC r283269

Submitted by: gary.zambrano@qlogic.com
Approved by:davidcs@freebsd.org

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

8 years agoMFC r283254:
dim [Thu, 28 May 2015 06:45:13 +0000 (06:45 +0000)]
MFC r283254:

Ensure that the static structs emitted by the MODULE_DEPEND() and
MODULE_VERSION() macros don't end up as .comm symbols, when all the
version fields are zero.

Normally, such symbols will end up in .bss, but for kernel module
version objects, this can lead to "garbage" version numbers.

Fix this by instructing the compiler to always put these structs in the
.data segment instead.

Reported by: delphij, ae

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

8 years agoMFC r283064:
hselasky [Wed, 27 May 2015 13:25:26 +0000 (13:25 +0000)]
MFC r283064:
Fix an off-by-one error by adding proper range checks when parsing the
HDA association descriptors. This fixes a crash during device probe
for some HDA PCI devices.

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

8 years agoMFC r282475: zfs: do not hold an extra reference on a root vnode
avg [Mon, 25 May 2015 11:36:14 +0000 (11:36 +0000)]
MFC r282475: zfs: do not hold an extra reference on a root vnode

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

8 years agoMFC r282473: dmu_recv_end_check: don't leak hold if dsl_destroy_snapshot_check_impl...
avg [Mon, 25 May 2015 11:33:57 +0000 (11:33 +0000)]
MFC r282473: dmu_recv_end_check: don't leak hold if dsl_destroy_snapshot_check_impl fails

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

8 years agoMFC r282632: MFV r282630: 5809 Blowaway full receive in v1 pool causes kernel panic
avg [Mon, 25 May 2015 11:30:36 +0000 (11:30 +0000)]
MFC r282632: MFV r282630: 5809 Blowaway full receive in v1 pool causes kernel panic

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

8 years agoMFC r282881: Do not promote large async writes to sync.
mav [Sun, 24 May 2015 17:16:55 +0000 (17:16 +0000)]
MFC r282881: Do not promote large async writes to sync.

Present implementation of large sync writes is too strict and so can be
quite slow.  Instead of doing that, execute large async write in chunks,
syncing each chunk separately.

It would be good to fix large sync writes too, but I leave it to somebody
with more skills in this area.

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

8 years agoMFC r282594:
ae [Thu, 21 May 2015 08:32:52 +0000 (08:32 +0000)]
MFC r282594:
  m_dup() is supposed to give a writable copy of an mbuf chain. It uses
  m_dup_pkthdr(), that uses M_COPYFLAGS mask to copy m_flags field.
  If original mbuf chain has M_RDONLY flag, its copy also will have it.
  Reset this flag explicitly.

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

8 years agoMFC r282505:
hselasky [Thu, 21 May 2015 07:50:56 +0000 (07:50 +0000)]
MFC r282505:
Add new USB ID.

PR: 199843

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

8 years agoMFC r282017:
hselasky [Thu, 21 May 2015 07:46:01 +0000 (07:46 +0000)]
MFC r282017:
Allow DSP basename cloning to be disabled or enabled at boot and
runtime. This is useful when implementing OSS sound stacks in
userspace via libcuse for example.

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

8 years agoMFC r279726:
hselasky [Thu, 21 May 2015 07:42:46 +0000 (07:42 +0000)]
MFC r279726:
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR: 194062

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

8 years agoMFC r282652:
hselasky [Thu, 21 May 2015 07:07:28 +0000 (07:07 +0000)]
MFC r282652:
Ensure the USB audio driver doesn't attach twice on the same USB
device by grabbing all the USB audio device interfaces.

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

8 years agoMFC r282817:
hselasky [Thu, 21 May 2015 06:58:19 +0000 (06:58 +0000)]
MFC r282817:
Apply proper locking when iterating the multicast addresses and add a
missing check for NULL from a non-blocking "kzalloc()" function call.

Sponsored by: Mellanox Technologies

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

8 years agoMFC r282577:
hselasky [Thu, 21 May 2015 06:53:55 +0000 (06:53 +0000)]
MFC r282577:
Add support for DYMO LabelWriter PnP.

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

8 years agoMFC r280495:
hselasky [Thu, 21 May 2015 06:34:06 +0000 (06:34 +0000)]
MFC r280495:
Implement a simple OID number garbage collector. Given the increasing
number of dynamically created and destroyed SYSCTLs during runtime it
is very likely that the current new OID number limit of 0x7fffffff can
be reached. Especially if dynamic OID creation and destruction results
from automatic tests. Additional changes:

- Optimize the typical use case by decrementing the next automatic OID
sequence number instead of incrementing it. This saves searching time
when inserting new OIDs into a fresh parent OID node.

- Add simple check for duplicate non-automatic OID numbers.

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

8 years agoMFC of 283079,tzdata9:
edwin [Mon, 18 May 2015 21:17:19 +0000 (21:17 +0000)]
MFC of 283079,tzdata9:

Update to tzdata2015d:

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

  Changes affecting future time stamps

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

  Change affecting past and future time zone abbreviations

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

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

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

MFC r281928:

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

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

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

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

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

Update to tzdata2015c:

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

    Changes affecting future time stamps

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

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

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

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

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

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

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

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

MFC r264828:
Add patches corresponding to r264826 and r264827

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

MFC r266675:
Add the clang patch for r266674.

MFC r275651:
Add llvm patch corresponding to r275633.

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

MFC r275760:
Add clang patch corresponding to r275759.

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

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

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

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

MFC r266675:
Add the clang patch for r266674.

MFC r275651:
Add llvm patch corresponding to r275633.

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

MFC r275760:
Add clang patch corresponding to r275759.

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

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

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

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

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

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

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

MFC r264826 (by emaste):
Merge LLVM r202188:

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

  Paired commit with CFE r202185.

  rdar://problem/13690847

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

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

DwarfUnit -> CompileUnit

Sponsored by:       DARPA, AFRL

MFC r264827 (by emaste):
Merge Clang r202185:

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

  rdar://problem/13690847

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

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

Sponsored by: DARPA, AFRL

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

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

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

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

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

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

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

MFC r282747:

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

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

Sponsored by: EMC / Isilon Storage Division

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

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

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

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

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

r280893:

Cleanup and do minor refactoring before converting testcases to ATF

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

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

r280894:

Minor cleanup before converting to ATF testcases

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

r280895:

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

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

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

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

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

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

NetBSD removed the sorting in 2009.

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

PR: 53475
Reviewed by: bde (in 2004)

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

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

  PR: 180065

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

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

  PR: 118238

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

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

Sponsored by: The FreeBSD Foundation

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

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

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

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

PR: 196760

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

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

MFC r282075:

Convert this testcase over to a TAP format testcase

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

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

r281951:

Backport MHSIZE/MPKTHSIZE equivalents from head

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

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

This is a direct commit to stable/10

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

r281954:

MFC r279393:

Pad RX copy alignment calculation to avoid illegal memory accesses

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

X-MFC note (discussed with rwatson):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Sponsored by: Mellanox Technologies

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

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

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

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

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

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

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

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

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

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

Sponsored by: iXsystems, Inc.

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

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

The new value is more predictable with growing RAM size:

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

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