ksmbd: validate OutputBufferLength of QUERY_DIR, QUERY_INFO, IOCTL requests
authorHyunchul Lee <hyc.lee@gmail.com>
Fri, 15 Oct 2021 23:39:54 +0000 (08:39 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 20 Oct 2021 05:07:10 +0000 (00:07 -0500)
commit34061d6b76a41b1e43c19e1e50d98e5d77f77d4e
tree5029718769ad6d5c3c5a33cb2bb38743cd92197f
parent7a33488705008b5bb5f8d95d05326dcc64fc55f4
ksmbd: validate OutputBufferLength of QUERY_DIR, QUERY_INFO, IOCTL requests

Validate OutputBufferLength of QUERY_DIR, QUERY_INFO, IOCTL requests and
check the free size of response buffer for these requests.

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