selftests/lkdtm: Add UBSAN config
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Fri, 21 Jan 2022 14:51:53 +0000 (19:51 +0500)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 24 Feb 2022 00:27:53 +0000 (17:27 -0700)
commit1900be289b598b2c553b3add13e491c0bb8a8550
treed5201db2db5464ac58f487e6c525639c6f33a26a
parentb22dfec72c377e350c4cafce4078977d3e5bee03
selftests/lkdtm: Add UBSAN config

UBSAN_BOUNDS and UBSAN_TRAP depend on UBSAN config option.
merge_config.sh script generates following warnings if parent config
doesn't have UBSAN config already enabled and UBSAN_BOUNDS/UBSAN_TRAP
config options don't get added to the parent config.

Value requested for CONFIG_UBSAN_BOUNDS not in final .config
Requested value:  CONFIG_UBSAN_BOUNDS=y
Actual value:

Value requested for CONFIG_UBSAN_TRAP not in final .config
Requested value:  CONFIG_UBSAN_TRAP=y
Actual value:

Fix this by including UBSAN config.

Fixes: c75be56e35b2 ("lkdtm/bugs: Add ARRAY_BOUNDS to selftests")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/lkdtm/config