summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/lkdtm/config
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-08-18 10:48:52 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-18 22:28:51 +0200
commitc75be56e35b2eef824a2ac8d90a98f9e65b28efa (patch)
tree6205254a511f82d28093fe580ce75801d9bfc2b7 /tools/testing/selftests/lkdtm/config
parent09cbd1df7d2615c19e40facbe31fdcb5f1ebfa96 (diff)
downloadlinux-c75be56e35b2eef824a2ac8d90a98f9e65b28efa.tar.bz2
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>
Diffstat (limited to 'tools/testing/selftests/lkdtm/config')
-rw-r--r--tools/testing/selftests/lkdtm/config2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/lkdtm/config b/tools/testing/selftests/lkdtm/config
index 013446e87f1f..38edea25631b 100644
--- a/tools/testing/selftests/lkdtm/config
+++ b/tools/testing/selftests/lkdtm/config
@@ -6,3 +6,5 @@ CONFIG_HARDENED_USERCOPY=y
# CONFIG_HARDENED_USERCOPY_FALLBACK is not set
CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y
CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
+CONFIG_UBSAN_BOUNDS=y
+CONFIG_UBSAN_TRAP=y