diff options
| author | David Howells <[email protected]> | 2025-04-02 19:27:26 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-06-26 16:13:16 +0000 |
| commit | 263debecb4aa7cec0a86487e6f409814f6194a21 (patch) | |
| tree | 5335c6285e11d826d65ab0a98212bfa4526e0464 /lib/crypto/mpi/mpi-cmp.c | |
| parent | cifs: Fix the smbd_response slab to allow usercopy (diff) | |
| download | kernel-263debecb4aa7cec0a86487e6f409814f6194a21.tar.gz kernel-263debecb4aa7cec0a86487e6f409814f6194a21.zip | |
cifs: Fix reading into an ITER_FOLIOQ from the smbdirect code
When performing a file read from RDMA, smbd_recv() prints an "Invalid msg
type 4" error and fails the I/O. This is due to the switch-statement there
not handling the ITER_FOLIOQ handed down from netfslib.
Fix this by collapsing smbd_recv_buf() and smbd_recv_page() into
smbd_recv() and just using copy_to_iter() instead of memcpy(). This
future-proofs the function too, in case more ITER_* types are added.
Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
Reported-by: Stefan Metzmacher <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: Tom Talpey <[email protected]>
cc: Paulo Alcantara (Red Hat) <[email protected]>
cc: Matthew Wilcox <[email protected]>
cc: [email protected]
cc: [email protected]
cc: [email protected]
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
