forked from Minki/linux
7eecea89e4
When create the VMCI queue pair tracking data structures on the host side, the IOCTL for creating the VMCI queue pair didn't validate the queue pair size parameters. This change adds checks for this. This avoids a memory allocation issue in qp_host_alloc_queue, as reported by nslusarek@gmx.net. The check in qp_host_alloc_queue has also been updated to enforce the maximum queue pair size as defined by VMCI_MAX_GUEST_QP_MEMORY. The fix has been verified using sample code supplied by nslusarek@gmx.net. Reported-by: nslusarek@gmx.net Reviewed-by: Vishnu Dasa <vdasa@vmware.com> Signed-off-by: Jorgen Hansen <jhansen@vmware.com> Link: https://lore.kernel.org/r/1611160420-30573-1-git-send-email-jhansen@vmware.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
vmci_context.c | ||
vmci_context.h | ||
vmci_datagram.c | ||
vmci_datagram.h | ||
vmci_doorbell.c | ||
vmci_doorbell.h | ||
vmci_driver.c | ||
vmci_driver.h | ||
vmci_event.c | ||
vmci_event.h | ||
vmci_guest.c | ||
vmci_handle_array.c | ||
vmci_handle_array.h | ||
vmci_host.c | ||
vmci_queue_pair.c | ||
vmci_queue_pair.h | ||
vmci_resource.c | ||
vmci_resource.h | ||
vmci_route.c | ||
vmci_route.h |