1. 06 Aug, 2015 25 commits
  2. 05 Aug, 2015 15 commits
    • Conrad Meyer's avatar
      nfsclient: Protest loudly when GETATTR responses are invalid · b5af3f30
      Conrad Meyer authored
      BROKEN NFS SERVER OR MIDDLEWARE: Certain WAN "accelerators" attempt to cache
      NFS GETATTR traffic, but actually corrupt it (e.g., responding to requests
      with attributes for totally different files).
      
      Warn very verbosely when this is detected. Linux' NFS client has a similar
      warning.
      
      Adds a sysctl/tunable (vfs.nfs.fileid_maxwarnings) to configure the quantity
      of warnings; default to 10. (Zero disables; -1 is unlimited.)
      
      Adds a failpoint to aid in validating the warning / behavior with a
      non-broken server. Use something like:
      
          sysctl 'debug.fail_point.nfscl_force_fileid_warning=10%return(1)'
      
      Reviewed by:	rmacklem
      Approved by:	markj (mentor)
      Sponsored by:	EMC / Isilon Storage Division
      Differential Revision:	https://reviews.freebsd.org/D3304
      b5af3f30
    • Alexander Motin's avatar
      Pass SYNCHRONIZE CACHE command parameters to backends. · 7d0d4342
      Alexander Motin authored
      At this point IMMED flag is translated to MNT_NOWAIT flag of VOP_FSYNC(),
      hoping that file system implements that (ZFS seems doesn't).
      
      MFC after:	2 weeks
      Sponsored by:	iXsystems, Inc.
      7d0d4342
    • Xin LI's avatar
      Fix a bug which could make routed(8) daemon exit by sending a special RIP · b07d93f5
      Xin LI authored
      query from a remote machine, similar to SA-14:21.routed.
      
      Submitted by:	hrs
      b07d93f5
    • Xin LI's avatar
      Fix shell injection vulnerability in patch(1) via ed(1) by · 3fd78bfa
      Xin LI authored
      tightening sanity check of the input. [1]
      
      While I'm there also replace ed(1) with red(1) because we do
      not need the unrestricted functionality. [2]
      
      Obtained from:	Bitrig [1], DragonFly [2]
      Security:	CVE-2015-1418 [1]
      3fd78bfa
    • Alexander Motin's avatar
      Relax serialization of SYNCHRONIZE CACHE commands. · f2a20b16
      Alexander Motin authored
      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.
      
      MFC after:	2 weeks
      Sponsored by:	iXsystems, Inc.
      f2a20b16
    • Jilles Tjoelker's avatar
      find: Fix segfault with very long path in -exec/-ok ... {} \;. · a2925a5a
      Jilles Tjoelker authored
      If the resulting argument is longer than MAXPATHLEN, realloc() was called to
      extend the space, but the new pointer was not correctly stored.
      
      Different from what OpenBSD has done, rewrite brace_subst() to calculate the
      necessary space first and realloc() at most once.
      
      As before, the e_len fields are not updated in case of a realloc.
      Therefore, a following long argument will do another realloc.
      
      PR:		201750
      MFC after:	1 week
      a2925a5a
    • Adrian Chadd's avatar
      Add a hack-around to this fatal taskqueue running whilst the NIC · 70c81b20
      Adrian Chadd authored
      is detaching.
      
      This mostly fixes a panic - the reset path shouldn't run whilst
      the NIC is being torn down.
      
      It's not locked, so it's "mostly" ok, but most of the rest of
      the driver doesn't read sc->invalid with sensible locking. Grr.
      
      The real solution is to cleanly tear down taskqueues in the detach/suspend
      phase, but ..
      70c81b20
    • Adrian Chadd's avatar
      Add a missing method - ath_hal_settsf64(). · 66b870f3
      Adrian Chadd authored
      This is required for TDMA slave mode.
      66b870f3
    • Baptiste Daroussin's avatar
      Add regression tests for a bug reported in stable/10 · f5a15df7
      Baptiste Daroussin authored
      While pw(8) on head is not affected it is worth adding more regression tests
      ensuring this bug will not happen unnoticed in the futur
      f5a15df7
    • Navdeep Parhar's avatar
      cxgbe(4): Update T5 and T4 firmwares bundled with the driver to 1.14.4.0. The · d94b89b9
      Navdeep Parhar authored
      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
      MFC after:	2 weeks
      Sponsored by:	Chelsio Communications
      d94b89b9
    • Adrian Chadd's avatar
      Add TXOP enforce support to the AR9300 HAL. · 711b0fa0
      Adrian Chadd authored
      This is required for (more) correct TDMA support.  Without it, the
      code tries to calculate the required guard interval based on the
      current rate, and since this is an 11n NIC and people try using
      11n, it calls ath_hal_computetxtime() on an 11n rate which then
      panics.
      
      This doesn't fix TDMA slave mode on AR9300 - it just makes it
      have one less bug.
      
      Reported by:	Berislav Purgar <bpurgar@gmail.com>
      711b0fa0
    • Ed Maste's avatar
      Rationalize BSD license on sys/*/include/in_cksum.h · fc8c8560
      Ed Maste authored
      Remove the advertising clause from the Regents of the University of
      California's license, per the letter dated July 22, 1999.
      
      Update clause numbering.
      fc8c8560
    • Ed Maste's avatar
      Remove empty directories left by r286332 · 5fad3f77
      Ed Maste authored
      Reported by:	garga
      5fad3f77
    • Ed Maste's avatar
      Remove old GNU Binutils tools now provided by ELF Tool Chain · f97aa232
      Ed Maste authored
      Reviewed by:	bapt, brooks
      Sponsored by:	The FreeBSD Foundation
      Differential Revision:	https://reviews.freebsd.org/D3238
      f97aa232
    • John Baldwin's avatar
      Rework get_string() to make it more robust when fetching strings of unknown · abb3f965
      John Baldwin authored
      length.  In particular, instead of blinding fetching 1k blocks, do an initial
      fetch up to the end of the current page followed by page-sized fetches up to
      the maximum size.  Previously if the 1k buffer crossed a page boundary and
      the second page was not valid, the entire operation would fail.
      abb3f965