x86/grant: disallow misaligned PTEs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 15 Aug 2017 13:06:45 +0000 (15:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Aug 2017 13:06:45 +0000 (15:06 +0200)
commitce442926c2530da9376199dcc769436376ad2386
tree2b3a59eaec768dfa6368b23bd8a1b5911547387a
parentdf8c142211b4559b136f377f58142214288fef8e
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 CVE-2017-12137 / XSA-227.

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