]> 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)
commit13c334a32e358e914089218c1bc996494320eb81
treefb80fbd47c286fb32d9b3ee8a07d11e6fc393f44
parent09823501abe24b8c8faf96397516cbb4e3f387e7
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