1. 25 1月, 2018 1 次提交
  2. 07 12月, 2017 1 次提交
  3. 03 11月, 2017 1 次提交
  4. 19 10月, 2017 1 次提交
  5. 18 9月, 2017 2 次提交
    • A
      cifs: hide unused functions · 1368f155
      Arnd Bergmann 提交于
      The newly added SMB2+ attribute support causes unused function
      warnings when CONFIG_CIFS_XATTR is disabled:
      
      fs/cifs/smb2ops.c:563:1: error: 'smb2_set_ea' defined but not used [-Werror=unused-function]
       smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
      fs/cifs/smb2ops.c:513:1: error: 'smb2_query_eas' defined but not used [-Werror=unused-function]
       smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon,
      
      This adds another #ifdef around the affected functions.
      
      Fixes: 5517554e ("cifs: Add support for writing attributes on SMB2+")
      Fixes: 95907fea ("cifs: Add support for reading attributes on SMB2+")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      1368f155
    • S
      SMB3: Add support for multidialect negotiate (SMB2.1 and later) · 9764c02f
      Steve French 提交于
      With the need to discourage use of less secure dialect, SMB1 (CIFS),
      we temporarily upgraded the dialect to SMB3 in 4.13, but since there
      are various servers which only support SMB2.1 (2.1 is more secure
      than CIFS/SMB1) but not optimal for a default dialect - add support
      for multidialect negotiation.  cifs.ko will now request SMB2.1
      or later (ie SMB2.1 or SMB3.0, SMB3.02) and the server will
      pick the latest most secure one it can support.
      
      In addition since we are sending multidialect negotiate, add
      support for secure negotiate to validate that a man in the
      middle didn't downgrade us.
      Signed-off-by: NSteve French <smfrench@gmail.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      CC: Stable <stable@vger.kernel.org> # 4.13+
      9764c02f
  6. 05 9月, 2017 2 次提交
  7. 09 7月, 2017 2 次提交
  8. 06 7月, 2017 3 次提交
  9. 03 7月, 2017 1 次提交
  10. 21 6月, 2017 2 次提交
  11. 03 5月, 2017 1 次提交
  12. 11 4月, 2017 1 次提交
  13. 07 4月, 2017 4 次提交
    • T
      CIFS: Fix build failure with smb2 · 4fa8e504
      Tobias Regnery 提交于
      I saw the following build error during a randconfig build:
      
      fs/cifs/smb2ops.c: In function 'smb2_new_lease_key':
      fs/cifs/smb2ops.c:1104:2: error: implicit declaration of function 'generate_random_uuid' [-Werror=implicit-function-declaration]
      
      Explicit include the right header to fix this issue.
      Signed-off-by: NTobias Regnery <tobias.regnery@gmail.com>
      Reviewed-by: NAurelien Aptel <aaptel@suse.com>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      4fa8e504
    • S
      Introduce cifs_copy_file_range() · 620d8745
      Sachin Prabhu 提交于
      The earlier changes to copy range for cifs unintentionally disabled the more
      common form of server side copy.
      
      The patch introduces the file_operations helper cifs_copy_file_range()
      which is used by the syscall copy_file_range. The new file operations
      helper allows us to perform server side copies for SMB2.0 and 2.1
      servers as well as SMB 3.0+ servers which do not support the ioctl
      FSCTL_DUPLICATE_EXTENTS_TO_FILE.
      
      The new helper uses the ioctl FSCTL_SRV_COPYCHUNK_WRITE to perform
      server side copies. The helper is called by vfs_copy_file_range() only
      once an attempt to clone the file using the ioctl
      FSCTL_DUPLICATE_EXTENTS_TO_FILE has failed.
      Signed-off-by: NSachin Prabhu <sprabhu@redhat.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      CC: Stable  <stable@vger.kernel.org>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      620d8745
    • S
      SMB3: Rename clone_range to copychunk_range · 312bbc59
      Sachin Prabhu 提交于
      Server side copy is one of the most important mechanisms smb2/smb3
      supports and it was unintentionally disabled for most use cases.
      
      Renaming calls to reflect the underlying smb2 ioctl called. This is
      similar to the name duplicate_extents used for a similar ioctl which is
      also used to duplicate files by reusing fs blocks. The name change is to
      avoid confusion.
      Signed-off-by: NSachin Prabhu <sprabhu@redhat.com>
      CC: Stable <stable@vger.kernel.org>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      312bbc59
    • S
      Handle mismatched open calls · 38bd4906
      Sachin Prabhu 提交于
      A signal can interrupt a SendReceive call which result in incoming
      responses to the call being ignored. This is a problem for calls such as
      open which results in the successful response being ignored. This
      results in an open file resource on the server.
      
      The patch looks into responses which were cancelled after being sent and
      in case of successful open closes the open fids.
      
      For this patch, the check is only done in SendReceive2()
      
      RH-bz: 1403319
      Signed-off-by: NSachin Prabhu <sprabhu@redhat.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      Cc: Stable <stable@vger.kernel.org>
      38bd4906
  14. 03 3月, 2017 2 次提交
  15. 02 3月, 2017 2 次提交
  16. 02 2月, 2017 4 次提交
  17. 14 10月, 2016 2 次提交
  18. 13 10月, 2016 3 次提交
  19. 28 7月, 2016 1 次提交
  20. 12 7月, 2016 1 次提交
  21. 15 1月, 2016 1 次提交
  22. 03 11月, 2015 1 次提交
  23. 01 11月, 2015 1 次提交