]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1905babe9f444165e5f98b7fd3bca41990664c8d
tree2827d1147ef01e88692057e2be8f94d078260cc4
parente92f6f1fb96547a04597fab23bc83473e1d74a86
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