smb: client: fix dfs link mount against w2k8
authorPaulo Alcantara <pc@manguebit.com>
Wed, 2 Aug 2023 16:43:03 +0000 (13:43 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 2 Aug 2023 18:36:12 +0000 (13:36 -0500)
commit11260c3d608b59231f4c228147a795ab21a10b33
tree9a9a7bfc0c61df8c09d142205d2e501c04b1074f
parent5d0c230f1de8c7515b6567d9afba1f196fb4e2f4
smb: client: fix dfs link mount against w2k8

Customer reported that they couldn't mount their DFS link that was
seen by the client as a DFS interlink -- special form of DFS link
where its single target may point to a different DFS namespace -- and
it turned out that it was just a regular DFS link where its referral
header flags missed the StorageServers bit thus making the client
think it couldn't tree connect to target directly without requiring
further referrals.

When the DFS link referral header flags misses the StoraServers bit
and its target doesn't respond to any referrals, then tree connect to
it.

Fixes: a1c0d00572fc ("cifs: share dfs connections and supers")
Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dfs.c