]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf032acc0c7a5fdcd1843547ffa1849f05aeef85c
tree47e115eb7f5188cb29b579a6a372962683b7d035
parent3ec9a289836a5f5418d89ec7697bb34e8ca9574c
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