selftests/x86/vsyscall: Verify that vsyscall=none blocks execution
authorAndy Lutomirski <luto@kernel.org>
Thu, 27 Jun 2019 04:45:06 +0000 (21:45 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jun 2019 22:04:39 +0000 (00:04 +0200)
commitb0386979867168575118501104f3d135067eab4f
treeca3e485793e58bcefb4fc798029fb78f8e53f969
parente0a446ce394a7915f2ffc03f9bb610c5ac4dbbf1
selftests/x86/vsyscall: Verify that vsyscall=none blocks execution

If vsyscall=none accidentally still allowed vsyscalls, the test wouldn't
fail.  Fix it.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Jann Horn <jannh@google.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Kernel Hardening <kernel-hardening@lists.openwall.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/b413397c804265f8865f3e70b14b09485ea7c314.1561610354.git.luto@kernel.org
tools/testing/selftests/x86/test_vsyscall.c