x86/pv: Fill all Xen slots in init_guest_l4_table()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 Aug 2017 15:46:05 +0000 (16:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 29 Aug 2017 15:59:25 +0000 (16:59 +0100)
commit2cfc5fca7d7380a954e01b1f3673fe28d5cc5347
tree1a965005c45742e04169af0bb2ab9e7610fed1fe
parent40faba2cb1b18adc6aa504fb757efb3014bbefce
x86/pv: Fill all Xen slots in init_guest_l4_table()

There is a bug when using highmem-start= where some L4 directmap slots are not
audited in alloc_l4_table(), and not overwritten by init_guest_l4_table().

As highmem_start is only available in debug builds of the hypervisor, this
does not constitute a security issue.

Ensure that init_guest_l4_table() writes to all of the Xen slots.

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