]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: add missing compat KVM_CLEAR_DIRTY_LOG
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jul 2021 12:43:10 +0000 (08:43 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jul 2021 20:59:01 +0000 (16:59 -0400)
commit06c76e92e54cd5b3244a196ea7838b74153fd4d0
treea61e5aaa7d209014be8a5f08a24712b2e7ce9e06
parent716c6d25c654ecf63157a49db6156545ba3ae6c4
KVM: add missing compat KVM_CLEAR_DIRTY_LOG

The arguments to the KVM_CLEAR_DIRTY_LOG ioctl include a pointer,
therefore it needs a compat ioctl implementation.  Otherwise,
32-bit userspace fails to invoke it on 64-bit kernels; for x86
it might work fine by chance if the padding is zero, but not
on big-endian architectures.

Reported-by: Thomas Sattler
Cc: stable@vger.kernel.org
Fixes: 9da8aba7bd71 ("kvm: introduce manual dirty log reprotect")
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c