summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/x86/test_vsyscall.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2018-02-11 12:10:10 +0100
committerIngo Molnar <mingo@kernel.org>2018-02-13 09:04:55 +0100
commit198ee8e17502da2634f7366395db1d77630e0219 (patch)
tree3fb8542c88da183c08bbe2fb54964b31bcd97c22 /tools/testing/selftests/x86/test_vsyscall.c
parentx86/entry/64: Remove the unused 'icebp' macro (diff)
downloadlinux-198ee8e17502da2634f7366395db1d77630e0219.tar.xz
linux-198ee8e17502da2634f7366395db1d77630e0219.zip
selftests/x86: Fix vDSO selftest segfault for vsyscall=none
The vDSO selftest tries to execute a vsyscall unconditionally, even if it is not present on the test system (e.g. if booted with vsyscall=none or with CONFIG_LEGACY_VSYSCALL_NONE=y set. Fix this by copying (and tweaking) the vsyscall check from test_vsyscall.c Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Andrew Lutomirski <luto@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kselftest@vger.kernel.org Cc: shuah@kernel.org Link: http://lkml.kernel.org/r/20180211111013.16888-3-linux@dominikbrodowski.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/testing/selftests/x86/test_vsyscall.c')
0 files changed, 0 insertions, 0 deletions