]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: Fix querying and creating MF symlinks over SMB1
authorPali Rohár <pali@kernel.org>
Sat, 28 Dec 2024 20:09:54 +0000 (21:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:12:22 +0000 (11:12 +0200)
commit213ba2a3f874e031a811763a993fd9aab27f41bb
tree4552eb13201ba496a4978650c8a15fbfbf83f24a
parentbcd15f06c7e8904116cfb06526bcc189b86aff85
cifs: Fix querying and creating MF symlinks over SMB1

[ Upstream commit 4236ac9fe5b8b42756070d4abfb76fed718e87c2 ]

Old SMB1 servers without CAP_NT_SMBS do not support CIFS_open() function
and instead SMBLegacyOpen() needs to be used. This logic is already handled
in cifs_open_file() function, which is server->ops->open callback function.

So for querying and creating MF symlinks use open callback function instead
of CIFS_open() function directly.

This change fixes querying and creating new MF symlinks on Windows 98.
Currently cifs_query_mf_symlink() is not able to detect MF symlink and
cifs_create_mf_symlink() is failing with EIO error.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/link.c