SMB3: Fix 3.11 encryption to Windows and handle encrypted smb3 tcon
authorSteve French <stfrench@microsoft.com>
Sun, 22 Apr 2018 20:14:58 +0000 (15:14 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 24 Apr 2018 15:07:14 +0000 (10:07 -0500)
commit23657ad7305ee8b263d27335abdd00917764c9cf
tree2827d1147ef01e88692057e2be8f94d078260cc4
parent117e3b7fed552eba96ae0b3b92312fe8c5b0bfdd
SMB3: Fix 3.11 encryption to Windows and handle encrypted smb3 tcon

Temporarily disable AES-GCM, as AES-CCM is only currently
enabled mechanism on client side.  This fixes SMB3.11
encrypted mounts to Windows.

Also the tree connect request itself should be encrypted if
requested encryption ("seal" on mount), in addition we should be
enabling encryption in 3.11 based on whether we got any valid
encryption ciphers back in negprot (the corresponding session flag is
not set as it is in 3.0 and 3.02)

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Stable <stable@vger.kernel.org>
fs/cifs/connect.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h