]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
SMB3.1.1: remove confusing mount warning when no SPNEGO info on negprot rsp
authorSteve French <stfrench@microsoft.com>
Wed, 9 Dec 2020 07:12:35 +0000 (01:12 -0600)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:47:57 +0000 (16:47 +0100)
commitfd8858e510183401415449beac88892b6d6b2707
tree9f0c6683367afccdc3d8029bf64db3f6acdacf4e
parente617538fa7fb972c25cb0fbf58138e9c9bce6bcc
SMB3.1.1: remove confusing mount warning when no SPNEGO info on negprot rsp

BugLink: https://bugs.launchpad.net/bugs/1910111
commit bc7c4129d4cdc56d1b5477c1714246f27df914dd upstream.

Azure does not send an SPNEGO blob in the negotiate protocol response,
so we shouldn't assume that it is there when validating the location
of the first negotiate context.  This avoids the potential confusing
mount warning:

   CIFS: Invalid negotiate context offset

CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/cifs/smb2misc.c