]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r284916: mv: Improve message when moving two or more files to
jilles [Sat, 22 Aug 2015 21:35:35 +0000 (21:35 +0000)]
MFC r284916: mv: Improve message when moving two or more files to
non-directory.

The message text is from cp, which has had a nicer message for this since
2007 (PR bin/50656).

As with cp, the exit status changes from 64 to 1.

PR: 201083

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

8 years agoMFC r286462: Refactor early stages of security negotiation.
mav [Sat, 22 Aug 2015 16:59:27 +0000 (16:59 +0000)]
MFC r286462: Refactor early stages of security negotiation.

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

8 years agoMFC r285020: Disable port multiplier support on Marvell 88SE61xx chips.
mav [Sat, 22 Aug 2015 15:36:20 +0000 (15:36 +0000)]
MFC r285020: Disable port multiplier support on Marvell 88SE61xx chips.

According to report, some recent unrelated changes in the driver triggered
timeouts when testing for absent port multiplier.  Cause of this behavior
channge is unclear, but since these chips are old, rare and buggy, it is
easier to just disable port multiplier support, same as done in Linux.

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

8 years agoMFC r286448: Disable 32-bit PIO for 6Gbit/s Intel SATA controllers.
mav [Sat, 22 Aug 2015 07:45:49 +0000 (07:45 +0000)]
MFC r286448: Disable 32-bit PIO for 6Gbit/s Intel SATA controllers.

For some reason 32-bit PIO writes are not working on 6Gbit/s Intel SATA
ports, while 16/32-bit PIO reads and 16-bit PIO writes are working fine.
3Gbit/s ports on the same controllers have no this problem.

Workaround this by disabling 32-bit PIO for all Intel controllers that may
have 6Gbit/s ports.  It halves PIO performance from 6MB/s to 3MB/s, but
who bother about speed of such rare and slow mode, which is also highly
discouraged by SATA specifications?

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

8 years agoMFC r280451:
mav [Sat, 22 Aug 2015 07:32:47 +0000 (07:32 +0000)]
MFC r280451:
Remove from legacy ata(4) driver support for hardware, supported by newer
and more functional drivers ahci(4), siis(4) and mvs(4).

This removes about 3400 lines of code, unused since FreeBSD 9.0 release.

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

8 years agoMFC: r286805
bapt [Sat, 22 Aug 2015 00:47:05 +0000 (00:47 +0000)]
MFC: r286805

Update to use the latest version of the PCI IDs Repository.

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

8 years agoMFC r286862:
loos [Thu, 20 Aug 2015 14:03:03 +0000 (14:03 +0000)]
MFC r286862:

  Fix the copy of addresses passed from userland in table replace command.

  The size2 is the maximum userland buffer size (used when the addresses are
  copied back to userland).

  Obtained from: pfSense
  Sponsored by: Rubicon Communications (Netgate)

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

8 years agoMFC r285742:
ed [Thu, 20 Aug 2015 08:34:13 +0000 (08:34 +0000)]
MFC r285742:

  Unbreak "last reboot".

  According to the last(1) man page, the "reboot" pseudo-user should print
  all system reboot entries. This got broken by the utmpx import, as
  records are typed.

  Re-add support for "last reboot" by specifically matching against
  SHUTDOWN_TIME and BOOT_TIME records.

PR:           168844
Submitted by: matthew@

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

8 years agoInstant-MFC r286933:
delphij [Wed, 19 Aug 2015 18:32:36 +0000 (18:32 +0000)]
Instant-MFC r286933:

Issue warning and refuse to proceed further if the configured
repository signature_type is unsupported by bootstrap pkg(7).

Previously, when signature_type specified an unsupported method,
the bootstrap pkg(7) would proceed like when signature_type is
"none".  MITM attackers may be able to use this vulnerability and
bypass validation and install their own versions of pkg(8).

At this time, only fingerprint and none are supported by the
bootstrap pkg(7).

FreeBSD's official pkg(8) repository uses the fingerprint method
and is therefore unaffected.

Errata candidate.

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

8 years agoRemove a broken link.
gjb [Wed, 19 Aug 2015 17:51:03 +0000 (17:51 +0000)]
Remove a broken link.
While here, prefer https where possible.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286353: Pass SYNCHRONIZE CACHE command parameters to backends.
mav [Wed, 19 Aug 2015 17:47:47 +0000 (17:47 +0000)]
MFC r286353: Pass SYNCHRONIZE CACHE command parameters to backends.

