[PATCH] VMCI: Guard against overflow in queue pair allocation

2015-03-02 Thread jhansen
From: Jorgen Hansen The current maximum size of a queue in a queue pair is 128 MB. If we increase that in the future, the queue pair allocation routines may run into overflow issues. This change adds additional checks to guard against this. Acked-by: Andy King Reported-by: Dan Carpenter Signed

[PATCH] VMCI: Fix two UVA mapping bugs

2015-01-14 Thread jhansen
From: Jorgen Hansen (this is a resend of this patch. Originally sent last year, but post appears to have been lost) This change fixes two bugs in the VMCI host driver related to mapping the notify boolean from user space into kernel space: - the actual UVA was rounded up to the next page bounda