ubsan: Restore dependency on ARCH_HAS_UBSAN
Subsystems (2)
PATCH 1/1 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.
---
Cc: Marco Elver <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- lib/Kconfig.ubsan | 1 + 1 file changed, 1 insertion(+)
lib/Kconfig.ubsan +1 -0
@@ -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
Signature · 1 line
2.34.1
Quoted 9 lines · Kees Cook
While removing
CONFIG_UBSAN_SANITIZE_ALL,ARCH_HAS_UBSANwasn'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]>Fixes 918327e9b7ff ("ubsan: Remove CONFIG_UBSAN_SANITIZE_ALL")Signed-off-by Kees Cook <[email protected]>
Quoted 25 lines
---
Cc: Marco Elver <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: [email protected]
Cc: [email protected]--- lib/Kconfig.ubsan | 1 + 1 file changed, 1 insertion(+)lib/Kconfig.ubsan +1
-1@@ -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 --2.34.1