]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit760a9a30adc558a75916a13902f38c6792fa8c4b
treea6a061b4f621845a8c3f762c518e557b56b27689
parent9acb172543aecb783e2e1e53e3f447d4c0f5c150
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