Commit 799c8a6c authored by Steve French's avatar Steve French Committed by Xie XiuQi
Browse files

SMB3.1.1: remove confusing mount warning when no SPNEGO info on negprot rsp



stable inclusion
from stable-5.10.4
commit 639fd38197ee2004c8ce08695f42a49c536173aa
bugzilla: 46903

--------------------------------

commit bc7c4129 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: default avatarPavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 29e27949
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment