VMCI: Check userland-provided datagram size
authorAndy King <acking@vmware.com>
Thu, 19 Feb 2015 18:33:56 +0000 (10:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 10:32:15 +0000 (11:32 +0100)
commit74b5c297f5ecbef0ca128fa7b385b43f036a7984
tree2ee5e039777fbc37ca137bbfa7231b43a81e08eb
parentbf1361211dd842659b5b882390de687426f3471a
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: Jorgen Hansen <jhansen@vmware.com>
Acked-by: Aditya Sarwade <asarwade@vmware.com>
Signed-off-by: Andy King <acking@vmware.com>
Reported-by: David Ramos <daramos@stanford.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_driver.c
drivers/misc/vmw_vmci/vmci_host.c