]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit6d896d3b44cf64ab9b2483697e222098e7b72f70
tree62dfde791fdf65ee93304594ae7d14c77167db7e
parent9ca8581e79e51c57e60b3b8e3b89d816448f49fe
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