]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix bi-directional fsctl passthrough calls
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 15 Apr 2019 02:13:52 +0000 (12:13 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 8 May 2019 04:24:55 +0000 (23:24 -0500)
commit1d3995ade504916c97800c0727738abfd9b4a243
treeb27f291d99c1bfec2e958419f949fc0a61dbf0d8
parent009f9b74c46c0c3cd44038d57d97e6ba6fc12e92
cifs: fix bi-directional fsctl passthrough calls

SMB2 Ioctl responses from servers may respond with both the request blob from
the client followed by the actual reply blob for ioctls that are bi-directional.

In that case we can not assume that the reply blob comes immediately after the
ioctl response structure.

This fixes FSCTLs such as SMB2:FSCTL_QUERY_ALLOCATED_RANGES

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c