]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: set unique value to volume serial field in FS_VOLUME_INFORMATION
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 31 Oct 2021 00:53:50 +0000 (09:53 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Nov 2021 01:22:28 +0000 (19:22 -0600)
commit80cacde869ae18660b37424bd7159300de1cf6b9
tree55a1c48c604f1be6f0ac3ca1512ecf87ad84717e
parent6d1ba0e89f3514be66a315adf21bc5c1ecab2387
ksmbd: set unique value to volume serial field in FS_VOLUME_INFORMATION

Steve French reported ksmbd set fixed value to volume serial field in
FS_VOLUME_INFORMATION. Volume serial value needs to be set to a unique
value for client fscache. This patch set crc value that is generated
with share name, path name and netbios name to volume serial.

Fixes: c4a98f110ba0 ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org # v5.15
Reported-by: Steve French <smfrench@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/Kconfig
fs/ksmbd/server.c
fs/ksmbd/smb2pdu.c