@@ -1,9 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only
config ARCH_HAS_UBSAN_SANITIZE_ALL
bool
+ default y
menuconfig UBSAN
bool "Undefined behaviour sanity checker"
+ default y
help
This option enables the Undefined Behaviour sanity checker.
Compile-time instrumentation is used to detect various undefined
@@ -82,7 +84,8 @@ config UBSAN_ALIGNMENT
config TEST_UBSAN
tristate "Module for testing for undefined behavior detection"
- depends on m
+ depends on UBSAN
+ default m
help
This is a test module for UBSAN.
It triggers various undefined behavior, and detect it.