]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
When a handle being passed down to VMCIDoorbell_Create() was not initialized
authorVMware, Inc <>
Tue, 24 Aug 2010 17:54:34 +0000 (10:54 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 24 Aug 2010 17:54:34 +0000 (10:54 -0700)
commit3225e5e0ef726b07a998cc1eddb35645edf514b5
tree81db13197e69b056c73ff3eb66b54add3f575673
parent7810434f0b376e9f74f6f3259233346935761fcb
When a handle being passed down to VMCIDoorbell_Create() was not initialized
to VMCI_INVALID_HANDLE, a doorbell was being created with context id 0
(hypervisor id) and a large resource id (likely the garbage value in
handle.resource).

On the guest side, modified VMCINotifyHashAddEntry so that if the handle
passed down is not VMCI_INVALID_HANDLE and if the context id of the handle
is not the context id of the VM, VMCI_ERROR_INVALID_ARGS will be returned.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/vmci/vmciNotifications.c