This will be set/cleared using arch_prctl() to allow the tasks using this mm to disable the PTI protection.
Signed-off-by: Willy Tarreau <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Kees Cook <[email protected]> --- arch/x86/include/asm/mmu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h index 5ff3e8a..c7c2ca1 100644 --- a/arch/x86/include/asm/mmu.h +++ b/arch/x86/include/asm/mmu.h @@ -36,6 +36,10 @@ /* True if mm supports a task running in 32 bit compatibility mode. */ unsigned short ia32_compat; #endif +#ifdef CONFIG_PAGE_TABLE_ISOLATION + /* True if mm is forced to run with page table isolation disabled */ + char pti_disable; +#endif struct mutex lock; void __user *vdso; /* vdso base address */ -- 1.7.12.1

