]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: handle lack of IPC in dfs_cache_refresh()
authorPaulo Alcantara <pc@manguebit.org>
Thu, 23 Oct 2025 21:59:47 +0000 (18:59 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Oct 2025 01:13:05 +0000 (20:13 -0500)
commitfac56c4651ae95f3f2b468c2cf1884cf0e6d18c1
tree5c9a61433d3561218d916054418bde4d29e3b0a0
parent5c76f9961c170552c1d07c830b5e145475151600
smb: client: handle lack of IPC in dfs_cache_refresh()

In very rare cases, DFS mounts could end up with SMB sessions without
any IPC connections.  These mounts are only possible when having
unexpired cached DFS referrals, hence not requiring any IPC
connections during the mount process.

Try to establish those missing IPC connections when refreshing DFS
referrals.  If the server is still rejecting it, then simply ignore
and leave expired cached DFS referral for any potential DFS failovers.

Reported-by: Jay Shin <jaeshin@redhat.com>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/dfs_cache.c