summaryrefslogtreecommitdiffstats
path: root/fs/fat
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2023-01-18 14:06:57 -0300
committerSteve French <stfrench@microsoft.com>2023-01-18 14:44:30 -0600
commit30b2b2196d6e4cc24cbec633535a2404f258ce69 (patch)
treee7336954b1af2b6957d6439ff9ee10a289de9b3a /fs/fat
parentd6a49e8c4ca4d399ed65ac219585187fc8c2e2b1 (diff)
downloadlinux-30b2b2196d6e4cc24cbec633535a2404f258ce69.tar.bz2
cifs: do not include page data when checking signature
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>
Diffstat (limited to 'fs/fat')
0 files changed, 0 insertions, 0 deletions