]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Fix corrupt SMB2 ioctl requests
authorSteve French <smfrench@gmail.com>
Mon, 14 Oct 2013 05:44:19 +0000 (00:44 -0500)
committerJiri Slaby <jslaby@suse.cz>
Tue, 2 Jun 2015 10:34:12 +0000 (12:34 +0200)
commita8484fc37ca4d536e5327c6fc9072e4be40ac014
treee3b7c4f88a2fd08394336e4742092baef3423e7b
parent266ed50f2a81a882d54c4ff7452bca370f396bae
Fix corrupt SMB2 ioctl requests

commit 7ff8d45c9dccf0744404d6fe44468ede7c1b9533 upstream.

We were off by one calculating the length of ioctls in some cases
because the protocol specification for SMB2 ioctl includes a mininum
one byte payload but not all SMB2 ioctl requests actually have
a data buffer to send. We were also not zeroing out the
return buffer (in case of error this is helpful).

Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/cifs/smb2pdu.c