1. 12 10月, 2019 8 次提交
    • L
      Merge tag 'nfs-for-5.4-2' of git://git.linux-nfs.org/projects/anna/linux-nfs · 1c0cc5f1
      Linus Torvalds 提交于
      Pull NFS client bugfixes from Anna Schumaker:
       "Stable bugfixes:
         - Fix O_DIRECT accounting of number of bytes read/written # v4.1+
      
        Other fixes:
         - Fix nfsi->nrequests count error on nfs_inode_remove_request()
         - Remove redundant mirror tracking in O_DIRECT
         - Fix leak of clp->cl_acceptor string
         - Fix race to sk_err after xs_error_report"
      
      * tag 'nfs-for-5.4-2' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        SUNRPC: fix race to sk_err after xs_error_report
        NFSv4: Fix leak of clp->cl_acceptor string
        NFS: Remove redundant mirror tracking in O_DIRECT
        NFS: Fix O_DIRECT accounting of number of bytes read/written
        nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request
      1c0cc5f1
    • L
      Merge tag '5.4-rc2-smb3' of git://git.samba.org/sfrench/cifs-2.6 · c6ad7c3c
      Linus Torvalds 提交于
      Pull cifs fixes from Steve French:
       "Eight small SMB3 fixes, four for stable, and important fix for the
        recent regression introduced by filesystem timestamp range patches"
      
      * tag '5.4-rc2-smb3' of git://git.samba.org/sfrench/cifs-2.6:
        CIFS: Force reval dentry if LOOKUP_REVAL flag is set
        CIFS: Force revalidate inode when dentry is stale
        smb3: Fix regression in time handling
        smb3: remove noisy debug message and minor cleanup
        CIFS: Gracefully handle QueryInfo errors during open
        cifs: use cifsInodeInfo->open_file_lock while iterating to avoid a panic
        fs: cifs: mute -Wunused-const-variable message
        smb3: cleanup some recent endian errors spotted by updated sparse
      c6ad7c3c
    • L
      Merge tag 'modules-for-v5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux · c6f6ebd7
      Linus Torvalds 提交于
      Pull module fixes from Jessica Yu:
       "Code cleanups and kbuild/namespace related fixups from Masahiro.
      
        Most importantly, it fixes a namespace-related modpost issue for
        external module builds
      
         - Fix broken external module builds due to a modpost bug in
           read_dump(), where the namespace was not being strdup'd and
           sym->namespace would be set to bogus data.
      
         - Various namespace-related kbuild fixes and cleanups thanks to
           Masahiro Yamada"
      
      * tag 'modules-for-v5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
        doc: move namespaces.rst from kbuild/ to core-api/
        nsdeps: make generated patches independent of locale
        nsdeps: fix hashbang of scripts/nsdeps
        kbuild: fix build error of 'make nsdeps' in clean tree
        module: rename __kstrtab_ns_* to __kstrtabns_* to avoid symbol conflict
        modpost: fix broken sym->namespace for external module builds
        module: swap the order of symbol.namespace
        scripts: add_namespace: Fix coccicheck failed
      c6f6ebd7
    • L
      Merge tag 'hyperv-fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux · 56c642e2
      Linus Torvalds 提交于
      Pull Hyper-V fixes from Sasha Levin:
       "Two fixes from Dexuan Cui:
      
         - Fix a (harmless) warning when building vmbus without
           CONFIG_PM_SLEEP
      
         - Fix for a memory leak (and optimization) in the hyperv mouse code"
      
      * tag 'hyperv-fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
        Drivers: hv: vmbus: Fix harmless building warnings without CONFIG_PM_SLEEP
        HID: hyperv: Use in-place iterator API in the channel callback
      56c642e2
    • J
      Documentation/process: Add fallthrough pseudo-keyword · b9918bdc
      Joe Perches 提交于
      Describe the fallthrough pseudo-keyword.
      
      Convert the coding-style.rst example to the keyword style.
      Add description and links to deprecated.rst.
      
      Miguel Ojeda comments on the eventual [[fallthrough]] syntax:
       "Note that C17/C18 does not have [[fallthrough]].
      
        C++17 introduced it, as it is mentioned above. I would keep the
        __attribute__((fallthrough)) -> [[fallthrough]] change you did,
        though, since that is indeed the standard syntax (given the paragraph
        references C++17).
      
        I was told by Aaron Ballman (who is proposing them for C) that it is
        more or less likely that it becomes standardized in C2x. However, it
        is still not added to the draft (other attributes are already,
        though). See N2268 and N2269:
      
           http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2268.pdf (fallthrough)
           http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2269.pdf (attributes in general)"
      Signed-off-by: NJoe Perches <joe@perches.com>
      Acked-by: NNick Desaulniers <ndesaulniers@google.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b9918bdc
    • J
      compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use · 294f69e6
      Joe Perches 提交于
      Reserve the pseudo keyword 'fallthrough' for the ability to convert the
      various case block /* fallthrough */ style comments to appear to be an
      actual reserved word with the same gcc case block missing fallthrough
      warning capability.
      
      All switch/case blocks now should end in one of:
      
      	break;
      	fallthrough;
      	goto <label>;
      	return [expression];
      	continue;
      
      In C mode, GCC supports the __fallthrough__ attribute since 7.1,
      the same time the warning and the comment parsing were introduced.
      
      fallthrough devolves to an empty "do {} while (0)" if the compiler
      version (any version less than gcc 7) does not support the attribute.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Acked-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Suggested-by: NDan Carpenter <dan.carpenter@oracle.com>
      Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      294f69e6
    • J
      net: sctp: Rename fallthrough label to unhandled · 48f9bcf9
      Joe Perches 提交于
      fallthrough will become a pseudo reserved keyword so this only use of
      fallthrough is better renamed to allow it.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
      Reviewed-by: NKees Cook <keescook@chromium.org>
      Acked-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      48f9bcf9
    • L
      Merge tag 'drm-fixes-2019-10-11' of git://anongit.freedesktop.org/drm/drm · 9892f9f6
      Linus Torvalds 提交于
      Pull drm fixes from Dave Airlie:
       "The regular fixes pull for rc3. The i915 team found some fixes they
        (or I) missed for rc1, which is why this is a bit bigger than usual,
        otherwise there is a single amdgpu fix, some spi panel aliases, and a
        bridge fix.
      
        i915:
         - execlist access fixes
         - list deletion fix
         - CML display fix
         - HSW workaround extension to GT2
         - chicken bit whitelist
         - GGTT resume issue
         - SKL GPU hangs for Vulkan compute
      
        amdgpu:
         - memory leak fix
      
        panel:
         - spi aliases
      
        tc358767:
         - bridge artifacts fix"
      
      * tag 'drm-fixes-2019-10-11' of git://anongit.freedesktop.org/drm/drm: (22 commits)
        drm/bridge: tc358767: fix max_tu_symbol value
        drm/i915/gt: execlists->active is serialised by the tasklet
        drm/i915/execlists: Protect peeking at execlists->active
        drm/i915: Fixup preempt-to-busy vs reset of a virtual request
        drm/i915: Only enqueue already completed requests
        drm/i915/execlists: Drop redundant list_del_init(&rq->sched.link)
        drm/i915/cml: Add second PCH ID for CMP
        drm/amdgpu: fix memory leak
        drm/panel: tpo-td043mtea1: Fix SPI alias
        drm/panel: tpo-td028ttec1: Fix SPI alias
        drm/panel: sony-acx565akm: Fix SPI alias
        drm/panel: nec-nl8048hl11: Fix SPI alias
        drm/panel: lg-lb035q02: Fix SPI alias
        drm/i915: Mark contents as dirty on a write fault
        drm/i915: Prevent bonded requests from overtaking each other on preemption
        drm/i915: Bump skl+ max plane width to 5k for linear/x-tiled
        drm/i915: Verify the engine after acquiring the active.lock
        drm/i915: Extend Haswell GT1 PSMI workaround to all
        drm/i915: Don't mix srcu tag and negative error codes
        drm/i915: Whitelist COMMON_SLICE_CHICKEN2
        ...
      9892f9f6
  2. 11 10月, 2019 7 次提交
    • L
      Merge tag 'for-linus-20191010' of git://git.kernel.dk/linux-block · 297cbccc
      Linus Torvalds 提交于
      Pull block fixes from Jens Axboe:
      
       - Fix wbt performance regression introduced with the blk-rq-qos
         refactoring (Harshad)
      
       - Fix io_uring fileset removal inadvertently killing the workqueue (me)
      
       - Fix io_uring typo in linked command nonblock submission (Pavel)
      
       - Remove spurious io_uring wakeups on request free (Pavel)
      
       - Fix null_blk zoned command error return (Keith)
      
       - Don't use freezable workqueues for backing_dev, also means we can
         revert a previous libata hack (Mika)
      
       - Fix nbd sysfs mutex dropped too soon at removal time (Xiubo)
      
      * tag 'for-linus-20191010' of git://git.kernel.dk/linux-block:
        nbd: fix possible sysfs duplicate warning
        null_blk: Fix zoned command return code
        io_uring: only flush workqueues on fileset removal
        io_uring: remove wait loop spurious wakeups
        blk-wbt: fix performance regression in wbt scale_up/scale_down
        Revert "libata, freezer: avoid block device removal while system is frozen"
        bdi: Do not use freezable workqueue
        io_uring: fix reversed nonblock flag for link submission
      297cbccc
    • D
      Merge tag 'drm-intel-fixes-2019-10-10' of... · 4adbcff2
      Dave Airlie 提交于
      Merge tag 'drm-intel-fixes-2019-10-10' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Fix CML display by adding a missing ID.
      - Drop redundant list_del_init
      - Only enqueue already completed requests to avoid races
      - Fixup preempt-to-busy vs reset of a virtual request
      - Protect peeking at execlists->active
      - execlists->active is serialised by the tasklet
      
      drm-intel-next-fixes-2019-09-19:
      - Extend old HSW workaround to fix some GPU hangs on Haswell GT2
      - Fix return error code on GEM mmap.
      - White list a chicken bit register for push constants legacy mode on Mesa
      - Fix resume issue related to GGTT restore
      - Remove incorrect BUG_ON on execlist's schedule-out
      - Fix unrecoverable GPU hangs with Vulkan compute workloads on SKL
      
      drm-intel-next-fixes-2019-09-26:
      - Fix concurrence on cases where requests where getting retired at same time as resubmitted to HW
      - Fix gen9 display resolutions by setting the right max plane width
      - Fix GPU hang on preemption
      - Mark contents as dirty on a write fault. This was breaking cursor sprite with dumb buffers.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191010143039.GA15313@intel.com
      4adbcff2
    • D
      Merge tag 'drm-fixes-5.4-2019-10-09' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · 46fe219d
      Dave Airlie 提交于
      drm-fixes-5.4-2019-10-09:
      
      amdgpu:
      - fix memory leak in bo_list ioctl error path
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191010031023.23359-1-alexander.deucher@amd.com
      46fe219d
    • D
      Merge tag 'drm-misc-fixes-2019-10-10' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · 437c5a15
      Dave Airlie 提交于
      Short summary of fixes pull (less than what git shortlog provides):
      - SPI Aliases fixes for panels
      - One fix for the tc358767 bridge dealing with visual artifacts
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <mripard@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191010105137.j6juxht5dsobgxph@gilmour
      437c5a15
    • B
      SUNRPC: fix race to sk_err after xs_error_report · af84537d
      Benjamin Coddington 提交于
      Since commit 4f8943f8 ("SUNRPC: Replace direct task wakeups from
      softirq context") there has been a race to the value of the sk_err if both
      XPRT_SOCK_WAKE_ERROR and XPRT_SOCK_WAKE_DISCONNECT are set.  In that case,
      we may end up losing the sk_err value that existed when xs_error_report was
      called.
      
      Fix this by reverting to the previous behavior: instead of using SO_ERROR
      to retrieve the value at a later time (which might also return sk_err_soft),
      copy the sk_err value onto struct sock_xprt, and use that value to wake
      pending tasks.
      Signed-off-by: NBenjamin Coddington <bcodding@redhat.com>
      Fixes: 4f8943f8 ("SUNRPC: Replace direct task wakeups from softirq context")
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      af84537d
    • C
      NFSv4: Fix leak of clp->cl_acceptor string · 1047ec86
      Chuck Lever 提交于
      Our client can issue multiple SETCLIENTID operations to the same
      server in some circumstances. Ensure that calls to
      nfs4_proc_setclientid() after the first one do not overwrite the
      previously allocated cl_acceptor string.
      
      unreferenced object 0xffff888461031800 (size 32):
        comm "mount.nfs", pid 2227, jiffies 4294822467 (age 1407.749s)
        hex dump (first 32 bytes):
          6e 66 73 40 6b 6c 69 6d 74 2e 69 62 2e 31 30 31  nfs@klimt.ib.101
          35 67 72 61 6e 67 65 72 2e 6e 65 74 00 00 00 00  5granger.net....
        backtrace:
          [<00000000ab820188>] __kmalloc+0x128/0x176
          [<00000000eeaf4ec8>] gss_stringify_acceptor+0xbd/0x1a7 [auth_rpcgss]
          [<00000000e85e3382>] nfs4_proc_setclientid+0x34e/0x46c [nfsv4]
          [<000000003d9cf1fa>] nfs40_discover_server_trunking+0x7a/0xed [nfsv4]
          [<00000000b81c3787>] nfs4_discover_server_trunking+0x81/0x244 [nfsv4]
          [<000000000801b55f>] nfs4_init_client+0x1b0/0x238 [nfsv4]
          [<00000000977daf7f>] nfs4_set_client+0xfe/0x14d [nfsv4]
          [<0000000053a68a2a>] nfs4_create_server+0x107/0x1db [nfsv4]
          [<0000000088262019>] nfs4_remote_mount+0x2c/0x59 [nfsv4]
          [<00000000e84a2fd0>] legacy_get_tree+0x2d/0x4c
          [<00000000797e947c>] vfs_get_tree+0x20/0xc7
          [<00000000ecabaaa8>] fc_mount+0xe/0x36
          [<00000000f15fafc2>] vfs_kern_mount+0x74/0x8d
          [<00000000a3ff4e26>] nfs_do_root_mount+0x8a/0xa3 [nfsv4]
          [<00000000d1c2b337>] nfs4_try_mount+0x58/0xad [nfsv4]
          [<000000004c9bddee>] nfs_fs_mount+0x820/0x869 [nfs]
      
      Fixes: f11b2a1c ("nfs4: copy acceptor name from context ... ")
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      1047ec86
    • L
      Merge tag 'xfs-5.4-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 9e208aa0
      Linus Torvalds 提交于
      Pull xfs fixes from Darrick Wong:
       "A couple of small code cleanups and bug fixes for rounding errors,
        metadata logging errors, and an extra layer of safeguards against
        leaking memory contents.
      
         - Fix a rounding error in the fallocate code
      
         - Minor code cleanups
      
         - Make sure to zero memory buffers before formatting metadata blocks
      
         - Fix a few places where we forgot to log an inode metadata update
      
         - Remove broken error handling that tried to clean up after a failure
           but still got it wrong"
      
      * tag 'xfs-5.4-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: move local to extent inode logging into bmap helper
        xfs: remove broken error handling on failed attr sf to leaf change
        xfs: log the inode on directory sf to block format change
        xfs: assure zeroed memory buffers for certain kmem allocations
        xfs: removed unused error variable from xchk_refcountbt_rec
        xfs: remove unused flags arg from xfs_get_aghdr_buf()
        xfs: Fix tail rounding in xfs_alloc_file_space()
      9e208aa0
  3. 10 10月, 2019 21 次提交
  4. 09 10月, 2019 4 次提交