]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: fix large reads on encrypted connections
authorPaul Aurich <paul@darkrain42.org>
Mon, 31 Dec 2018 22:13:34 +0000 (14:13 -0800)
committerSteve French <stfrench@microsoft.com>
Thu, 3 Jan 2019 05:03:56 +0000 (23:03 -0600)
commitb43c818bca840d4d60c672393e563ecc5a6d77e7
tree7355a175aa07e44d2ef68fb482d1e09f66cc008d
parenta64c4d516ed127a30ac4c1744d4ff4478bfc96d4
smb3: fix large reads on encrypted connections

When passing a large read to receive_encrypted_read(), ensure that the
demultiplex_thread knows that a MID was processed.  Without this, those
operations never complete.

This is a similar issue/fix to lease break handling:
commit cf53b6093b6f979209e31e4b614de5c38dfcce9b
("smb3: fix lease break problem introduced by compounding")

CC: Stable <stable@vger.kernel.org> # 4.19+
Fixes: f20cb82fc5d4 ("cifs: update receive_encrypted_standard to handle compounded responses")
Signed-off-by: Paul Aurich <paul@darkrain42.org>
Tested-by: Yves-Alexis Perez <corsac@corsac.net>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/smb2ops.c