1. 12 Oct, 2016 11 commits
    • Aurelien Aptel's avatar
      fs/cifs: keep guid when assigning fid to fileinfo · 94f87371
      Aurelien Aptel authored
      When we open a durable handle we give a Globally Unique
      Identifier (GUID) to the server which we must keep for later reference
      e.g. when reopening persistent handles on reconnection.
      
      Without this the GUID generated for a new persistent handle was lost and
      16 zero bytes were used instead on re-opening.
      Signed-off-by: default avatarAurelien Aptel <aaptel@suse.com>
      CC: Stable <stable@vger.kernel.org>
      Signed-off-by: default avatarSteve French <smfrench@gmail.com>
      94f87371
    • Steve French's avatar
      SMB3: GUIDs should be constructed as random but valid uuids · fa70b87c
      Steve French authored
      GUIDs although random, and 16 bytes, need to be generated as
      proper uuids.
      Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
      Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
      Reported-by: default avatarDavid Goebels <davidgoe@microsoft.com>
      CC: Stable <stable@vger.kernel.org>
      fa70b87c
    • Steve French's avatar
      Set previous session id correctly on SMB3 reconnect · c2afb814
      Steve French authored
      Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
      CC: Stable <stable@vger.kernel.org>
      Reported-by: default avatarDavid Goebel <davidgoe@microsoft.com>
      c2afb814
    • Ross Lagerwall's avatar
      cifs: Limit the overall credit acquired · 7d414f39
      Ross Lagerwall authored
      The kernel client requests 2 credits for many operations even though
      they only use 1 credit (presumably to build up a buffer of credit).
      Some servers seem to give the client as much credit as is requested.  In
      this case, the amount of credit the client has continues increasing to
      the point where (server->credits * MAX_BUFFER_SIZE) overflows in
      smb2_wait_mtu_credits().
      
      Fix this by throttling the credit requests if an set limit is reached.
      For async requests where the credit charge may be > 1, request as much
      credit as what is charged.
      The limit is chosen somewhat arbitrarily. The Windows client
      defaults to 128 credits, the Windows server allows clients up to
      512 credits (or 8192 for Windows 2016), and the NetApp server
      (and at least one other) does not limit clients at all.
      Choose a high enough value such that the client shouldn't limit
      performance.
      
      This behavior was seen with a NetApp filer (NetApp Release 9.0RC2).
      Signed-off-by: default avatarRoss Lagerwall <ross.lagerwall@citrix.com>
      CC: Stable <stable@vger.kernel.org>
      Signed-off-by: default avatarSteve French <smfrench@gmail.com>
      7d414f39
    • Steve French's avatar
      Display number of credits available · 9742805d
      Steve French authored
      In debugging smb3, it is useful to display the number
      of credits available, so we can see when the server has not granted
      sufficient operations for the client to make progress, or alternatively
      the client has requested too many credits (as we saw in a recent bug)
      so we can compare with the number of credits the server thinks
      we have.
      
      Add a /proc/fs/cifs/DebugData line to display the client view
      on how many credits are available.
      Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
      Reported-by: default avatarGermano Percossi <germano.percossi@citrix.com>
      CC: Stable <stable@vger.kernel.org>
      9742805d
    • Steve French's avatar
      Add way to query creation time of file via cifs xattr · 66098044
      Steve French authored
      Add parsing for new pseudo-xattr user.cifs.creationtime file
      attribute to allow backup and test applications to view
      birth time of file on cifs/smb3 mounts.
      Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
      66098044
    • Steve French's avatar
      Add way to query file attributes via cifs xattr · a958fff2
      Steve French authored
      Add parsing for new pseudo-xattr user.cifs.dosattrib file attribute
      so tools can recognize what kind of file it is, and verify if common
      SMB3 attributes (system, hidden, archive, sparse, indexed etc.) are
      set.
      Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilovsky@samba.org>
      a958fff2
    • Linus Torvalds's avatar
      Merge branch 'parisc-4.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 1573d2ca
      Linus Torvalds authored
      Pull parisc fixes from Helge Deller:
       "Some final updates and fixes for this merge window for the parisc
        architecture. Changes include:
      
         - Fix boot problems with new memblock allocator on rp3410 machine
      
         - Increase initial kernel mapping size for 32- and 64-bit kernels,
           this allows to boot bigger kernels which have many modules built-in
      
         - Fix kernel layout regarding __gp and move exception table into RO
           section
      
         - Show trap names in crashes, use extable.h header instead of
           module.h"
      
      * 'parisc-4.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Show trap name in kernel crash
        parisc: Zero-initialize newly alloced memblock
        parisc: Move exception table into read-only section
        parisc: Fix kernel memory layout regarding position of __gp
        parisc: Increase initial kernel mapping size
        parisc: Migrate exception table users off module.h and onto extable.h
      1573d2ca
    • Linus Torvalds's avatar
      Merge branch 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 4cdf8dbe
      Linus Torvalds authored
      Pull uaccess.h prepwork from Al Viro:
       "Preparations to tree-wide switch to use of linux/uaccess.h (which,
        obviously, will allow to start unifying stuff for real). The last step
        there, ie
      
          PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>'
          sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \
                  `git grep -l "$PATT"|grep -v ^include/linux/uaccess.h`
      
        is not taken here - I would prefer to do it once just before or just
        after -rc1.  However, everything should be ready for it"
      
      * 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        remove a stray reference to asm/uaccess.h in docs
        sparc64: separate extable_64.h, switch elf_64.h to it
        score: separate extable.h, switch module.h to it
        mips: separate extable.h, switch module.h to it
        x86: separate extable.h, switch sections.h to it
        remove stray include of asm/uaccess.h from cacheflush.h
        mn10300: remove a bogus processor.h->uaccess.h include
        xtensa: split uaccess.h into C and asm sides
        bonding: quit messing with IOCTL
        kill __kernel_ds_p off
        mn10300: finish verify_area() off
        frv: move HAVE_ARCH_UNMAPPED_AREA to pgtable.h
        exceptions: detritus removal
      4cdf8dbe
    • Linus Torvalds's avatar
      Merge tag 'drm-for-v4.9' of git://people.freedesktop.org/~airlied/linux · 6b25e21f
      Linus Torvalds authored
      Pull drm updates from Dave Airlie:
       "Core:
         - Fence destaging work
         - DRIVER_LEGACY to split off legacy drm drivers
         - drm_mm refactoring
         - Splitting drm_crtc.c into chunks and documenting better
         - Display info fixes
         - rbtree support for prime buffer lookup
         - Simple VGA DAC driver
      
        Panel:
         - Add Nexus 7 panel
         - More simple panels
      
        i915:
         - Refactoring GEM naming
         - Refactored vma/active tracking
         - Lockless request lookups
         - Better stolen memory support
         - FBC fixes
         - SKL watermark fixes
         - VGPU improvements
         - dma-buf fencing support
         - Better DP dongle support
      
        amdgpu:
         - Powerplay for Iceland asics
         - Improved GPU reset support
         - UVD/VEC powergating support for CZ/ST
         - Preinitialised VRAM buffer support
         - Virtual display support
         - Initial SI support
         - GTT rework
         - PCI shutdown callback support
         - HPD IRQ storm fixes
      
        amdkfd:
         - bugfixes
      
        tilcdc:
         - Atomic modesetting support
      
        mediatek:
         - AAL + GAMMA engine support
         - Hook up gamma LUT
         - Temporal dithering support
      
        imx:
         - Pixel clock from devicetree
         - drm bridge support for LVDS bridges
         - active plane reconfiguration
         - VDIC deinterlacer support
         - Frame synchronisation unit support
         - Color space conversion support
      
        analogix:
         - PSR support
         - Better panel on/off support
      
        rockchip:
         - rk3399 vop/crtc support
         - PSR support
      
        vc4:
         - Interlaced vblank timing
         - 3D rendering CPU overhead reduction
         - HDMI output fixes
      
        tda998x:
         - HDMI audio ASoC support
      
        sunxi:
         - Allwinner A33 support
         - better TCON support
      
        msm:
         - DT binding cleanups
         - Explicit fence-fd support
      
        sti:
         - remove sti415/416 support
      
        etnaviv:
         - MMUv2 refactoring
         - GC3000 support
      
        exynos:
         - Refactoring HDMI DCC/PHY
         - G2D pm regression fix
         - Page fault issues with wait for vblank
      
        There is no nouveau work in this tree, as Ben didn't get a pull
        request in, and he was fighting moving to atomic and adding mst
        support, so maybe best it waits for a cycle"
      
      * tag 'drm-for-v4.9' of git://people.freedesktop.org/~airlied/linux: (1412 commits)
        drm/crtc: constify drm_crtc_index parameter
        drm/i915: Fix conflict resolution from backmerge of v4.8-rc8 to drm-next
        drm/i915/guc: Unwind GuC workqueue reservation if request construction fails
        drm/i915: Reset the breadcrumbs IRQ more carefully
        drm/i915: Force relocations via cpu if we run out of idle aperture
        drm/i915: Distinguish last emitted request from last submitted request
        drm/i915: Allow DP to work w/o EDID
        drm/i915: Move long hpd handling into the hotplug work
        drm/i915/execlists: Reinitialise context image after GPU hang
        drm/i915: Use correct index for backtracking HUNG semaphores
        drm/i915: Unalias obj->phys_handle and obj->userptr
        drm/i915: Just clear the mmiodebug before a register access
        drm/i915/gen9: only add the planes actually affected by ddb changes
        drm/i915: Allow PCH DPLL sharing regardless of DPLL_SDVO_HIGH_SPEED
        drm/i915/bxt: Fix HDMI DPLL configuration
        drm/i915/gen9: fix the watermark res_blocks value
        drm/i915/gen9: fix plane_blocks_per_line on watermarks calculations
        drm/i915/gen9: minimum scanlines for Y tile is not always 4
        drm/i915/gen9: fix the WaWmMemoryReadLatency implementation
        drm/i915/kbl: KBL also needs to run the SAGV code
        ...
      6b25e21f
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · a379f71a
      Linus Torvalds authored
      Merge more updates from Andrew Morton:
      
       - a few block updates that fell in my lap
      
       - lib/ updates
      
       - checkpatch
      
       - autofs
      
       - ipc
      
       - a ton of misc other things
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (100 commits)
        mm: split gfp_mask and mapping flags into separate fields
        fs: use mapping_set_error instead of opencoded set_bit
        treewide: remove redundant #include <linux/kconfig.h>
        hung_task: allow hung_task_panic when hung_task_warnings is 0
        kthread: add kerneldoc for kthread_create()
        kthread: better support freezable kthread workers
        kthread: allow to modify delayed kthread work
        kthread: allow to cancel kthread work
        kthread: initial support for delayed kthread work
        kthread: detect when a kthread work is used by more workers
        kthread: add kthread_destroy_worker()
        kthread: add kthread_create_worker*()
        kthread: allow to call __kthread_create_on_node() with va_list args
        kthread/smpboot: do not park in kthread_create_on_cpu()
        kthread: kthread worker API cleanup
        kthread: rename probe_kthread_data() to kthread_probe_data()
        scripts/tags.sh: enable code completion in VIM
        mm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping
        kdump, vmcoreinfo: report memory sections virtual addresses
        ipc/sem.c: add cond_resched in exit_sme
        ...
      a379f71a
  2. 11 Oct, 2016 29 commits