]> git.hungrycats.org Git - linux/commit
smb3: do not attempt cifs operation in smb3 query info error path
authorSteve French <stfrench@microsoft.com>
Fri, 19 Oct 2018 05:45:21 +0000 (00:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:15:09 +0000 (11:15 -0800)
commit122f2bd8d3e0998561f0c4c51bf242c0f6267861
treecc06d0a906372a82677b65f59c967c1e75377f7b
parent54341b9fa4cf5022170302e8f9ac6026546e24f4
smb3: do not attempt cifs operation in smb3 query info error path

commit 1e77a8c204c9d1b655c61751b8ad0fde22421dbb upstream.

If backupuid mount option is sent, we can incorrectly retry
(on access denied on query info) with a cifs (FindFirst) operation
on an smb3 mount which causes the server to force the session close.

We set backup intent on open so no need for this fallback.

See kernel bugzilla 201435

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/inode.c