summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2023-01-18 14:06:57 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-24 07:11:50 +0100
commit19f0577dd34b250e1595f8dd577d9c2b6c1dc85d (patch)
tree77afe3a576427ad0873a6894f3602ab87246cc9d /drivers
parentfb55f08387d96b519a31cfd612ffb8dafa031be8 (diff)
cifs: do not include page data when checking signature
commit 30b2b2196d6e4cc24cbec633535a2404f258ce69 upstream. On async reads, page data is allocated before sending. When the response is received but it has no data to fill (e.g. STATUS_END_OF_FILE), __calc_signature() will still include the pages in its computation, leading to an invalid signature check. This patch fixes this by not setting the async read smb_rqst page data (zeroed by default) if its got_bytes is 0. This can be reproduced/verified with xfstests generic/465. Cc: <stable@vger.kernel.org> Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions