]> 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)
commit54ddcb7ac2364c3ed91927b82f8fb919a04826f5
tree2827d1147ef01e88692057e2be8f94d078260cc4
parent5dc87b06adad9f55532c4b398a55b2f17104d7b5
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