We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cdd2c4 commit 02c7d5bCopy full SHA for 02c7d5b
arch/x86/mm/pti.c
@@ -38,6 +38,7 @@
38
#include <asm/desc.h>
39
#include <asm/sections.h>
40
#include <asm/set_memory.h>
41
+#include <asm/bugs.h>
42
43
#undef pr_fmt
44
#define pr_fmt(fmt) "Kernel/User page tables isolation: " fmt
@@ -84,7 +85,8 @@ void __init pti_check_boottime_disable(void)
84
85
return;
86
}
87
- if (cpu_mitigations_off())
88
+ if (pti_mode == PTI_AUTO &&
89
+ !cpu_attack_vector_mitigated(CPU_MITIGATE_USER_KERNEL))
90
pti_mode = PTI_FORCE_OFF;
91
if (pti_mode == PTI_FORCE_OFF) {
92
pti_print_if_insecure("disabled on command line.");
0 commit comments