]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
SMB3: Add support for multidialect negotiate (SMB2.1 and later)
authorSteve French <smfrench@gmail.com>
Sun, 17 Sep 2017 15:41:35 +0000 (10:41 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 12 Oct 2017 21:20:03 +0000 (16:20 -0500)
commitab6a2b01feb5d24ab05afb4e01d6e31901133728
treea73d8db651adf436bbe9eded8f7d629a757c1326
parenta8ae9c53fbab4a4ce27f066b5670c989888798ae
SMB3: Add support for multidialect negotiate (SMB2.1 and later)

BugLink: http://bugs.launchpad.net/bugs/1721777
commit 9764c02fcbad40001fd3f63558d918e4d519bb75 upstream.

With the need to discourage use of less secure dialect, SMB1 (CIFS),
we temporarily upgraded the dialect to SMB3 in 4.13, but since there
are various servers which only support SMB2.1 (2.1 is more secure
than CIFS/SMB1) but not optimal for a default dialect - add support
for multidialect negotiation.  cifs.ko will now request SMB2.1
or later (ie SMB2.1 or SMB3.0, SMB3.02) and the server will
pick the latest most secure one it can support.

In addition since we are sending multidialect negotiate, add
support for secure negotiate to validate that a man in the
middle didn't downgrade us.

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h