]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/lkdtm: Add way to repeat a test
authorKees Cook <keescook@chromium.org>
Fri, 22 Oct 2021 22:38:25 +0000 (15:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Oct 2021 07:13:46 +0000 (09:13 +0200)
commitf6afe7183b3a5c01a141d7c7d4ae27a718715af5
tree1d65886682cb6dca438546bebd49385426c11c6f
parente7bc1cf73afe2a495d01a7a66dd93c52d7e570f9
selftests/lkdtm: Add way to repeat a test

Some LKDTM tests need to be run more than once (usually to setup and
then later trigger). Until now, the only case was the SOFT_LOCKUP test,
which wasn't useful to run in the bulk selftests. The coming stack canary
checking needs to run twice, so support this with a new test output prefix
"repeat".

Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20211022223826.330653-2-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/lkdtm/run.sh