Skip to content
Commit bb584cae authored by Alexander Graf's avatar Alexander Graf Committed by Greg Kroah-Hartman
Browse files

KVM: x86: Copy filter arg outside kvm_vm_ioctl_set_msr_filter()



[ Upstream commit 2e3272bc ]

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: default avatarAlexander Graf <graf@amazon.com>
Message-Id: <20221017184541.2658-3-graf@amazon.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9faacf44
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment