]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: sanitize paths in cifs_update_super_prepath.
authorThiago Rafael Becker <tbecker@redhat.com>
Wed, 5 Apr 2023 13:16:48 +0000 (10:16 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Apr 2023 14:55:32 +0000 (16:55 +0200)
commitf9026fe23db2d5c1ff5ed3e3320f99cd194b30ad
treecf82c0a6757511d664d489e9c931841d8242a5e3
parentaf62125a9991908c24bdc7c15980af6ca15a9628
cifs: sanitize paths in cifs_update_super_prepath.

[ Upstream commit d19342c6609b67f2ba83b9eccca2777e3687f625 ]

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: 726365ac8a5d ("cifs: sanitize multiple delimiters in prepath")
Actually-Fixes: 6c525ac49b92 ("cifs: switch to new mount api")
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Thiago Rafael Becker <tbecker@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/fs_context.c
fs/cifs/fs_context.h
fs/cifs/misc.c