VMCI: Check userland-provided datagram size
Ensure that the size filled in by userland in the datagram header matches the size of the buffer passed down in the IOCTL. Note that we account for the size of the header itself in the check. Acked-by: NJorgen Hansen <jhansen@vmware.com> Acked-by: NAditya Sarwade <asarwade@vmware.com> Signed-off-by: NAndy King <acking@vmware.com> Reported-by: NDavid Ramos <daramos@stanford.edu> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录