]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: fix deadlock in smb2_find_smb_tcon()
authorEnzo Matsumiya <ematsumiya@suse.de>
Thu, 6 Jun 2024 16:13:13 +0000 (13:13 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:41:42 +0000 (13:41 +0200)
commitb09b556e48968317887a11243a5331a7bc00ece5
tree7fe8c976af19b89e38645efcfb4e50737efc321f
parent3174d8b7c9366e4db879a824fd1ae767b7c84e4d
smb: client: fix deadlock in smb2_find_smb_tcon()

commit 02c418774f76a0a36a6195c9dbf8971eb4130a15 upstream.

Unlock cifs_tcp_ses_lock before calling cifs_put_smb_ses() to avoid such
deadlock.

Cc: stable@vger.kernel.org
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-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/smb2transport.c