At this point IMMED flag is translated to MNT_NOWAIT flag of VOP_FSYNC(),
hoping that file system implements that (ZFS seems doesn't).

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

8 years agoMFC r286345: Relax serialization of SYNCHRONIZE CACHE commands.
mav [Wed, 19 Aug 2015 17:43:36 +0000 (17:43 +0000)]
MFC r286345: Relax serialization of SYNCHRONIZE CACHE commands.

Before this change SYNCHRONIZE CACHE commands were executed exclusively,
as if they had ORDERED tag.  But looking through SCSI specs I've found
no any reason to be so strict.  For reads this ordering seems pointless.
For writes it looks less obvious, so I left ordering against preceeding
write commands, while following ones are no longer required to wait.

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

8 years agoDocument two post-release EN items as resolved.
gjb [Wed, 19 Aug 2015 17:42:32 +0000 (17:42 +0000)]
Document two post-release EN items as resolved.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286320: Issue all reads of single XCOPY segment simultaneously.
mav [Wed, 19 Aug 2015 17:41:49 +0000 (17:41 +0000)]
MFC r286320: Issue all reads of single XCOPY segment simultaneously.

During vMotion and Clone VMware by default runs multiple sequential 4MB
XCOPY requests same time.  If CTL issues reads sequentially in 1MB chunks
for each XCOPY command, reads from different commands are not detected
as sequential by serseq option code and allowed to execute simultaneously.
Such read pattern confused ZFS prefetcher, causing suboptimal disk access.
Issuing all reads same time make serseq code work properly, serializing
reads both within each XCOPY command and between them.

My tests with ZFS pool of 14 disks in RAID10 shows prefetcher efficiency
improved from 37% to 99.7%, copying speed improved by 10-60%, average
read latency reduced twice on HDD layer and by five times on zvol layer.

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

8 years agoAdd 10.2-RELEASE to UPDATING, forgotten with prior related commits.
gjb [Wed, 19 Aug 2015 00:26:54 +0000 (00:26 +0000)]
Add 10.2-RELEASE to UPDATING, forgotten with prior related commits.

Submitted by: junovitch
Sponsored by: The FreeBSD Foundation

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

8 years agoDocument SA-15:20, EN-15:11, EN-15:12, EN-15:13.
gjb [Tue, 18 Aug 2015 20:27:03 +0000 (20:27 +0000)]
Document SA-15:20, EN-15:11, EN-15:12, EN-15:13.

Sponsored by: The FreeBSD Foundation

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

8 years agoFix multiple integer overflows in expat.
delphij [Tue, 18 Aug 2015 19:30:05 +0000 (19:30 +0000)]
Fix multiple integer overflows in expat.

Security: CVE-2015-1283
Security: FreeBSD-SA-15:20.expat

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

8 years agoMFC r271490:
np [Tue, 18 Aug 2015 19:15:20 +0000 (19:15 +0000)]
MFC r271490:
cxgbe(4): add support for the SIOCGI2C ioctl.

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

8 years agoMFC r285648:
np [Tue, 18 Aug 2015 19:04:55 +0000 (19:04 +0000)]
MFC r285648:

cxgbe(4): Ask the firmware for the start of the RSS slice for a port and
save it for later.  This enables direct manipulation of the indirection
tables (although the stock driver doesn't do that right now).

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

8 years agoMFC r285527 and r286338. This takes the firmware from 1.11.27.0 to 1.14.4.0.
np [Tue, 18 Aug 2015 18:54:45 +0000 (18:54 +0000)]
MFC r285527 and r286338.  This takes the firmware from 1.11.27.0 to 1.14.4.0.

r286338:
cxgbe(4):  Update T5 and T4 firmwares bundled with the driver to 1.14.4.0.  The
changes in the firmwares since 1.11.27.0 are listed here (straight copy-paste
from the "Release Notes.txt" accompanying the Chelsio Unified Wire 2.11.1.0
release on the website).

22.1. T5 Firmware
+++++++++++++++++++++++++++++++++

Version : 1.14.4.0
Date    : 08/05/2015
================================================================================

FIXES
-----

BASE:
- Fixes a potential data path hang by properly programming PMTX congestion
  threshold settings.
- Fixes a potential initialization error when accessing a configuration file
  stored on the flash.
- Fixes a regression where SGE resources can be miss-sized if iWARP is disabled.

ETH:
- Fixes a timing issue that would prevent CR4 links from coming up with some
  switches.

FOFCoE:
- Defers fcoe linkdown mailbox command handling till LOGO is sent.
- Updates vlan prio for all outstanding IOs during dcbx update.

ENHANCEMENTS
------------

BASE:
- Adds support for PAUSE OFF watchdog.
- Reports devlog access information in PCIE_FW_PF register 7.

ETH:
- Enhances segmentation offload to include VxLAN and Geneve.
- Adds PTP support.
- Adds new interface to allow the driver to query the VI rss table base
  addresses.
- Allows the driver to program the SGE ingrext contxt CongDrop field.

OFLD:
- Adds new interface for the driver to specify offloaded connections TCP snd
  and rcv scale factors.

iSCSI:
- Adds support for iscsi segmentatation offload (ISO).
- Adds support for iscsi t10-dif offload.

FOiSCSI:
- Sets FORCE_BIT for cut through processing for FOiSCSI.

FOFCoE:
- Adds support for FCoE BB6.
- Improves WRITE performance.

================================================================================
================================================================================

Version : 1.13.32.0
Date    : 03/25/2015
================================================================================

FIXES
-----

BASE:
- Fixes FW_CAPS_CONFIG_CMD return value on error (was positive instead of
   negative)
- Fixes FW_PARAMS_PARAM_DEV_FLOWC_BUFFIFO_SZ indication (was wrong on certain
   adapter configurations)
- Fixes config file based PL_TIMEOUT register programming

ETH:
- Fixes a potential EO UDP SEG header corruption
- Fixes an issue where 1000Base-X was not enabled correctly when using QSA
   modules

OFLD:
- Fixes timeout issue with half-open connections
- Fixes FW_FLOWC_WR processing when state is set to finwait1

FOFCoE:
- Fixes fcoe xchg leaks in linkdown/peer down path
- Fixes cleanup in FCoE linkdown and fixed buf timer flowid abuse
- Fixes fw crash by clearing fcf flowc during bye

FOiSCSI:
- Don't create a new tcp socket if ERL0 attempt has timed out.

ENHANCEMENTS
------------

BASE:
- Adds support for VFs on PFs 4 to 7
- Adds support for QPs/CQs on any physical and virtual function

ETH:
- Stops sending LACP frames on loopback interface
- Adds an AUTOEQU indication to CPL_SGE_EGR_UPDATE
- Adds support for CR4 links (BEAN/AEC on 40G TwinAx cables)

OFLD:
- Improves default settings of LAN and CLUSTER TCP timer settings
- Sends Negative Advice CPLs to software

FOISCSI:
- Adds IPv6 support for foiscsi. Keeps backward compatibility with
   old foiscsi drivers which doesn't support ipv6.

FOFCoE:
- Added fcoe debug support in flowc dump

================================================================================
================================================================================

Version : 1.12.25.0
Date    : 10/22/2014
================================================================================

FIXES
-----

BASE:
- Improves precision of the Weight Round Robing Traffic Management Algorithm
- Fixes an issue where the link would intermittently fail to come up
- Fixes an issue where adapters with an external PHY couldn't run at 100Mbps
- Fixes an issue where active optical cables were not recognized
- Fixes link advertising issues on T520-BT (speed and pause frames) that would
  cause the link to negotiate unexpected settings
- Forces link restart when auto-negotiation is disabled
- Fix an issue where pause frames wouldn't be fully disabled even if requested

ETH:
- Fixes NVGRE Segmentation Offload network header generation.

DCBX:
- Fixes an issue where some settings were not being sent to the switch
  correctly
- Fixes an issue where back-to-back DCBX port updates could get overwritten by
  FW
- Fixes a firmware crash on DCBX APP information request before link up

FOiSCSI:
- Fixes abort task leak in tmf response handling
- Fixes TCP RST handling while in iSCSI ERL0
- Fixes a firmware crash on BYE without INIT

ENHANCEMENTS
-------------

BASE:
- Adds link partner settings reporting when available
- Adds QSA support (in conjunction with QSA VPD)
- Adds T520-BT LED support
- Reports NOTSUPPORTED for modules with an unhandled identifier

DCBX:
- Adds version reporting (indicating which version FW is trying to negotiate)
- Adds IEEE support
- Reports LLDP time outs

FOiSCSI:
- Add support for multiple iSCSI DDP client
- Sends DHCP renew request when lease expires

================================================================================

22.2. T4 Firmware
+++++++++++++++++

Version : 1.14.4.0
Date    : 08/05/2015
================================================================================

FIXES
-----

BASE:
- Fixes a potential initialization error when accessing a configuration file
  stored on the flash.
- Initialize PCIE_DBG_INDIR_REQ.Enable to 0, as hardware failed to do so and
  register dumps could result in errors.

ETH:
- Fixes an issue that sometimes prevented the link from coming up in CR adapters.

ENHANCEMENTS
------------

BASE:
- Adds support for PAUSE OFF watchdog.
- Reports devlog access information in PCIE_FW_PF register 7.

ETH:
- Adds new interface to allow the driver to query the VI rss table base
  addresses.

OFLD:
- Adds new interface for the driver to specify offloaded connections TCP snd
  and rcv scale factors.

================================================================================
================================================================================

Version : 1.13.32.0
Date    : 03/25/2015
================================================================================

FIXES
-----

BASE:
- Fixes FW_CAPS_CONFIG_CMD return value on error (was positive instead of
    negative)
- Fixes FW_PARAMS_PARAM_DEV_FLOWC_BUFFIFO_SZ indication (was wrong on certain
    adapter configurations)
- Fixes config file based PL_TIMEOUT register programming

ETH:
- Fixes a potential EO UDP SEG header corruption

OFLD:
- Fixes timeout issue with half-open connections
- Fixes FW_FLOWC_WR processing when state is set to finwait1

FOiSCSI:
- Don't create a new tcp socket if ERL0 attempt has timed out.

ENHANCEMENTS
------------

ETH:
- Stops sending LACP frames on loopback interface
- Adds an AUTOEQU indication to CPL_SGE_EGR_UPDATE

OFLD:
- Improves default settings of LAN and CLUSTER TCP timer settings
- Sends Negative Advice CPLs to software

================================================================================
================================================================================

Version : 1.12.25.0
Date    : 10/22/2014
================================================================================

FIXES
-----

BASE:
- Improves precision of the Weight Round Robing Traffic Management Algorithm
- Forces link restart when auto-negotiation is disabled
- Fix an issue where pause frames wouldn't be fully disabled even if requested

DCBX:
- Fixes an issue where some settings were not being sent to the switch
  correctly
- Fixes an issue where back-to-back DCBX port updates could get overwritten by
  FW
- Fixes a firmware crash on DCBX APP information request before link up

FOiSCSI:
- Fixes abort task leak in tmf response handling
- Fixes TCP RST handling while in iSCSI ERL0
- Fixes a firmware crash on BYE without INIT

ENHANCEMENTS
------------

BASE:
- Adds link partner settings reporting when available
- Firmware now reports NOTSUPPORTED for modules with an unhandled identifier

DCBX:
- Adds version reporting (indicating which version FW is trying to negotiate)
- Adds IEEE support
- Reports LLDP time outs

FOiSCSI:
- Adds support for multiple iSCSI DDP clients
- Sends DHCP renew request when lease expires

================================================================================

Obtained from: Chelsio Communications
Sponsored by: Chelsio Communications

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

8 years agoMFC r286288:
kib [Tue, 18 Aug 2015 09:09:39 +0000 (09:09 +0000)]
MFC r286288:
Give large kernel stack to the initial thread.

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

8 years agoMFC r286260:
loos [Mon, 17 Aug 2015 19:06:14 +0000 (19:06 +0000)]
MFC r286260:
  Remove the mtx_sleep() from the kqueue f_event filter.

  The filter is called from the network hot path and must not sleep.

  The filter runs with the descriptor lock held and does not manipulate the
  buffers, so it is not necessary sleep when the hold buffer is in use.

  Just ignore the hold buffer contents when it is being copied to user space
  (when hold buffer in use is set).

  This fix the "Sleeping thread owns a non-sleepable lock" panic when the
  userland thread is too busy reading the packets from bpf(4).

  PR:           200323
  Sponsored by: Rubicon Communications (Netgate)

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

8 years agoMFC r286140:
loos [Mon, 17 Aug 2015 18:43:39 +0000 (18:43 +0000)]
MFC r286140:
  Remove the sleep from the buffer allocation routine.

  The buffer must be allocated (or even changed) before the interface is set
  and thus, there is no need to verify if the buffer is in use.

MFC r286142:
  Remove two unnecessary sleeps from the hot path in bpf(4).

  The first one never triggers because bpf_canfreebuf() can only be true for
  zero-copy buffers and zero-copy buffers are not read with read(2).

  The second also never triggers, because we check the free buffer before
  calling ROTATE_BUFFERS().  If the hold buffer is in use the free buffer
  will be NULL and there is nothing else to do besides drop the packet.  If
  the free buffer isn't NULL the hold buffer _is_ free and it is safe to
  rotate the buffers.

  Update the comment in ROTATE_BUFFERS macro to match the logic described
  here.

  While here fix a few typos in comments.

MFC r286243:
  Add a KASSERT() to make sure we wont rotate the buffers twice (rotate the
  buffers while the hold buffer is in use).

  Sponsored by: Rubicon Communications (Netgate)

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

8 years agoMFC r286777:
kib [Mon, 17 Aug 2015 18:36:16 +0000 (18:36 +0000)]
MFC r286777:
Comment only change, fix grammar and somewhat clarify the action.

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

8 years agoMFC r286582:
kib [Mon, 17 Aug 2015 18:34:54 +0000 (18:34 +0000)]
MFC r286582:
Pre-resolve symbols required for the deferred signal processing.

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

8 years agoMFC r286228:
kib [Mon, 17 Aug 2015 18:33:16 +0000 (18:33 +0000)]
MFC r286228:
Clear the IA32_MISC_ENABLE MSR bit on APs.

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

8 years agoMFC r286139:
loos [Mon, 17 Aug 2015 18:21:18 +0000 (18:21 +0000)]
MFC r286139:

  Do not allocate the buffers at opening of the descriptor, because once
  the buffer is allocated we are committed to a particular buffer method
  (BPF_BUFMODE_BUFFER in this case).

  If we are using zero-copy buffers, the userland program must register its
  buffers before set the interface.

  If we are using kernel memory buffers, we can allocate the buffer at the
  time that the interface is being set.

  This fix allows the usage of BIOCSETBUFMODE after r235746.

  Update the comments to reflect the recent changes.

  Sponsored by: Rubicon Communications (Netgate)

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

8 years agoMFC r285715:
ed [Mon, 17 Aug 2015 12:51:46 +0000 (12:51 +0000)]
MFC r285715:

  Add an API for easily creating userspace threads in kernelspace.

  This change refactors the existing create_thread() function to be more
  generic. It replaces almost all of its arguments by a callback that can
  be used to extract the thread ID and copy it out to the right place, but
  also to perform additional initialization steps, such as setting the
  trapframe. This also makes the difference between thr_new() and
  thr_create() more clear in my opinion.

  This function is going to be used by the CloudABI compatibility layer.

  It looks like the OpenSolaris compatibility framework already provides a
  function called thread_create(). Rename this function to
  do_thread_create() and use a macro to deal with the namespacing
  conflict. A similar approach is already used for thread_exit().

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

8 years agoMerge r283612:
glebius [Mon, 17 Aug 2015 10:03:23 +0000 (10:03 +0000)]
Merge r283612:
  Add SIOCGI2C ioctl support to the driver. Would work only on ConnectX-3
  with fresh firmware. The low level code is based on code provided by
  Mellanox.

  Thanks to Mellanox and their distributor Must (http://mustcompany.ru)
  for providing hardware.

  In collaboration with:        Andre Melkoumian <andre mellanox.com>
  Reviewed by:          hselasky
  Sponsored by:         Netflix
  Sponsored by:         Nginx, Inc.

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

8 years agoDocument an error in the release notes regarding revision r282199.
gjb [Sun, 16 Aug 2015 12:09:55 +0000 (12:09 +0000)]
Document an error in the release notes regarding revision r282199.

Submitted by: amdmi3
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286719: Revert part of r280687, reporting "1" (true) for empty value.
mav [Sun, 16 Aug 2015 00:37:47 +0000 (00:37 +0000)]
MFC r286719: Revert part of r280687, reporting "1" (true) for empty value.

For example, it made gpart partitions without label report "1" as label.

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

8 years agoMFC r286516: Document kern.cam.ctl.debug sysctl.
mav [Sun, 16 Aug 2015 00:36:48 +0000 (00:36 +0000)]
MFC r286516: Document kern.cam.ctl.debug sysctl.

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

8 years agoMFC r286514: Remove verbose CTL messages.
mav [Sun, 16 Aug 2015 00:35:48 +0000 (00:35 +0000)]
MFC r286514: Remove verbose CTL messages.

Reporting SCSI errors to console is often useless, pollutes logs and may
affect performance.  For debugging there is kern.cam.ctl.debug sysctl

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

8 years agoMFC r284779: sh: Fix some arithmetic undefined behaviour.
jilles [Sat, 15 Aug 2015 19:58:00 +0000 (19:58 +0000)]
MFC r284779: sh: Fix some arithmetic undefined behaviour.

Fix shifts of possibly negative numbers found with ubsan and avoid signed
integer overflow when hashing an extremely long command name.

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

8 years agoMFC r270064,r270068,r270069,r270115,r270129,r270287,r270822,r271014,
melifaro [Sat, 15 Aug 2015 17:52:55 +0000 (17:52 +0000)]
MFC r270064,r270068,r270069,r270115,r270129,r270287,r270822,r271014,
  r271524,r273541,r282967,r283009,r283364.

Add support for reading i2c SFP/SFP+ data from NIC driver and
presenting most interesting fields via ifconfig -v.
This version supports Intel ixgbe driver only.

Tested on:      Cisco,Intel,Mellanox,ModuleTech,Molex transceivers

* Add new net/sff8436.h containing constants used to access
  QSFP+ data via i2c inteface. These constants has been taken
  from SFF-8436 "QSFP+ 10 Gbs 4X PLUGGABLE TRANSCEIVER" standard
  rev 4.8.
* Add support for printing QSFP+ information from 40G NICs
  such as Chelsio T5.

Example:
cxl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,.....>
        ether 00:07:43:28:ad:08
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 40Gbase-LR4 <full-duplex>
        status: active
        plugged: QSFP+ 40GBASE-LR4 (MPO Parallel Optic)
        vendor: OEM PN: OP-QSFP-40G-LR4 SN: 20140318001 DATE: 2014-03-18
        module temperature: 64.06 C voltage: 3.26 Volts
        lane 1: RX: 0.47 mW (-3.21 dBm) TX: 2.78 mW (4.46 dBm)
        lane 2: RX: 0.20 mW (-6.94 dBm) TX: 2.80 mW (4.47 dBm)
        lane 3: RX: 0.18 mW (-7.38 dBm) TX: 2.79 mW (4.47 dBm)
        lane 4: RX: 0.90 mW (-0.45 dBm) TX: 2.80 mW (4.48 dBm)

Tested on:      Chelsio T5
Tested on:      Mellanox/Huawei passive/active cables/transceivers.

Sponsored by:   Yandex LLC

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

8 years agoMFC r286456: Remove some code duplication.
mav [Sat, 15 Aug 2015 11:08:30 +0000 (11:08 +0000)]
MFC r286456: Remove some code duplication.

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

8 years agoMFC r286447:
mav [Sat, 15 Aug 2015 11:05:44 +0000 (11:05 +0000)]
MFC r286447:
Don't panic if disk lost TRIM support due to switching to PIO mode.

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

8 years agoMFC r285842: truss: follow pdfork()ed descendents with -f
emaste [Fri, 14 Aug 2015 21:44:42 +0000 (21:44 +0000)]
MFC r285842: truss: follow pdfork()ed descendents with -f

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

8 years agoMFC r286404:
kib [Fri, 14 Aug 2015 12:23:20 +0000 (12:23 +0000)]
MFC r286404:
The condition to use direct processing for the unmapped bio is reverted.

MFC r286405:
Minor style cleanup of the code surrounding r286404.

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

8 years agoCall stable/10 STABLE again, now that 10.2-RELEASE is out.
gjb [Fri, 14 Aug 2015 12:08:20 +0000 (12:08 +0000)]
Call stable/10 STABLE again, now that 10.2-RELEASE is out.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286621, r286622: Fix couple minor typos.
mav [Fri, 14 Aug 2015 04:23:17 +0000 (04:23 +0000)]
MFC r286621, r286622: Fix couple minor typos.

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

8 years agoMFC r286615:
pfg [Fri, 14 Aug 2015 02:45:22 +0000 (02:45 +0000)]
MFC r286615:
Clean up some externally visible "more then" occurences

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

8 years agoPrune the 10-STABLE release notes page after 10.2-RELEASE.
gjb [Fri, 14 Aug 2015 00:19:09 +0000 (00:19 +0000)]
Prune the 10-STABLE release notes page after 10.2-RELEASE.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC of 286750,tzdata10:
edwin [Thu, 13 Aug 2015 23:59:53 +0000 (23:59 +0000)]
MFC of 286750,tzdata10:

Update to tzdata2015f:

Changes affecting future time stamps

    North Korea switches to +0830 on 2015-08-15.  (Thanks to Steffen Thorsen.)
    The abbreviation remains "KST".  (Thanks to Robert Elz.)
    Uruguay no longer observes DST.  (Thanks to Steffen Thorsen and Pablo Camargo.)
    Changes affecting past and future time stamps
    Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC. (Thanks to Roman Tudos.)

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

8 years agoMFC r262670 (marcel):
gjb [Thu, 13 Aug 2015 22:29:26 +0000 (22:29 +0000)]
MFC r262670 (marcel):
  Use ${MAKE} so that we always use the same version/implementation
  of make(1).

PR: 202277
Submitted by: John Hein
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r276282: Support ALT_BREAK_TO_DEBUGGER in vt(4)
emaste [Thu, 13 Aug 2015 19:48:19 +0000 (19:48 +0000)]
MFC r276282: Support ALT_BREAK_TO_DEBUGGER in vt(4)

PR: 196511

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

8 years agoFix the gnome package name.
gjb [Thu, 13 Aug 2015 19:04:41 +0000 (19:04 +0000)]
Fix the gnome package name.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

8 years agoDocument a known issue with the VirtualBox Vagrant provider failing
gjb [Thu, 13 Aug 2015 18:50:54 +0000 (18:50 +0000)]
Document a known issue with the VirtualBox Vagrant provider failing
to boot on the first invocation of 'vagrant up'.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

8 years agoUpdate the errata article.xml file for 10.2-RELEASE.
gjb [Thu, 13 Aug 2015 18:41:53 +0000 (18:41 +0000)]
Update the errata article.xml file for 10.2-RELEASE.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

8 years agoPrune Security Advisories and Errata Notices from the 10.2-RELEASE
gjb [Thu, 13 Aug 2015 18:40:32 +0000 (18:40 +0000)]
Prune Security Advisories and Errata Notices from the 10.2-RELEASE
errata page.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

8 years agoUpdate FreeBSD version numbers in preparation of properly creating
gjb [Thu, 13 Aug 2015 18:39:32 +0000 (18:39 +0000)]
Update FreeBSD version numbers in preparation of properly creating
the 10.2-RELEASE errata.html page.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286074:
pfg [Thu, 13 Aug 2015 01:02:57 +0000 (01:02 +0000)]
MFC r286074:
GCC: Add a new option "-fstack-protector-strong"

This includes additional functions to be protected: those that
have local array definitions, or have references to local frame
addresses. This is a new option in GCC-4.9 that was relicensed
by Han Shen from Google under GPLv2.

Obtained from: OpenBSD (2014-01-14)

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

8 years agoMFC r273081
sbruno [Wed, 12 Aug 2015 22:51:08 +0000 (22:51 +0000)]
MFC r273081
brueffer: New sentence -> new line; use macros where appropriate.

MFC r276345
Mikhail <mp@lenta.ru
Correct naming of sysctl pmtud_blackhole_activated_min_mss.

Clarify some statements around PMTUD blackhole detection to make
the behavior more clear in the man page.

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

8 years agoMFC r286519:
dim [Wed, 12 Aug 2015 19:18:54 +0000 (19:18 +0000)]
MFC r286519:

In GNU as, avoid left-shifting negative integers, which is undefined.

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

8 years agoMFC r286515:
dim [Wed, 12 Aug 2015 19:06:35 +0000 (19:06 +0000)]
MFC r286515:

In libm's exp2(3), avoid left-shifting a negative integer, which is
undefined.  Replace it with the intended value, in a defined way.

Reviewed by: bde

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

8 years agoDirect commit
imp [Wed, 12 Aug 2015 16:53:37 +0000 (16:53 +0000)]
Direct commit

When compiling on -current from r284356 to r285986, the host's
crunchgen can't be used because builds of rescue break when STRIP= was
used to prevent stripping of binaries.  Direct commit because -current
code is different. Building 10 on current is common enough to warrnat
a safety belt since this has been broken for two months. The offending
change was never in stable/10.

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

8 years agoMFC r257077:
garga [Tue, 11 Aug 2015 16:01:34 +0000 (16:01 +0000)]
MFC r257077:

Cleanup empty directories

PR: 167133
Approved by: loos
Sponsored by: Netgate

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

8 years agoMFC 256710:
garga [Tue, 11 Aug 2015 15:53:11 +0000 (15:53 +0000)]
MFC 256710:

Add lot of missed files and dirs

Approved by: loos
Sponsored by: Netgate

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

8 years agoMFC r286451:
garga [Tue, 11 Aug 2015 15:25:08 +0000 (15:25 +0000)]
MFC r286451:

Add missing files to sendmail obsolete files list

Approved by: gshapiro
Sponsored by: Netgate
Differential Revision: https://reviews.freebsd.org/D3302

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

8 years agoMerge r285891:
rodrigc [Tue, 11 Aug 2015 01:51:38 +0000 (01:51 +0000)]
Merge r285891:

Pass unsigned long argument to ioctl().

Eliminates "ioctl sign-extension" warnings.

PR:             200896

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

8 years agoMFC r284649: fts_children: preserve errno after running close/fchdir
jilles [Sun, 9 Aug 2015 15:53:02 +0000 (15:53 +0000)]
MFC r284649: fts_children: preserve errno after running close/fchdir

PR: 200942
Submitted by: Conrad Meyer

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

8 years agoMFC: r285260
rmacklem [Sat, 8 Aug 2015 22:06:07 +0000 (22:06 +0000)]
MFC: r285260
Since the case where secflavor < 0 indicates the security flavor is
to be negotiated, it could be a Kerberized mount. As such, filling
in the "principal" argument using the canonized host name makes sense.
If it is negotiated as AUTH_SYS, the "principal" argument is meaningless
but harmless.

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

8 years agoMFC: Reminder to check tools/build/mk/OptionalObsoleteFiles.inc on new
gshapiro [Sat, 8 Aug 2015 16:30:20 +0000 (16:30 +0000)]
MFC: Reminder to check tools/build/mk/OptionalObsoleteFiles.inc on new
     version imports.

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

8 years agoMFC r286106:
kib [Fri, 7 Aug 2015 04:38:13 +0000 (04:38 +0000)]
MFC r286106:
Provide a prefaulting for the userspace i/o buffers, disabled by default.

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

8 years agoMFC r285384:
kib [Fri, 7 Aug 2015 04:33:06 +0000 (04:33 +0000)]
MFC r285384:
Do not allow creation of the dirty buffers for the dead buffer objects.

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

8 years agoMFC r285643:
kib [Fri, 7 Aug 2015 04:31:02 +0000 (04:31 +0000)]
MFC r285643:
When checking for the valid value of the frame pointer, verify that it
belongs to the kernel stack address range for the thread.

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

8 years agoMFC r286375:
delphij [Thu, 6 Aug 2015 19:45:25 +0000 (19:45 +0000)]
MFC r286375:

Now that stable/8 is EOL, stop building INDEX-8.

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

8 years agoFix a typo.
gjb [Thu, 6 Aug 2015 14:13:01 +0000 (14:13 +0000)]
Fix a typo.

Submitted by: pkelsey
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286086:
kib [Thu, 6 Aug 2015 08:51:15 +0000 (08:51 +0000)]
MFC r286086:
Do not pretend that vm_fault(9) supports unwiring the address.

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

8 years agoDocument SA-15:18, SA-15:19.
gjb [Wed, 5 Aug 2015 22:30:49 +0000 (22:30 +0000)]
Document SA-15:18, SA-15:19.

Sponsored by: The FreeBSD Foundation

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

8 years agoFix patch(1) shell injection vulnerability via ed(1). [SA-15:18]
delphij [Wed, 5 Aug 2015 22:05:02 +0000 (22:05 +0000)]
Fix patch(1) shell injection vulnerability via ed(1). [SA-15:18]

Fix routed remote denial of service vulnerability. [SA-15:19]

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

8 years agoFix segfault were modifying the uid of a user
bapt [Wed, 5 Aug 2015 20:32:07 +0000 (20:32 +0000)]
Fix segfault were modifying the uid of a user

Do a direct commit as the code on head has changed a lot and does not fail in
that case

PR: 202111
Reported by: gondim@bsdinfo.com.br

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

8 years agoMFC r285720:
pfg [Wed, 5 Aug 2015 18:52:40 +0000 (18:52 +0000)]
MFC r285720:
libusb: Fix minor warning.

Fix a warning triggered by the gcc + FORTIFY_SOURCE patches:

In function 'libusb20_parse_config_desc': lib/libusb/libusb20_desc.c:141:
warning: passing argument 1 of 'memcpy' discards qualifiers from pointer
target type

Submitted by: hselansky

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

8 years agoMake the kern.racct.tunable actually work.
trasz [Wed, 5 Aug 2015 15:57:08 +0000 (15:57 +0000)]
Make the kern.racct.tunable actually work.

This is a direct commit to 10-STABLE - 11-CURRENT is not affected,
because tunables are automatically fetched there.

MFC after: ASAP
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r285710:
ae [Wed, 5 Aug 2015 11:24:40 +0000 (11:24 +0000)]
MFC r285710:
  Invoke LLE event handler when entry is deleted.

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

8 years agoMFC r285888:
ae [Wed, 5 Aug 2015 10:59:59 +0000 (10:59 +0000)]
MFC r285888:
  Build debug version of rmlock's methods only when LOCK_DEBUG > 0.

  Currently LOCK_DEBUG is always defined in sys/lock.h (0 or 1).
  This means that debugging code always built. In addition the kernel
  modules have always defined LOCK_DEBUG as 1. So, debugging rmlock code
  is always used by kernel modules.

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

8 years agoImplement x86 ptrace(2) requests PT_{GET,SET}{FS,GS}BASE.
kib [Wed, 5 Aug 2015 08:17:10 +0000 (08:17 +0000)]
Implement x86 ptrace(2) requests PT_{GET,SET}{FS,GS}BASE.

MFC r284918:
Add helper fill_based_sd(9).

MFC r284919:
Add x86 PT_GETFSBASE, PT_GETGSBASE machine-depended ptrace requests to
obtain the thread %fs and %gs bases.  Add x86 PT_SETFSBASE and
PT_SETGSBASE requests to set the bases from debuggers.  The set
requests, similarly to the sysarch({I386,AMD64}_SET_FSBASE), override
the corresponding segment registers.

MFC r284965:
Document x86 machine-specific ptrace(2) requests.

MFC r285011:
Disallow a debugger on 64bit system to set fs/gs bases of the 32bit
process beyond the end of the process address space.

MFC r285104:
Grammar and language fixes.

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

8 years agoMFC r284921:
kib [Wed, 5 Aug 2015 07:35:34 +0000 (07:35 +0000)]
MFC r284921:
pcb_gs32sd is unused for long time, remove it.  Keep the padding in pcb.

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

8 years agoMFC r285046:
kib [Wed, 5 Aug 2015 07:29:59 +0000 (07:29 +0000)]
MFC r285046:
Account for the main process stack being one page below the highest
user address when ABI uses shared page.

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

8 years agoMFC r285041:
kib [Wed, 5 Aug 2015 07:21:44 +0000 (07:21 +0000)]
MFC r285041:
Use single instance of the identical INKERNEL() and PMC_IN_KERNEL()
macros on amd64 and i386.  On i386, correct the lowest kernel address.

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

8 years agoMFC r285973
davidcs [Wed, 5 Aug 2015 00:00:06 +0000 (00:00 +0000)]
MFC r285973
  - Avoid lock contention in the if_transmit callback by using trylock and
   enqueueing the frames when it fails. This way there is some latency
   removed from the transmitting path.
  - If IFF_DRV_OACTIVE is set (and also if IFF_DRV_RUNNING is not) just
   enqueue the desired frames and return successful transmit. This way we
   avoid to return errors on transmit side and resulting in
   possible out-of-order frames. Please note that IFF_DRV_OACTIVE is set
   everytime we get the threshold ring hit, so this can be happening quite
   often.

Submitted by: Attilio.Rao@isilon.com

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

8 years agoMFC r281581: vidcontrol: make size argument optional again for syscons
emaste [Tue, 4 Aug 2015 15:15:06 +0000 (15:15 +0000)]
MFC r281581: vidcontrol: make size argument optional again for syscons

r273544 (MFC in r273921) changed the -f option allow no arguments in vt
mode (used to reset the font back to the default), but broke the
optionality of the size argument for syscons. Drop the required argument
from syscons' optstring for -f so the optional argument handler works
the same way for both syscons and vt.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286285:
gjb [Tue, 4 Aug 2015 13:41:37 +0000 (13:41 +0000)]
MFC r286285:
 Ensure the local MANIFEST is always used when verifying remote
 distribution sets.

Approved by: re (glebius, insta-MFC)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r285932:
kib [Tue, 4 Aug 2015 04:30:54 +0000 (04:30 +0000)]
MFC r285932:
Add bit names for the IA32_MISC_ENABLE msr.

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

8 years agoMFC r284988, r285220, and r285221.
np [Tue, 4 Aug 2015 04:00:36 +0000 (04:00 +0000)]
MFC r284988, r285220, and r285221.

r284988:
cxgbe(4): request an automatic tx update when a netmap tx queue idles.
The NIC tx queues already do this.

r285220:
cxgbe(4): Do not override the the global defaults for congestion drops.
The hw.cxgbe.cong_drop knob is not affected by this change because the
driver sets up congestion drop on a per-queue basis.

r285221:
cxgbe(4): Add a new knob that controls the congestion response of netmap
rx queues.  The default is to drop rather than backpressure.

This decouples the congestion settings of NIC and netmap rx queues.

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

8 years agoMFC r284718:
np [Tue, 4 Aug 2015 03:43:09 +0000 (03:43 +0000)]
MFC r284718:

cxgbe: get_fl_payload returns a header mbuf when successful.

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

8 years agoMFC r284984:
np [Tue, 4 Aug 2015 03:40:19 +0000 (03:40 +0000)]
MFC r284984:

cxgbetool: fix code that decodes T5 SGE contexts.  Some of the fields
that changed between T4 and T5 were not displayed correctly.

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

8 years agoMFC r284445 and r286107.
np [Tue, 4 Aug 2015 03:33:59 +0000 (03:33 +0000)]
MFC r284445 and r286107.

r284445:
cxgbe(4): Add the ability to dump mailbox commands and replies.  It is
enabled/disabled via bit 0 of adapter->debug_flags (which is available
at dev.t5nex.<n>.debug_flags).

r286107:
cxgbe(4): initialize debug_flags from the kernel environment.

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

8 years agoMFC r286102:
pfg [Tue, 4 Aug 2015 03:06:23 +0000 (03:06 +0000)]
MFC r286102:
Buffer overflow in wall(1).

This affected syslogd, wall and talkd.
Detected by FORTIFY_SOURCE GSoC (with clang).

Submitted by: Oliver Pinter
Differential Revision: https://reviews.freebsd.org/D3254
Reviewed by: delphij, jmg

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

8 years agoMFC r286208:
imp [Mon, 3 Aug 2015 23:12:29 +0000 (23:12 +0000)]
MFC r286208:

Only match devices that belong to this driver.

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

8 years agoMFC r284611:
delphij [Mon, 3 Aug 2015 23:08:40 +0000 (23:08 +0000)]
MFC r284611:

Fix markups and change e.g./eg. to e.g.,.

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

8 years agoMFC r284607:
delphij [Mon, 3 Aug 2015 23:04:32 +0000 (23:04 +0000)]
MFC r284607:

Document kern.cam.ada.legacy_aliases, while I'm there also fix some typos.

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

8 years agoAdd a 'First rev' marker, indicating the releng/ branch point
gjb [Mon, 3 Aug 2015 19:15:19 +0000 (19:15 +0000)]
Add a 'First rev' marker, indicating the releng/ branch point
of the most recent release.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r285869.
dru [Mon, 3 Aug 2015 16:56:40 +0000 (16:56 +0000)]
MFC r285869.
Fix transposed words in man page.

PR: 201752
Reviewed by: gjb

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

8 years agoMFC r286092:
gjb [Mon, 3 Aug 2015 16:30:03 +0000 (16:30 +0000)]
MFC r286092:
  Fix a rendering issue in the zfs(8) manual.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r282086:
trasz [Mon, 3 Aug 2015 08:04:31 +0000 (08:04 +0000)]
MFC r282086:

Make setproctitle(3) work in Capsicum capability mode.  This makes
ctld(8) child processes to indicate initiator address and name in
their titles, similar to what iscsid(8) child processes do.

PR: 181352
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r284542:
trasz [Mon, 3 Aug 2015 07:28:23 +0000 (07:28 +0000)]
MFC r284542:

Allow '@' in unquoted strings, such as with the "path" statement.  Note
that one can use any character they like by using double quotes.

PR: 200895
Sponsored by: The FreeBDS Foundation

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

8 years agoMFC r285086:
trasz [Mon, 3 Aug 2015 07:20:33 +0000 (07:20 +0000)]
MFC r285086:

Remove OpenSSL dependency from iscsid(8) and ctld(8).

Sponsored by: The FreeBSD Foundation

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

8 years agoFix ia64 to not override the call stack bottom address with the
kib [Mon, 3 Aug 2015 03:08:48 +0000 (03:08 +0000)]
Fix ia64 to not override the call stack bottom address with the
register stack bottom address, after the merge of r284956 in r285967.

Note: this is a direct commit to stable/10.

Reported and tested by: clusteradm (peter)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r285889:
ae [Sun, 2 Aug 2015 16:25:21 +0000 (16:25 +0000)]
MFC r285889:
  Report the scheme and provider names in warning message about unaligned
  partition.

  PR: 201873

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