]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: fix noisy when tree connecting to DFS interlink targets
authorPaulo Alcantara <pc@manguebit.com>
Wed, 5 Feb 2025 16:22:11 +0000 (13:22 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:15 +0000 (12:54 -0700)
commitef35c36fb4f1d6a0fd99f847ba4ed514b47f74c5
tree53044b51832a62a44162f592d3065568245c8a57
parent61699cb2534fc9785a7ca7070db6d17a7b204b6c
smb: client: fix noisy when tree connecting to DFS interlink targets

[ Upstream commit 773dc23ff81838b6f74d7fabba5a441cc6a93982 ]

When the client attempts to tree connect to a domain-based DFS
namespace from a DFS interlink target, the server will return
STATUS_BAD_NETWORK_NAME and the following will appear on dmesg:

CIFS: VFS:  BAD_NETWORK_NAME: \\dom\dfs

Since a DFS share might contain several DFS interlinks and they expire
after 10 minutes, the above message might end up being flooded on
dmesg when mounting or accessing them.

Print this only once per share.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/smb2pdu.c