cifs: we can not use small padding iovs together with encryption
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 31 Dec 2018 03:43:40 +0000 (13:43 +1000)
committerSteve French <stfrench@microsoft.com>
Mon, 31 Dec 2018 06:58:52 +0000 (00:58 -0600)
commite77fe73c7e38c36145825d84cfe385d400aba4fd
tree47e115eb7f5188cb29b579a6a372962683b7d035
parent14e92c5dc7a1a1d4a82fb7142b5642837fef962a
cifs: we can not use small padding iovs together with encryption

We can not append small padding buffers as separate iovs when encryption is
used. For this case we must flatten the request into a single buffer
containing both the data from all the iovs as well as the padding bytes.

This is at least needed for 4.20 as well due to compounding changes.

CC: Stable <stable@vger.kernel.org>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2inode.c
fs/cifs/smb2ops.c
fs/cifs/smb2proto.h