diff options
author | Kees Cook <keescook@chromium.org> | 2024-05-14 16:37:48 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-05-14 16:39:14 -0700 |
commit | 5a1f2a9c4236d782770bd6795a36b7adbd735c00 (patch) | |
tree | 62299071d11077a997e073c63a18d6dcccfbec04 | |
parent | bc9316c144413375eb691ecb83ae7cb5d94d90bf (diff) | |
download | linux-for-next/hardening.tar.gz |
ubsan: Restore dependency on ARCH_HAS_UBSANfor-next/ksppfor-next/hardening
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 <masahiroy@kernel.org>
Closes: https://lore.kernel.org/all/20240514095427.541201-1-masahiroy@kernel.org
Fixes: 918327e9b7ff ("ubsan: Remove CONFIG_UBSAN_SANITIZE_ALL")
Link: https://lore.kernel.org/r/20240514233747.work.441-kees@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
-rw-r--r-- | lib/Kconfig.ubsan | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index e81e1ac4a919b5..bdda600f8dfbeb 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -4,6 +4,7 @@ config ARCH_HAS_UBSAN menuconfig UBSAN bool "Undefined behaviour sanity checker" + depends on ARCH_HAS_UBSAN help This option enables the Undefined Behaviour sanity checker. Compile-time instrumentation is used to detect various undefined |