]> git.baikalelectronics.ru Git - kernel.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)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 01:12:07 +0000 (19:12 -0600)
commit1ebecc74fa091dcbeda0622c1b545890d8e85102
tree880a5850ebfb4472e898b58998994c6e60b2d443
parentcda9ab2b16528c807f541f336246303f41c80d77
SMB3.1.1: do not log warning message if server doesn't populate salt

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