selftests/lkdtm: Reset WARN_ONCE to avoid false negatives
authorKees Cook <keescook@chromium.org>
Thu, 25 Jun 2020 20:37:03 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:49 +0000 (08:23 +0200)
commitccc2f5bfeefe862a731dd6956bfef9b3aebca5bb
tree91fab8834a28156a8d03d6f3daa944b3e589c132
parent1e84529a93020c8b5cf431af3a5e427a3216f7ec
selftests/lkdtm: Reset WARN_ONCE to avoid false negatives

[ Upstream commit 4fccc8c0ff740e62343b6de38426a48b345b95f4 ]

Since we expect to see warnings every time for many tests, just reset
the WARN_ONCE flags each time the script runs.

Fixes: 46d1a0f03d66 ("selftests/lkdtm: Add tests for LKDTM targets")
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200625203704.317097-4-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/lkdtm/run.sh