]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit5242fcb706cb47dfa59bececc1bd280f0868901e
treeb27f291d99c1bfec2e958419f949fc0a61dbf0d8
parent4739f2328661d070f93f9bcc8afb2a82706c826d
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