1. 02 12月, 2016 19 次提交
  2. 23 11月, 2016 1 次提交
    • A
      NFSv4.x: hide array-bounds warning · d55b352b
      Arnd Bergmann 提交于
      A correct bugfix introduced a harmless warning that shows up with gcc-7:
      
      fs/nfs/callback.c: In function 'nfs_callback_up':
      fs/nfs/callback.c:214:14: error: array subscript is outside array bounds [-Werror=array-bounds]
      
      What happens here is that the 'minorversion == 0' check tells the
      compiler that we assume minorversion can be something other than 0,
      but when CONFIG_NFS_V4_1 is disabled that would be invalid and
      result in an out-of-bounds access.
      
      The added check for IS_ENABLED(CONFIG_NFS_V4_1) tells gcc that this
      really can't happen, which makes the code slightly smaller and also
      avoids the warning.
      
      The bugfix that introduced the warning is marked for stable backports,
      we want this one backported to the same releases.
      
      Fixes: 98b0f80c ("NFSv4.x: Fix a refcount leak in nfs_callback_up_net")
      Cc: stable@vger.kernel.org # v3.7+
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      d55b352b
  3. 22 11月, 2016 1 次提交
  4. 19 11月, 2016 4 次提交
  5. 12 11月, 2016 1 次提交
  6. 08 11月, 2016 3 次提交
  7. 25 10月, 2016 2 次提交
    • A
      NFSv4.1: work around -Wmaybe-uninitialized warning · 68a56400
      Arnd Bergmann 提交于
      A bugfix introduced a harmless gcc warning in nfs4_slot_seqid_in_use
      if we enable -Wmaybe-uninitialized again:
      
      fs/nfs/nfs4session.c:203:54: error: 'cur_seq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      gcc is not smart enough to conclude that the IS_ERR/PTR_ERR pair
      results in a nonzero return value here. Using PTR_ERR_OR_ZERO()
      instead makes this clear to the compiler.
      
      The warning originally did not appear in v4.8 as it was globally
      disabled, but the bugfix that introduced the warning got backported
      to stable kernels which again enable it, and this is now the only
      warning in the v4.7 builds.
      
      Fixes: e09c978a ("NFSv4.1: Fix Oopsable condition in server callback races")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Trond Myklebust <trond.myklebust@primarydata.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      68a56400
    • B
      NFS: Trim extra slash in v4 nfs_path · 86a6c211
      Benjamin Coddington 提交于
      A NFSv4 mount of a subdirectory will show an extra slash (as in
      'server://path') in proc's mountinfo which will not match the device name
      and path.  This can cause problems for programs searching for the mount.
      Fix this by checking for a leading slash in the dentry path, if so trim
      away any trailing slashes in the device name.
      Signed-off-by: NBenjamin Coddington <bcodding@redhat.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      86a6c211
  8. 20 10月, 2016 1 次提交
  9. 14 10月, 2016 1 次提交
  10. 08 10月, 2016 2 次提交
  11. 06 10月, 2016 1 次提交
  12. 05 10月, 2016 2 次提交
  13. 30 9月, 2016 1 次提交
  14. 28 9月, 2016 1 次提交