Skip to content
  1. Aug 05, 2016
    • Linus Torvalds's avatar
      Merge tag 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · 84e39eeb
      Linus Torvalds authored
      Pull second round of rdma updates from Doug Ledford:
       "This can be split out into just two categories:
      
         - fixes to the RDMA R/W API in regards to SG list length limits
           (about 5 patches)
      
         - fixes/features for the Intel hfi1 driver (everything else)
      
        The hfi1 driver is still being brought to full feature support by
        Intel, and they have a lot of people working on it, so that amounts to
        almost the entirety of this pull request"
      
      * tag 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (84 commits)
        IB/hfi1: Add cache evict LRU list
        IB/hfi1: Fix memory leak during unexpected shutdown
        IB/hfi1: Remove unneeded mm argument in remove function
        IB/hfi1: Consistently call ops->remove outside spinlock
        IB/hfi1: Use evict mmu rb operation
        IB/hfi1: Add evict operation to the mmu rb handler
        IB/hfi1: Fix TID caching actions
        IB/hfi1: Make the cache handler own its rb tree root
        IB/hfi1: Make use of mm consistent
        IB/hfi1: Fix user SDMA racy user request claim
        IB/hfi1: Fix error condition that needs to clean up
        IB/hfi1: Release node on insert failure
        IB/hfi1: Validate SDMA user iovector count
        IB/hfi1: Validate SDMA user request index
        IB/hfi1: Use the same capability state for all shared contexts
        IB/hfi1: Prevent null pointer dereference
        IB/hfi1: Rename TID mmu_rb_* functions
        IB/hfi1: Remove unneeded empty check in hfi1_mmu_rb_unregister()
        IB/hfi1: Restructure hfi1_file_open
        IB/hfi1: Make iovec loop index easy to understand
        ...
      84e39eeb
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · 0cda6113
      Linus Torvalds authored
      Pull base rdma updates from Doug Ledford:
       "Round one of 4.8 code: while this is mostly normal, there is a new
        driver in here (the driver was hosted outside the kernel for several
        years and is actually a fairly mature and well coded driver).  It
        amounts to 13,000 of the 16,000 lines of added code in here.
      
        Summary:
      
         - Updates/fixes for iw_cxgb4 driver
         - Updates/fixes for mlx5 driver
         - Add flow steering and RSS API
         - Add hardware stats to mlx4 and mlx5 drivers
         - Add firmware version API for RDMA driver use
         - Add the rxe driver (this is a software RoCE driver that makes any
           Ethernet device a RoCE device)
         - Fixes for i40iw driver
         - Support for send only multicast joins in the cma layer
         - Other minor fixes"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (72 commits)
        Soft RoCE driver
        IB/core: Support for CMA multicast join flags
        IB/sa: Add cached attribute containing SM information to SA port
        IB/uverbs: Fix race between uverbs_close and remove_one
        IB/mthca: Clean up error unwind flow in mthca_reset()
        IB/mthca: NULL arg to pci_dev_put is OK
        IB/hfi1: NULL arg to sc_return_credits is OK
        IB/mlx4: Add diagnostic hardware counters
        net/mlx4: Query performance and diagnostics counters
        net/mlx4: Add diagnostic counters capability bit
        Use smaller 512 byte messages for portmapper messages
        IB/ipoib: Report SG feature regardless of HW UD CSUM capability
        IB/mlx4: Don't use GFP_ATOMIC for CQ resize struct
        IB/hfi1: Disable by default
        IB/rdmavt: Disable by default
        IB/mlx5: Fix port counter ID association to QP offset
        IB/mlx5: Fix iteration overrun in GSI qps
        i40iw: Add NULL check for puda buffer
        i40iw: Change dup_ack_thresh to u8
        i40iw: Remove unnecessary check for moving CQ head
        ...
      0cda6113
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · fdf1f7ff
      Linus Torvalds authored
      Pull SCSI target updates from Nicholas Bellinger:
       "The most notable item is IBM virtual SCSI target driver, that was
        originally ported to target-core back in 2010 by Tomo-san, and has
        been brought forward to v4.x code by Bryant Ly, Michael Cyr and co
        over the last months.
      
        Also included are two ORDERED task related bug-fixes Bryant + Michael
        found along the way using ibmvscsis with AIX guests, plus a few
        miscellaneous target-core + iscsi-target bug-fixes with associated
        stable tags"
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
        target: fix spelling mistake: "limitiation" -> "limitation"
        target: Fix residual overflow handling in target_complete_cmd_with_length
        tcm_fc: set and unset FCP_SPPF_TARG_FCN
        iscsi-target: Fix panic when adding second TCP connection to iSCSI session
        ibmvscsis: Initial commit of IBM VSCSI Tgt Driver
        target: Fix ordered task CHECK_CONDITION early exception handling
        target: Fix ordered task target_setup_cmd_from_cdb exception hang
        target: Fix max_unmap_lba_count calc overflow
        target: Fix race between iscsi-target connection shutdown + ABORT_TASK
        target: Fix missing complete during ABORT_TASK + CMD_T_FABRIC_STOP
      fdf1f7ff
    • Linus Torvalds's avatar
      Merge tag 'nfsd-4.8' of git://linux-nfs.org/~bfields/linux · a71e3604
      Linus Torvalds authored
      Pull nfsd updates from Bruce Fields:
       "Highlights:
      
         - Trond made a change to the server's tcp logic that allows a fast
           client to better take advantage of high bandwidth networks, but may
           increase the risk that a single client could starve other clients;
           a new sunrpc.svc_rpc_per_connection_limit parameter should help
           mitigate this in the (hopefully unlikely) event this becomes a
           problem in practice.
      
         - Tom Haynes added a minimal flex-layout pnfs server, which is of no
           use in production for now--don't build it unless you're doing
           client testing or further server development"
      
      * tag 'nfsd-4.8' of git://linux-nfs.org/~bfields/linux: (32 commits)
        nfsd: remove some dead code in nfsd_create_locked()
        nfsd: drop unnecessary MAY_EXEC check from create
        nfsd: clean up bad-type check in nfsd_create_locked
        nfsd: remove unnecessary positive-dentry check
        nfsd: reorganize nfsd_create
        nfsd: check d_can_lookup in fh_verify of directories
        nfsd: remove redundant zero-length check from create
        nfsd: Make creates return EEXIST instead of EACCES
        SUNRPC: Detect immediate closure of accepted sockets
        SUNRPC: accept() may return sockets that are still in SYN_RECV
        nfsd: allow nfsd to advertise multiple layout types
        nfsd: Close race between nfsd4_release_lockowner and nfsd4_lock
        nfsd/blocklayout: Make sure calculate signature/designator length aligned
        xfs: abstract block export operations from nfsd layouts
        SUNRPC: Remove unused callback xpo_adjust_wspace()
        SUNRPC: Change TCP socket space reservation
        SUNRPC: Add a server side per-connection limit
        SUNRPC: Micro optimisation for svc_data_ready
        SUNRPC: Call the default socket callbacks instead of open coding
        SUNRPC: lock the socket while detaching it
        ...
      a71e3604
    • Linus Torvalds's avatar
      Merge branch 'for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · d58b0d98
      Linus Torvalds authored
      Pull more btrfs updates from Chris Mason:
       "This is part two of my btrfs pull, which is some cleanups and a batch
        of fixes.
      
        Most of the code here is from Jeff Mahoney, making the pointers we
        pass around internally more consistent and less confusing overall.  I
        noticed a small problem right before I sent this out yesterday, so I
        fixed it up and re-tested overnight"
      
      * 'for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (40 commits)
        Btrfs: fix __MAX_CSUM_ITEMS
        btrfs: btrfs_abort_transaction, drop root parameter
        btrfs: add btrfs_trans_handle->fs_info pointer
        btrfs: btrfs_relocate_chunk pass extent_root to btrfs_end_transaction
        btrfs: convert nodesize macros to static inlines
        btrfs: introduce BTRFS_MAX_ITEM_SIZE
        btrfs: cleanup, remove prototype for btrfs_find_root_ref
        btrfs: copy_to_sk drop unused root parameter
        btrfs: simpilify btrfs_subvol_inherit_props
        btrfs: tests, use BTRFS_FS_STATE_DUMMY_FS_INFO instead of dummy root
        btrfs: tests, require fs_info for root
        btrfs: tests, move initialization into tests/
        btrfs: btrfs_test_opt and friends should take a btrfs_fs_info
        btrfs: prefix fsid to all trace events
        btrfs: plumb fs_info into btrfs_work
        btrfs: remove obsolete part of comment in statfs
        btrfs: hide test-only member under ifdef
        btrfs: Ratelimit "no csum found" info message
        btrfs: Add ratelimit to btrfs printing
        Btrfs: fix unexpected balance crash due to BUG_ON
        ...
      d58b0d98
    • Linus Torvalds's avatar
      Merge tag 'upstream-4.8-rc1' of git://git.infradead.org/linux-ubifs · 3a303258
      Linus Torvalds authored
      Pull UBI/UBIFS updates from Richard Weinberger:
       "This contains mostly cleanups and minor improvements of UBI and UBIFS"
      
      * tag 'upstream-4.8-rc1' of git://git.infradead.org/linux-ubifs:
        ubi: Use bitmaps in Fastmap self-check code
        ubi: Be more paranoid while seaching for the most recent Fastmap
        ubi: Check whether the Fastmap anchor matches the super block
        ubi: Rework Fastmap attach base code
        ubi: Fix whitespace issue in count_fastmap_pebs()
        ubi: Introduce vol_ignored()
        ubi: Fix scan_fast() comment
        ubifs: switch_gc_head: Remove redondant sync of wbuf
        ubi: Make volume resize power cut aware
        ubi: Fix early logging
        ubi: gluebi: Fix double refcounting
        ubifs: Silence early error messages if MS_SILENT is set
        ubi: Fix race condition between ubi device creation and udev
        ubifs: Update comment for ubifs_errc
        ubi: Only read necessary size when reading the VID header
        ubifs: Make xattr structures static
        ubifs: Silence error output if MS_SILENT is set
      3a303258
    • Linus Torvalds's avatar
      Merge branch 'for-linus-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 9e0243db
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
       "Beside of various fixes this also contains patches to enable features
        such was Kcov, kmemleak and TRACE_IRQFLAGS_SUPPORT on UML"
      
      * 'for-linus-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        hostfs: Freeing an ERR_PTR in hostfs_fill_sb_common()
        um: Support kcov
        um: Enable TRACE_IRQFLAGS_SUPPORT
        um: Use asm-generic/irqflags.h
        um: Fix possible deadlock in sig_handler_common()
        um: Select HAVE_DEBUG_KMEMLEAK
        um: Setup physical memory in setup_arch()
        um: Eliminate null test after alloc_bootmem
      9e0243db
    • Linus Torvalds's avatar
      Merge branch 'parisc-4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · b067c904
      Linus Torvalds authored
      Pull parisc updates from Helge Deller:
      
       - added an optimized hash implementation for parisc (George Spelvin)
      
       - C99 style cleanups in iomap.c (Amitoj Kaur Chawla)
      
       - added breaks to switch statement in PDC function (noticed by Dan
         Carpenter)
      
      * 'parisc-4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Change structure intialisation to C99 style in iomap.c
        parisc: Add break statements to pdc_pat_io_pci_cfg_read()
        parisc: Add <asm/hash.h>
      b067c904
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 8e7106a6
      Linus Torvalds authored
      Pull m68knommu updates from Greg Ungerer:
       "This series is all about Nicolas flat format support for MMU systems.
      
        Traditional m68k no-MMU flat format binaries can now be run on m68k
        MMU enabled systems too.  The series includes some nice cleanups of
        the binfmt_flat code and converts it to using proper user space
        accessor functions.
      
        With all this in place you can boot and run a complete no-MMU flat
        format based user space on an MMU enabled system"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68k: enable binfmt_flat on systems with an MMU
        binfmt_flat: allow compressed flat binary format to work on MMU systems
        binfmt_flat: add MMU-specific support
        binfmt_flat: update libraries' data segment pointer with userspace accessors
        binfmt_flat: use clear_user() rather than memset() to clear .bss
        binfmt_flat: use proper user space accessors with old relocs code
        binfmt_flat: use proper user space accessors with relocs processing code
        binfmt_flat: clean up create_flat_tables() and stack accesses
        binfmt_flat: use generic transfer_args_to_stack()
        elf_fdpic_transfer_args_to_stack(): make it generic
        binfmt_flat: prevent kernel dammage from corrupted executable headers
        binfmt_flat: convert printk invocations to their modern form
        binfmt_flat: assorted cleanups
        m68k: use same start_thread() on MMU and no-MMU
        m68k: fix file path comment
        m68k: fix bFLT executable running on MMU enabled systems
      8e7106a6
    • Dan Carpenter's avatar
      nfsd: remove some dead code in nfsd_create_locked() · 2b118859
      Dan Carpenter authored
      
      
      We changed this around in f135af1041f ('nfsd: reorganize nfsd_create')
      so "dchild" can't be an error pointer any more.  Also, dchild can't be
      NULL here (and dput would already handle this even if it was).
      
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      2b118859
    • J. Bruce Fields's avatar
      nfsd: drop unnecessary MAY_EXEC check from create · fa08139d
      J. Bruce Fields authored
      
      
      We need an fh_verify to make sure we at least have a dentry, but actual
      permission checks happen later.
      
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      fa08139d
    • J. Bruce Fields's avatar
      nfsd: clean up bad-type check in nfsd_create_locked · 71423274
      J. Bruce Fields authored
      
      
      Minor cleanup, no change in behavior.
      
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      71423274
    • J. Bruce Fields's avatar
      nfsd: remove unnecessary positive-dentry check · d03d9fe4
      J. Bruce Fields authored
      
      
      vfs_{create,mkdir,mknod} each begin with a call to may_create(), which
      returns EEXIST if the object already exists.
      
      This check is therefore unnecessary.
      
      (In the NFSv2 case, nfsd_proc_create also has such a check.  Contrary to
      RFC 1094, our code seems to believe that a CREATE of an existing file
      should succeed.  I'm leaving that behavior alone.)
      
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      d03d9fe4
    • J. Bruce Fields's avatar
      nfsd: reorganize nfsd_create · b44061d0
      J. Bruce Fields authored
      
      
      There's some odd logic in nfsd_create() that allows it to be called with
      the parent directory either locked or unlocked.  The only already-locked
      caller is NFSv2's nfsd_proc_create().  It's less confusing to split out
      the unlocked case into a separate function which the NFSv2 code can call
      directly.
      
      Also fix some comments while we're here.
      
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      b44061d0
    • J. Bruce Fields's avatar
      nfsd: check d_can_lookup in fh_verify of directories · e75b23f9
      J. Bruce Fields authored
      
      
      Create and other nfsd ops generally assume we can call lookup_one_len on
      inodes with S_IFDIR set.  Al says that this assumption isn't true in
      general, though it should be for the filesystem objects nfsd sees.
      
      Add a check just to make sure our assumption isn't violated.
      
      Remove a couple checks for i_op->lookup in create code.
      
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      e75b23f9
    • J. Bruce Fields's avatar
      nfsd: remove redundant zero-length check from create · 12391d07
      J. Bruce Fields authored
      
      
      lookup_one_len already has this check.
      
      The only effect of this patch is to return access instead of perm in the
      0-length-filename case.  I actually prefer nfserr_perm (or _inval?), but
      I doubt anyone cares.
      
      The isdotent check seems redundant too, but I worry that some client
      might actually care about that strange nfserr_exist error.
      
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      12391d07
    • Oleg Drokin's avatar
      nfsd: Make creates return EEXIST instead of EACCES · 7eed34f1
      Oleg Drokin authored
      
      
      When doing a create (mkdir/mknod) on a name, it's worth
      checking the name exists first before returning EACCES in case
      the directory is not writeable by the user.
      This makes return values on the client more consistent
      regardless of whenever the entry there is cached in the local
      cache or not.
      Another positive side effect is certain programs only expect
      EEXIST in that case even despite POSIX allowing any valid
      error to be returned.
      
      Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      7eed34f1
  2. Aug 04, 2016