summaryrefslogtreecommitdiffstats
path: root/fs/ext4/symlink.c
diff options
context:
space:
mode:
authorPaulo Alcantara2018-06-23 19:52:23 +0200
committerSteve French2018-07-05 20:48:24 +0200
commit27c32b49c3dbfe1e5f57d2b61823bf9474ae0875 (patch)
tree1a520e0ee9a1a4cb5e49c06f3c3c825b0bc3b83d /fs/ext4/symlink.c
parentcifs: Fix use after free of a mid_q_entry (diff)
downloadkernel-qcow2-linux-27c32b49c3dbfe1e5f57d2b61823bf9474ae0875.tar.gz
kernel-qcow2-linux-27c32b49c3dbfe1e5f57d2b61823bf9474ae0875.tar.xz
kernel-qcow2-linux-27c32b49c3dbfe1e5f57d2b61823bf9474ae0875.zip
cifs: Fix validation of signed data in smb3+
Fixes: c713c8770fa5 ("cifs: push rfc1002 generation down the stack") We failed to validate signed data returned by the server because __cifs_calc_signature() now expects to sign the actual data in iov but we were also passing down the rfc1002 length. Fix smb3_calc_signature() to calculate signature of rfc1002 length prior to passing only the actual data iov[1-N] to __cifs_calc_signature(). In addition, there are a few cases where no rfc1002 length is passed so we make sure there's one (iov_len == 4). Signed-off-by: Paulo Alcantara <palcantara@suse.de> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ext4/symlink.c')
0 files changed, 0 insertions, 0 deletions