From afaaa780eb506f4c4fa7bc28d2036efe8fbb26f9 Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 19 Sep 2022 15:06:57 +0800 Subject: [PATCH] mm/ubsan: UBSan option should be turned on if SIM_UBSAN enabled Signed-off-by: chao an --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index d9fd5f2053..e0c02acd0a 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -224,7 +224,7 @@ config MM_UBSAN_ALL config MM_UBSAN_OPTION string "UBSan options" - depends on MM_UBSAN + depends on MM_UBSAN || SIM_UBSAN default "-fsanitize=undefined" ---help--- This option activates specified UBSan instrumentation. Please