]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit999b79279119297f7fb7489ff333ffc6aa4a6151
tree354b59093889111beb67683cb41256e007b10585
parent300f50a3847de83aa4b2e44fa28dd668de331982
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