x86/vsyscall/64: Warn and fail vsyscall emulation in NATIVE mode
authorAndy Lutomirski <luto@kernel.org>
Mon, 11 Dec 2017 06:47:20 +0000 (22:47 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 22 Dec 2017 19:13:01 +0000 (20:13 +0100)
commit4831b779403a836158917d59a7ca880483c67378
tree8c074202b490f0b7f5f069af2da96ec95d6fe288
parent49275fef986abfb8b476e4708aaecc07e7d3e087
x86/vsyscall/64: Warn and fail vsyscall emulation in NATIVE mode

If something goes wrong with pagetable setup, vsyscall=native will
accidentally fall back to emulation.  Make it warn and fail so that we
notice.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: David Laight <David.Laight@aculab.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/vsyscall/vsyscall_64.c