Fix SMB3.1.1 guest authentication to Samba
authorSteve French <smfrench@gmail.com>
Mon, 18 Sep 2017 23:18:45 +0000 (18:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2017 07:44:01 +0000 (09:44 +0200)
commitf2d395b7bde53926bbca40e6e091e7fe4a644b4b
tree1a42b9c68d1c50767eb9c695e4b8600703613d37
parent3a02f8cb556402a81028469be9cf17bb3a0542cf
Fix SMB3.1.1 guest authentication to Samba

commit 23586b66d84ba3184b8820277f3fc42761640f87 upstream.

Samba rejects SMB3.1.1 dialect (vers=3.1.1) negotiate requests from
the kernel client due to the two byte pad at the end of the negotiate
contexts.

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c