Messages in this thread Patch in this message | | | From | Willy Tarreau <> | Subject | [RFC PATCH v2 1/6] x86/mm: add a pti_disable entry in mm_context_t | Date | Tue, 9 Jan 2018 13:56:15 +0100 |
| |
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 <w@1wt.eu> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Kees Cook <keescook@chromium.org> --- 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
| |