OSDN Git Service

ksmbd: smbd: fix missing client's memory region invalidation
authorHyunchul Lee <hyc.lee@gmail.com>
Thu, 13 Jan 2022 00:51:39 +0000 (09:51 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 18 Jan 2022 22:53:08 +0000 (16:53 -0600)
commit2fd5dcb1c8ef96c9f0fa8bda53ca480524b80ae7
tree3349fd1ab62b69585a7eee6d8dd9a6ecd89d5265
parent136dff3a6b71dc16c30b35cc390feb0bfc32ed50
ksmbd: smbd: fix missing client's memory region invalidation

if the Channel of a SMB2 WRITE request is
SMB2_CHANNEL_RDMA_V1_INVALIDTE, a client
does not invalidate its memory regions but
ksmbd must do it by sending a SMB2 WRITE response
with IB_WR_SEND_WITH_INV.

But if errors occur while processing a SMB2
READ/WRITE request, ksmbd sends a response
with IB_WR_SEND. So a client could use memory
regions already in use.

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c