[GIT PULL] SMB3 Fixes

From: Steve French
Date: Tue Jan 28 2020 - 13:31:49 EST


Please pull the following changes since commit
d5226fa6dbae0569ee43ecfc08bdcd6770fc4755:

Linux 5.5 (2020-01-26 16:23:03 -0800)

are available in the Git repository at:

git://git.samba.org/sfrench/cifs-2.6.git
tags/5.6-smb3-fixes-and-dfs-and-readdir-improvements

for you to fetch changes up to f1f27ad74557e39f67a8331a808b860f89254f2d:

CIFS: Fix task struct use-after-free on reconnect (2020-01-26 19:24:17 -0600)

----------------------------------------------------------------
- Various SMB3/CIFS fixes including 4 for stable.
- Improvement to fallocate (enables 3 additional xfstests)
- Fix for file creation when mounting with modefromsid
- Add ability to backup/restore dos attributes and creation time over SMB3
- DFS failover and reconnect fixes
- Performance optimization for readdir (by using SMB3 compounding)

Buildbot automated functional test results:
http://smb3-test-rhel-75.southcentralus.cloudapp.azure.com/#/builders/2/builds/312

Note that due to the upcoming SMB3 Test Event (at SNIA SDC next week).
There will likely be more changesets near the end of the merge window
(since we will be testing heavily next week, I held off on some patches
and I expect some additional multichannel patches as well as patches
to enable some additional xfstests).
----------------------------------------------------------------
Boris Protopopov (1):
CIFS: Add support for setting owner info, dos attributes, and create time

Chen Zhou (1):
cifs: use PTR_ERR_OR_ZERO() to simplify code

David Howells (1):
cifs: Don't use iov_iter::type directly

Paulo Alcantara (SUSE) (8):
cifs: Clean up DFS referral cache
cifs: Get rid of kstrdup_const()'d paths
cifs: Introduce helpers for finding TCP connection
cifs: Merge is_path_valid() into get_normalized_path()
cifs: Fix potential deadlock when updating vol in cifs_reconnect()
cifs: Avoid doing network I/O while holding cache lock
cifs: Fix mount options set in automount
cifs: Fix memory allocation in __smb2_handle_cancelled_cmd()

Ronnie Sahlberg (6):
cifs: prepare SMB2_query_directory to be used with compounding
cifs: create a helper function to parse the query-directory
response buffer
cifs: use compounding for open and first query-dir for readdir()
cifs: set correct max-buffer-size for smb2_ioctl_init()
cifs: fix NULL dereference in match_prepath
cifs: add support for fallocate mode 0 for non-sparse files

Steve French (2):
cifs: fix unitialized variable poential problem with network I/O
cache lock patch
smb3: fix default permissions on new files when mounting with modefromsid

Vincent Whitchurch (1):
CIFS: Fix task struct use-after-free on reconnect

YueHaibing (2):
cifs: Fix return value in __update_cache_entry
cifs: remove set but not used variable 'server'

zhengbin (2):
fs/cifs/smb2ops.c: use true,false for bool variable
fs/cifs/cifssmb.c: use true,false for bool variable

fs/cifs/cifs_dfs_ref.c | 97 ++---
fs/cifs/cifsacl.c | 20 +
fs/cifs/cifsfs.h | 3 +
fs/cifs/cifsglob.h | 1 +
fs/cifs/cifsproto.h | 4 +
fs/cifs/cifssmb.c | 4 +-
fs/cifs/connect.c | 6 +-
fs/cifs/dfs_cache.c | 1112 +++++++++++++++++++++++++----------------------
fs/cifs/file.c | 8 +-
fs/cifs/inode.c | 4 +-
fs/cifs/smb2misc.c | 2 +-
fs/cifs/smb2ops.c | 171 +++++---
fs/cifs/smb2pdu.c | 182 +++++---
fs/cifs/smb2pdu.h | 2 +
fs/cifs/smb2proto.h | 5 +
fs/cifs/smb2transport.c | 2 +
fs/cifs/transport.c | 3 +
fs/cifs/xattr.c | 128 +++++-
18 files changed, 1041 insertions(+), 713 deletions(-)


--
Thanks,

Steve