Fix SMB3.1.1 guest authentication to Samba
authorSteve French <smfrench@gmail.com>
Mon, 18 Sep 2017 23:18:45 +0000 (18:18 -0500)
committerpopcornmix <popcornmix@gmail.com>
Fri, 6 Oct 2017 12:06:50 +0000 (13:06 +0100)
commitefba0856d3f316212d5fccf3d21ca76c09b2dd53
tree575ee09191edbd3ba9b515e07b97203b487646c0
parente1ea4334c722ab8e1c959afd89e98ec8a73c10b8
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