]> git.itanic.dy.fi Git - linux-stable/commit
smb: client: serialise cifs_construct_tcon() with cifs_mount_mutex
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 01:44:09 +0000 (22:44 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:20 +0000 (16:38 +0200)
commit67fe1cca5e4fd1bdb43b6f937ca7cbd08c1a94e7
treead2e4e61db3459bc1274100da575b1e5abd2eadf
parente2cce9c3b5c8c9ef58d04061f9e3a776bd801b08
smb: client: serialise cifs_construct_tcon() with cifs_mount_mutex

commit 93cee45ccfebc62a3bb4cd622b89e00c8c7d8493 upstream.

Serialise cifs_construct_tcon() with cifs_mount_mutex to handle
parallel mounts that may end up reusing the session and tcon created
by it.

Cc: stable@vger.kernel.org # 6.4+
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/connect.c
fs/smb/client/fs_context.c
fs/smb/client/fs_context.h