Skip to content

Commit 1900be2

Browse files
musamaanjumshuahkh
authored andcommitted
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: c75be56 ("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>
1 parent b22dfec commit 1900be2

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/lkdtm

1 file changed

+1
-0
lines changed

tools/testing/selftests/lkdtm/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CONFIG_FORTIFY_SOURCE=y
55
CONFIG_HARDENED_USERCOPY=y
66
CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y
77
CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
8+
CONFIG_UBSAN=y
89
CONFIG_UBSAN_BOUNDS=y
910
CONFIG_UBSAN_TRAP=y
1011
CONFIG_STACKPROTECTOR_STRONG=y

0 commit comments

Comments
 (0)