[GIT PULL] smb3 client fixes

From: Steve French
Date: Sat Nov 13 2021 - 15:18:25 EST


Please pull the following changes since commit
b5013d084e03e82ceeab4db8ae8ceeaebe76b0eb:

Merge tag '5.16-rc-part1-smb3-client-fixes' of
git://git.samba.org/sfrench/cifs-2.6 (2021-11-06 16:47:53 -0700)

are available in the Git repository at:

git://git.samba.org/sfrench/cifs-2.6.git tags/5.16-rc-part2-smb3-client-fixes

for you to fetch changes up to 46bb1b9484aeaf701da50c9ee063f3e93ce2a37b:

cifs: do not duplicate fscache cookie for secondary channels
(2021-11-12 23:29:08 -0600)

----------------------------------------------------------------
23 cifs/smb3 fixes, including:
- improvements to reconnect and multichannel
- a performance improvement (additional use of SMB3 compounding)
- DFS code cleanup and improvements
- various trivial Coverity fixes
- two fscache fixes
- an fsync fix

Regression test results:
http://smb3-test-rhel-75.southcentralus.cloudapp.azure.com/#/builders/2/builds/836
----------------------------------------------------------------
Paulo Alcantara (8):
cifs: fix print of hdr_flags in dfscache_proc_show()
cifs: introduce new helper for cifs_reconnect()
cifs: convert list_for_each to entry variant
cifs: split out dfs code from cifs_reconnect()
cifs: set a minimum of 120s for next dns resolution
cifs: support nested dfs links over reconnect
cifs: fix memory leak of smb3_fs_context_dup::server_hostname
cifs: fix potential use-after-free bugs

Shyam Prasad N (7):
cifs: nosharesock should not share socket with future sessions
cifs: send workstation name during ntlmssp session setup
cifs: for compound requests, use open handle if possible
cifs: do not negotiate session if session already exists
cifs: protect session channel fields with chan_lock
cifs: connect individual channel servers to primary channel server
cifs: do not duplicate fscache cookie for secondary channels

Steve French (8):
smb3: do not error on fsync when readonly
smb3: remove trivial dfs compile warning
smb3: add additional null check in SMB2_ioctl
smb3: add additional null check in SMB2_open
smb3: add additional null check in SMB2_tcon
cifs: release lock earlier in dequeue_mid error case
smb3: add additional null check in SMB311_posix_mkdir
smb3: do not setup the fscache_super_cookie until fsinfo initialized

fs/cifs/cifs_debug.c | 7 +-
fs/cifs/cifs_dfs_ref.c | 59 +--
fs/cifs/cifs_fs_sb.h | 5 -
fs/cifs/cifsglob.h | 47 +-
fs/cifs/cifsproto.h | 10 +-
fs/cifs/connect.c | 1468
+++++++++++++++++++++++++++++++++-----------------------------
fs/cifs/dfs_cache.c | 46 +-
fs/cifs/file.c | 35 +-
fs/cifs/fs_context.c | 36 +-
fs/cifs/fs_context.h | 1 +
fs/cifs/fscache.c | 8 +
fs/cifs/misc.c | 64 +--
fs/cifs/ntlmssp.h | 4 +-
fs/cifs/sess.c | 240 ++++++----
fs/cifs/smb2inode.c | 22 +-
fs/cifs/smb2ops.c | 10 +-
fs/cifs/smb2pdu.c | 52 ++-
fs/cifs/transport.c | 3 +
18 files changed, 1184 insertions(+), 933 deletions(-)

--
Thanks,

Steve