Skip to content

Commit f1262c0

Browse files
Paulo AlcantaraSasha Levin
authored andcommitted
smb: client: stop flooding dmesg in smb2_calc_signature()
[ Upstream commit a13ca78 ] When having several mounts that share same credential and the client couldn't re-establish an SMB session due to an expired kerberos ticket or rotated password, smb2_calc_signature() will end up flooding dmesg when not finding SMB sessions to calculate signatures. Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com> Stable-dep-of: 343d7fe ("smb: client: fix use-after-free of signing key") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2a63987 commit f1262c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/smb2transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ smb2_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server,
242242

243243
ses = smb2_find_smb_ses(server, le64_to_cpu(shdr->SessionId));
244244
if (unlikely(!ses)) {
245-
cifs_server_dbg(VFS, "%s: Could not find session\n", __func__);
245+
cifs_server_dbg(FYI, "%s: Could not find session\n", __func__);
246246
return -ENOENT;
247247
}
248248

0 commit comments

Comments
 (0)