]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: add the check to vaildate if stream protocol length exceeds maximum value
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 24 Sep 2021 00:17:30 +0000 (09:17 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Oct 2021 05:23:00 +0000 (00:23 -0500)
commitae469595fefc99280e6822f37c8d4feb5df78c56
tree455be8212ffe20e9c6b7cac6de637e091feced15
parent64e4eef3989145850c26208b1f0481f118a4a894
ksmbd: add the check to vaildate if stream protocol length exceeds maximum value

This patch add MAX_STREAM_PROT_LEN macro and check if stream protocol
length exceeds maximum value. opencode pdu size check in
ksmbd_pdu_size_has_room().

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>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/connection.c
fs/ksmbd/smb_common.c
fs/ksmbd/smb_common.h