]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Copy filter arg outside kvm_vm_ioctl_set_msr_filter()
authorAlexander Graf <graf@amazon.com>
Mon, 17 Oct 2022 18:45:40 +0000 (20:45 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 22 Oct 2022 09:15:56 +0000 (05:15 -0400)
commite64f14e64d5ecd34790a20a5824c9f5305719abc
treec632ac9f2bf8917f5bbd23e5bce547338aae8ea0
parent0ef79749ad424362a00c72953f59521b39696add
KVM: x86: Copy filter arg outside kvm_vm_ioctl_set_msr_filter()

In the next patch we want to introduce a second caller to
set_msr_filter() which constructs its own filter list on the stack.
Refactor the original function so it takes it as argument instead of
reading it through copy_from_user().

Signed-off-by: Alexander Graf <graf@amazon.com>
Message-Id: <20221017184541.2658-3-graf@amazon.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c