linux-stable/fs/smb
Steve French 699f8958de smb3: fix lock ordering potential deadlock in cifs_sync_mid_result
commit 8861fd5180 upstream.

Coverity spotted that the cifs_sync_mid_result function could deadlock

"Thread deadlock (ORDER_REVERSAL) lock_order: Calling spin_lock acquires
lock TCP_Server_Info.srv_lock while holding lock TCP_Server_Info.mid_lock"

Addresses-Coverity: 1590401 ("Thread deadlock (ORDER_REVERSAL)")
Cc: stable@vger.kernel.org
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-02 16:32:44 +02:00
..
client smb3: fix lock ordering potential deadlock in cifs_sync_mid_result 2024-05-02 16:32:44 +02:00
common ksmbd: common: use struct_group_attr instead of struct_group for network_open_info 2024-04-27 17:11:44 +02:00
server ksmbd: clear RENAME_NOREPLACE before calling vfs_rename 2024-04-27 17:11:44 +02:00
Kconfig
Makefile