KVM: x86/xen: Fix __user pointer handling for hypercall page installation
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 2 Feb 2021 11:05:10 +0000 (11:05 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 4 Feb 2021 13:58:34 +0000 (13:58 +0000)
commit92f4d400a407235783afd4399fa26c4c665024b5
treee2b536ee1f1633cf92717959406978e85ac0daf2
parent1232f8e6c9d15e6d043452f5d8895fcebc6a1ff2
KVM: x86/xen: Fix __user pointer handling for hypercall page installation

The address we give to memdup_user() isn't correctly tagged as __user.
This is harmless enough as it's a one-off use and we're doing exactly
the right thing, but fix it anyway to shut the checker up. Otherwise
it'll whine when the (now legacy) code gets moved around in a later
patch.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kvm/x86.c