]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Fix deadlock in validate negotiate hits reconnect
authorPavel Shilovsky <pshilov@microsoft.com>
Mon, 22 Jul 2019 18:34:59 +0000 (11:34 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 6 Aug 2019 03:49:54 +0000 (22:49 -0500)
commit1ecb329f413bae10a57747a26f85a102bdf5c8f5
tree2328d27ed358c8b4c1cf0af0788d30382a7f6779
parent84e33dbb84f52a324085ef2b4b283e564058ce90
SMB3: Fix deadlock in validate negotiate hits reconnect

Currently we skip SMB2_TREE_CONNECT command when checking during
reconnect because Tree Connect happens when establishing
an SMB session. For SMB 3.0 protocol version the code also calls
validate negotiate which results in SMB2_IOCL command being sent
over the wire. This may deadlock on trying to acquire a mutex when
checking for reconnect. Fix this by skipping SMB2_IOCL command
when doing the reconnect check.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Stable <stable@vger.kernel.org>
fs/cifs/smb2pdu.c