]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0860a8e800d988a9179883c366ba0db8a8802737
treebefbadca2763317716119c330b2d9adb0ec4017e
parent4f361b3226b529a26cc79447312fc135280feb35
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