]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cifs: Accept validate negotiate if server return NT_STATUS_NOT_SUPPORTED
authorNamjae Jeon <linkinjeon@gmail.com>
Tue, 22 Jan 2019 00:46:45 +0000 (09:46 +0900)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit98d496d0eaa8d3f7b578a5193213c285a162b002
tree4f891b4bbd02580d3f15315f292fc0e72478d660
parentd9e9af9338cc8ec7dc772215d590d458745deda8
cifs: Accept validate negotiate if server return NT_STATUS_NOT_SUPPORTED

BugLink: https://bugs.launchpad.net/bugs/1838116
[ Upstream commit 969ae8e8d4ee54c99134d3895f2adf96047f5bee ]

Old windows version or Netapp SMB server will return
NT_STATUS_NOT_SUPPORTED since they do not allow or implement
FSCTL_VALIDATE_NEGOTIATE_INFO. The client should accept the response
provided it's properly signed.

See
https://blogs.msdn.microsoft.com/openspecification/2012/06/28/smb3-secure-dialect-negotiation/

and

MS-SMB2 validate negotiate response processing:
https://msdn.microsoft.com/en-us/library/hh880630.aspx

Samba client had already handled it.
https://bugzilla.samba.org/attachment.cgi?id=13285&action=edit

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/cifs/smb2pdu.c