]> git.itanic.dy.fi Git - linux-stable/commit
cifs: fix potential mismatch of UNC paths
authorPaulo Alcantara (SUSE) <pc@cjr.nz>
Thu, 20 Feb 2020 22:49:35 +0000 (19:49 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:25:43 +0000 (08:25 +0100)
commitddd8b3ed509a66a23f581d94702a292fe929b719
tree8f78e619f56e7d9e2774315d403411df757e7b30
parenta7393e6f2ecfb898bf2ef38b1d4f2ee0eb1b52d0
cifs: fix potential mismatch of UNC paths

[ Upstream commit 154255233830e1e4dd0d99ac929a5dce588c0b81 ]

Ensure that full_path is an UNC path that contains '\\' as delimiter,
which is required by cifs_build_devname().

The build_path_from_dentry_optional_prefix() function may return a
path with '/' as delimiter when using SMB1 UNIX extensions, for
example.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/cifs_dfs_ref.c