]> git.baikalelectronics.ru Git - 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)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 01:12:07 +0000 (19:12 -0600)
commitff26700846c2b02542cd4cdeca1fba1bfc8d9b74
treeb90cca49c3d723dc928ff5fccb6faff9071bac7f
parent28adcba7c916f15944ed66a6eff9d2b557fc9771
SMB3.1.1: remove confusing mount warning when no SPNEGO info on negprot rsp

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>
fs/cifs/smb2misc.c