Merge branch 'x86/pti' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[muen/linux.git] / init / main.c
index 5e13c544bbf456e0af9baa0471f9229ac6ae3c7e..f86b64c35d38b1b7ebfb72b7fe1a86029862325b 100644 (file)
@@ -1065,6 +1065,13 @@ static int __ref kernel_init(void *unused)
        jump_label_invalidate_initmem();
        free_initmem();
        mark_readonly();
+
+       /*
+        * Kernel mappings are now finalized - update the userspace page-table
+        * to finalize PTI.
+        */
+       pti_finalize();
+
        system_state = SYSTEM_RUNNING;
        numa_default_policy();