Skip to content
Commit fb9ec305 authored by Thiago Rafael Becker's avatar Thiago Rafael Becker Committed by Greg Kroah-Hartman
Browse files

cifs: sanitize paths in cifs_update_super_prepath.

[ Upstream commit d19342c6 ]

After a server reboot, clients are failing to move files with ENOENT.
This is caused by DFS referrals containing multiple separators, which
the server move call doesn't recognize.

v1: Initial patch.
v2: Move prototype to header.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2182472


Fixes: a3108089 ("cifs: sanitize multiple delimiters in prepath")
Actually-Fixes: 24e0a1ef ("cifs: switch to new mount api")
Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: default avatarThiago Rafael Becker <tbecker@redhat.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 012c045d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment