x86/pti: Map the vsyscall page if needed
authorAndy Lutomirski <[email protected]>
Tue, 12 Dec 2017 15:56:42 +0000 (07:56 -0800)
committerIngo Molnar <[email protected]>
Sat, 23 Dec 2017 20:13:00 +0000 (21:13 +0100)
commit85900ea51577e31b186e523c8f4e068c79ecc7d3
tree76ddd1071d7c34d45920113429de5ee6e9e21eb1
parentf55f0501cbf65ec41cca5058513031b711730b1d
x86/pti: Map the vsyscall page if needed

Make VSYSCALLs work fully in PTI mode by mapping them properly to the user
space visible page tables.

[ tglx: Hide unused functions (Patch by Arnd Bergmann) ]

Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: David Laight <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/entry/vsyscall/vsyscall_64.c
arch/x86/include/asm/vsyscall.h
arch/x86/mm/pti.c