selftests/x86/vdso: Fix no-vDSO segfaults
authorAndy Lutomirski <luto@kernel.org>
Thu, 19 Mar 2020 21:30:56 +0000 (14:30 -0700)
committerBorislav Petkov <bp@suse.de>
Fri, 20 Mar 2020 10:20:04 +0000 (11:20 +0100)
commit07f24dc95daca49b8a2e804edc024dd4e91610ac
tree354b59093889111beb67683cb41256e007b10585
parentfb33c6510d5595144d585aa194d377cf74d31911
selftests/x86/vdso: Fix no-vDSO segfaults

test_vdso would try to call a NULL pointer if the vDSO was missing.

vdso_restorer_32 hit a genuine failure: trying to use the
kernel-provided signal restorer doesn't work if the vDSO is missing.
Skip the test if the vDSO is missing, since the test adds no particular
value in that case.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/618ea7b8c55b10d08b1cb139e9a3a957934b8647.1584653439.git.luto@kernel.org
tools/testing/selftests/x86/test_vdso.c
tools/testing/selftests/x86/vdso_restorer.c