ksmbd: add validation for FILE_FULL_EA_INFORMATION of smb2_get_info
authorNamjae Jeon <linkinjeon@kernel.org>
Sat, 18 Sep 2021 09:45:12 +0000 (18:45 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 18 Sep 2021 15:51:38 +0000 (10:51 -0500)
commit6d56262c3d224699b29b9bb6b4ace8bab7d692c2
tree754304672f5a85b512264d56051cfcce76d46b94
parentf58eae6c5fa882d6d0a6b7587a099602a59d57b5
ksmbd: add validation for FILE_FULL_EA_INFORMATION of smb2_get_info

Add validation to check whether req->InputBufferLength is smaller than
smb2_ea_info_req structure size.

Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Cc: Steve French <smfrench@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c