smb: client: let recv_done verify data_offset, data_length and remaining_data_length
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Sep 2025 09:49:05 +0000 (11:49 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 18 Sep 2025 01:33:44 +0000 (20:33 -0500)
commitf57e53ea252363234f86674db475839e5b87102e
tree5155afd3a24e9a1a241d85eb2ec945e7a9f83d40
parentf83ec76bf285bea5727f478a68b894f5543ca76e
smb: client: let recv_done verify data_offset, data_length and remaining_data_length

This is inspired by the related server fixes.

Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Fixes: f198186aa9bb ("CIFS: SMBD: Establish SMB Direct connection")
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smbdirect.c