]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: client: default to nonativesocket under POSIX mounts
authorPaulo Alcantara <pc@manguebit.org>
Thu, 31 Jul 2025 23:46:42 +0000 (20:46 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 14:39:32 +0000 (16:39 +0200)
commit 6b445309eec2bc0594f3e24c7777aeef891d386e upstream.

SMB3.1.1 POSIX mounts require sockets to be created with NFS reparse
points.

Cc: linux-cifs@vger.kernel.org
Cc: Ralph Boehme <slow@samba.org>
Cc: David Howells <dhowells@redhat.com>
Cc: <stable@vger.kernel.org>
Reported-by: Matthew Richardson <m.richardson@ed.ac.uk>
Closes: https://marc.info/?i=1124e7cd-6a46-40a6-9f44-b7664a66654b@ed.ac.uk
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/fs_context.c

index f9681f852d20129aa405b607e6f35427ac67e9e5..3d0bb068f825fc9b399b462fc422b6b18d5d2a49 100644 (file)
@@ -1674,6 +1674,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
                                pr_warn_once("conflicting posix mount options specified\n");
                        ctx->linux_ext = 1;
                        ctx->no_linux_ext = 0;
+                       ctx->nonativesocket = 1; /* POSIX mounts use NFS style reparse points */
                }
                break;
        case Opt_nocase: