]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: smbd: validate buffer descriptor structures
authorHyunchul Lee <hyc.lee@gmail.com>
Thu, 20 Jan 2022 12:10:11 +0000 (21:10 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 4 Feb 2022 06:12:22 +0000 (00:12 -0600)
commit3e44334e5aa7481d705246d22e11f675be412832
tree62dfde791fdf65ee93304594ae7d14c77167db7e
parent3b9353abd99abf1c11f64a2c104755065cc455a8
ksmbd: smbd: validate buffer descriptor structures

Check ChannelInfoOffset and ChannelInfoLength
to validate buffer descriptor structures.
And add a debug log to print the structures'
content.

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