x86/grant: Disallow misaligned PTEs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Jun 2017 18:18:54 +0000 (19:18 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 7 Sep 2017 18:17:58 +0000 (19:17 +0100)
commit2931be464330f4e78c7bf0aa9b79afb806930907
tree8bb9e4ae033056310ad331111c0f9e2b197cf26c
parent4aa6bd7bb7246b86d398c67851794b9ecc488a55
x86/grant: Disallow misaligned PTEs

Pagetable entries must be aligned to function correctly.  Disallow attempts
from the guest to have a grant PTE created at a misaligned address, which
would result in corruption of the L1 table with largely-guest-controlled
values.

This is XSA-227

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Gbp-Pq: Name x86grant-disallow-misaligned-ptes
xen/arch/x86/mm.c