Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: set up mmu_ops before trying to set any ptes

xen_setup_stackprotector() ends up trying to set page protections,
so we need to have vm_mmu_ops set up before trying to do so.
Failing to do so causes an early boot crash.

[ Impact: Fix early crash under Xen. ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

+2 -1
+2 -1
arch/x86/xen/enlighten.c
··· 1075 1075 * Set up some pagetable state before starting to set any ptes. 1076 1076 */ 1077 1077 1078 + xen_init_mmu_ops(); 1079 + 1078 1080 /* Prevent unwanted bits from being set in PTEs. */ 1079 1081 __supported_pte_mask &= ~_PAGE_GLOBAL; 1080 1082 if (!xen_initial_domain()) ··· 1101 1099 */ 1102 1100 xen_setup_stackprotector(); 1103 1101 1104 - xen_init_mmu_ops(); 1105 1102 xen_init_irq_ops(); 1106 1103 xen_init_cpuid_mask(); 1107 1104