]> 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)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 7 Mar 2017 17:04:36 +0000 (10:04 -0700)
commit27eefed6006979bfe183a9bb240800002c3dff34
tree67435ba5a2c268a78e24365b7ea61bb17b39496c
parentdf976e8b5e960cd88a7a287264dfc85b5bbd887d
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: Tim Gardner <tim.gardner@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