ksmbd: check strictly data area in ksmbd_smb2_check_message()
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 26 Sep 2021 12:55:02 +0000 (21:55 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 7 Oct 2021 15:18:24 +0000 (10:18 -0500)
commitc2e99d47973796c3fafd13079337dcadecd49d8a
treebefbadca2763317716119c330b2d9adb0ec4017e
parent363999901116ffa9a5462215fef25ea9c7f2823c
ksmbd: check strictly data area in ksmbd_smb2_check_message()

When invalid data offset and data length in request,
ksmbd_smb2_check_message check strictly and doesn't allow to process such
requests.

Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Acked-by: Hyunchul Lee <hyc.lee@gmail.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2misc.c