]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
CIFS: Send RFC1001 length in a separate iov
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 23 Nov 2016 23:14:57 +0000 (15:14 -0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 28 Jun 2017 13:18:38 +0000 (10:18 -0300)
commitbc0c7c2b9bdaf9e581d1c59301d95b3bec31b11a
tree1cd2142bfe799441480c2ab73668b77114743865
parent795c611a28e5600347db5933cb65e40fdf858601
CIFS: Send RFC1001 length in a separate iov

BugLink: http://bugs.launchpad.net/bugs/1670508
In order to simplify further encryption support we need to separate
RFC1001 length and SMB2 header when sending a request. Put the length
field in iov[0] and the rest of the packet into following iovs.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
(cherry picked from commit 738f9de5cdb9175c19d24cfdf90b4543fc3b47bf)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/smb2pdu.c
fs/cifs/smb2transport.c
fs/cifs/transport.c