summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-09-14 11:43:24 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2024-09-14 11:43:24 +0200
commitd9bc226584fa1a9319f4f26882f046e94cfa032a (patch)
tree6ac4aefdf9a87cf4b6d34f0cf308d9a765930989
parentb7718454f937f50f44f98c1222f5135eaef29132 (diff)
parent5a20b7cb0d8d3ee490a8e088dc2584aa782e3355 (diff)
Merge tag '6.11-rc7-SMB3-client-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fix from Steve French: "Fix for packet signing of write" * tag '6.11-rc7-SMB3-client-fix' of git://git.samba.org/sfrench/cifs-2.6: cifs: Fix signature miscalculation
-rw-r--r--fs/smb/client/cifsencrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/cifsencrypt.c b/fs/smb/client/cifsencrypt.c
index 6322f0f68a17..b0473c2567fe 100644
--- a/fs/smb/client/cifsencrypt.c
+++ b/fs/smb/client/cifsencrypt.c
@@ -129,7 +129,7 @@ static ssize_t cifs_shash_xarray(const struct iov_iter *iter, ssize_t maxsize,
for (j = foffset / PAGE_SIZE; j < npages; j++) {
len = min_t(size_t, maxsize, PAGE_SIZE - offset);
p = kmap_local_page(folio_page(folio, j));
- ret = crypto_shash_update(shash, p, len);
+ ret = crypto_shash_update(shash, p + offset, len);
kunmap_local(p);
if (ret < 0)
return ret;