]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SMB3.1.1: do not log warning message if server doesn't populate salt
authorSteve French <stfrench@microsoft.com>
Thu, 10 Dec 2020 04:19:00 +0000 (22:19 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:26:13 +0000 (11:26 +0100)
commit9ee56388802a703fd93ef6aaa4547a5407048a4e
tree7cec9f9662c82d5fc2dc703eb14129b657ea9325
parent75bf69c42fa1e92e231fd30522846c879a628262
SMB3.1.1: do not log warning message if server doesn't populate salt

commit 7955f105afb6034af344038d663bc98809483cdd upstream.

In the negotiate protocol preauth context, the server is not required
to populate the salt (although it is done by most servers) so do
not warn on mount.

We retain the checks (warn) that the preauth context is the minimum
size and that the salt does not exceed DataLength of the SMB response.
Although we use the defaults in the case that the preauth context
response is invalid, these checks may be useful in the future
as servers add support for additional mechanisms.

CC: Stable <stable@vger.kernel.org>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h