]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: add request buffer validation in smb2_set_info
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 29 Sep 2021 06:41:48 +0000 (15:41 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Sep 2021 14:58:06 +0000 (09:58 -0500)
commit9496e268e3af78a92778bf635488a8ec2dca8996
treefb80fbd47c286fb32d9b3ee8a07d11e6fc393f44
parent88d300522cbb2827b679359e98cbadfb46e8226c
ksmbd: add request buffer validation in smb2_set_info

Add buffer validation in smb2_set_info, and remove unused variable
in set_file_basic_info. and smb2_set_info infolevel functions take
structure pointer argument.

Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.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/smb2pdu.c