]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: Fix nonsense handling of compat ioctl
authorAlan Cox <alan@linux.intel.com>
Wed, 22 Aug 2012 13:34:11 +0000 (14:34 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Sun, 26 Aug 2012 18:11:48 +0000 (15:11 -0300)
commit82a1768958282de17070a853d1471e4b5d0f481b
treea6a061b4f621845a8c3f762c518e557b56b27689
parent3adf65ca595f57d60bb17628a103df18ae0b1b2c
kvm: Fix nonsense handling of compat ioctl

KVM_SET_SIGNAL_MASK passed a NULL argument leaves the on stack signal
sets uninitialized. It then passes them through to
kvm_vcpu_ioctl_set_sigmask.

We should be passing a NULL in this case not translated garbage.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/kvm_main.c