]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3a1ae434ccfed865882c36fb9657c5f0b68784e
treee2b536ee1f1633cf92717959406978e85ac0daf2
parent790f01b98d5214faaf8acce9938e73d9c9ccd888
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