]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
cifs: fix check of dfs interlinks
authorPaulo Alcantara <pc@cjr.nz>
Mon, 14 Jun 2021 15:58:20 +0000 (12:58 -0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:31:46 +0000 (09:31 +0200)
commit8bdb231e5a9a4e8b3d4a3e77cb5981222f197096
treedc9af3640fe5ebf310c2b9dc477049c226b9f38f
parent75bd9586ea00b4437bbf2e9fa9df34868dd51ad1
cifs: fix check of dfs interlinks

BugLink: https://bugs.launchpad.net/bugs/1938340
[ Upstream commit 889c2a700799f3b6f82210925e1faf4a9b833c4a ]

Interlink is a special type of DFS link that resolves to a different
DFS domain-based namespace.  To determine whether it is an interlink
or not, check if ReferralServers and StorageServers bits are set to 1
and 0 respectively in ReferralHeaderFlags, as specified in MS-DFSC
3.1.5.4.5 Determining Whether a Referral Response is an Interlink.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/cifs/dfs_cache.c