]> 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)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Aug 2025 00:29:10 +0000 (19:29 -0500)
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>
fs/smb/client/fs_context.c

index cc8bd79ebca93a72f2be7c7d5a23ecddf715c500..072383899e8171aeff5596b55794a7e50845179a 100644 (file)
@@ -1652,6 +1652,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: