lkdtm: Make arch-specific tests always available
authorKees Cook <keescook@chromium.org>
Thu, 25 Jun 2020 20:37:04 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:49 +0000 (08:23 +0200)
commit2f662d198ecc5b1835e4429cd56217c61342ce8d
treec6950ae7091ef7ff5c46897618dd67717d517a79
parentccc2f5bfeefe862a731dd6956bfef9b3aebca5bb
lkdtm: Make arch-specific tests always available

[ Upstream commit ae56942c14740c2963222efdc36c667ab19555ef ]

I'd like arch-specific tests to XFAIL when on a mismatched architecture
so that we can more easily compare test coverage across all systems.
Lacking kernel configs or CPU features count as a FAIL, not an XFAIL.

Additionally fixes a build failure under 32-bit UML.

Fixes: b09511c253e5 ("lkdtm: Add a DOUBLE_FAULT crash type on x86")
Fixes: cea23efb4de2 ("lkdtm/bugs: Make double-fault test always available")
Fixes: 6cb6982f42cb ("lkdtm: arm64: test kernel pointer authentication")
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200625203704.317097-5-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/lkdtm/bugs.c
drivers/misc/lkdtm/lkdtm.h
tools/testing/selftests/lkdtm/tests.txt