]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb311 client: fix missing tcon check when mounting with linux/posix extensions
authorSteve French <stfrench@microsoft.com>
Sun, 6 Apr 2025 19:09:19 +0000 (14:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:27 +0000 (10:45 +0200)
commitb00b040abfbbe227f2b8b6bdb0c825ced8afaccc
tree22ff9a2d5519496e09a227fc2f1924d7ba70fa93
parent5f80fd2ff8bfd13e41554741740e0ca8e6445ded
smb311 client: fix missing tcon check when mounting with linux/posix extensions

commit b365b9d404b7376c60c91cd079218bfef11b7822 upstream.

When mounting the same share twice, once with the "linux" mount parameter
(or equivalently "posix") and then once without (or e.g. with "nolinux"),
we were incorrectly reusing the same tree connection for both mounts.
This meant that the first mount of the share on the client, would
cause subsequent mounts of that same share on the same client to
ignore that mount parm ("linux" vs. "nolinux") and incorrectly reuse
the same tcon.

Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/connect.c