x86/mm: Prevent 32bit PV guests using out-of-range linear addresses
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 11 Aug 2017 13:02:31 +0000 (13:02 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 13 Sep 2017 10:22:22 +0000 (11:22 +0100)
commit43ee624d43d5c326510600ec67898d782e17a19a
tree9c5dafc6273a11771968b0208b9ccde0fc4e8aeb
parent34840c9792b9d73867007bd77cb60299428d841e
x86/mm: Prevent 32bit PV guests using out-of-range linear addresses

The grant ABI uses 64 bit values, and allows a PV guest to specify linear
addresses.  There is nothing interesting a 32bit PV guest can reference which
will pass an __addr_ok() check (and therefore succeed), but we should still
explicitly check and reject such an attempt.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c