Skip to content

Commit 890a648

Browse files
committed
ubsan: Restore dependency on ARCH_HAS_UBSAN
While removing CONFIG_UBSAN_SANITIZE_ALL, ARCH_HAS_UBSAN wasn't correctly depended on. Restore this, as we do not want to attempt UBSAN builds unless it's actually been tested on a given architecture. Reported-by: Masahiro Yamada <[email protected]> Closes: https://lore.kernel.org/all/[email protected] Fixes: 918327e ("ubsan: Remove CONFIG_UBSAN_SANITIZE_ALL") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent ce0d73e commit 890a648

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Kconfig.ubsan

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ config ARCH_HAS_UBSAN
44

55
menuconfig UBSAN
66
bool "Undefined behaviour sanity checker"
7+
depends on ARCH_HAS_UBSAN
78
help
89
This option enables the Undefined Behaviour sanity checker.
910
Compile-time instrumentation is used to detect various undefined

0 commit comments

Comments
 (0)