]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kernel/smpboot.c
x86/mm/32: Initialize the CR4 shadow before __flush_tlb_all()
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / smpboot.c
index 7397041e68a66a36745be1d8bef8d2b9b53ef105..5b14171939dc9d12cd3754b32ee185324be726d6 100644 (file)
@@ -221,6 +221,11 @@ static void notrace start_secondary(void *unused)
 #ifdef CONFIG_X86_32
        /* switch away from the initial page table */
        load_cr3(swapper_pg_dir);
+       /*
+        * Initialize the CR4 shadow before doing anything that could
+        * try to read it.
+        */
+       cr4_init_shadow();
        __flush_tlb_all();
 #endif
        load_current_idt();