diff options
| author | Enzo Matsumiya <[email protected]> | 2023-01-18 17:06:57 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2023-01-18 20:44:30 +0000 |
| commit | 30b2b2196d6e4cc24cbec633535a2404f258ce69 (patch) | |
| tree | e7336954b1af2b6957d6439ff9ee10a289de9b3a /drivers/fpga/fpga-bridge.c | |
| parent | cifs: fix return of uninitialized rc in dfs_cache_update_tgthint() (diff) | |
| download | kernel-30b2b2196d6e4cc24cbec633535a2404f258ce69.tar.gz kernel-30b2b2196d6e4cc24cbec633535a2404f258ce69.zip | |
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: <[email protected]>
Signed-off-by: Enzo Matsumiya <[email protected]>
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
