]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb3.1.1: fix posix mounts to older servers
authorSteve French <stfrench@microsoft.com>
Wed, 4 Dec 2024 23:46:00 +0000 (17:46 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:26 +0000 (20:03 +0100)
commit74aaafabd3c1cfd076c82ce2156f702096b4d163
tree1cd3a873f1c4bd3994a86422a397c8e8fa25ccd5
parent6e4672301e7195157fbd83284f0a3f24f2769d84
smb3.1.1: fix posix mounts to older servers

commit ddca5023091588eb303e3c0097d95c325992d05f upstream.

Some servers which implement the SMB3.1.1 POSIX extensions did not
set the file type in the mode in the infolevel 100 response.
With the recent changes for checking the file type via the mode field,
this can cause the root directory to be reported incorrectly and
mounts (e.g. to ksmbd) to fail.

Fixes: 6a832bc8bbb2 ("fs/smb/client: Implement new SMB3 POSIX type")
Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Cc: Ralph Boehme <slow@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifsproto.h
fs/smb/client/inode.c
fs/smb/client/readdir.c