lkdtm/bugs: Add ARRAY_BOUNDS to selftests
authorKees Cook <keescook@chromium.org>
Wed, 18 Aug 2021 17:48:52 +0000 (10:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 20:28:51 +0000 (22:28 +0200)
commitc75be56e35b2eef824a2ac8d90a98f9e65b28efa
tree6205254a511f82d28093fe580ce75801d9bfc2b7
parent09cbd1df7d2615c19e40facbe31fdcb5f1ebfa96
lkdtm/bugs: Add ARRAY_BOUNDS to selftests

Add CONFIG hints about why the ARRAY_BOUNDS test might fail, and
similarly include the CONFIGs needed to pass the ARRAY_BOUNDS test via
the selftests, and add to selftests.

Cc: kernelci@groups.io
Suggested-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210818174855.2307828-2-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm/bugs.c
tools/testing/selftests/lkdtm/config
tools/testing/selftests/lkdtm/tests.txt