]> git.itanic.dy.fi Git - linux-stable/commitdiff
ubsan: remove cc-option test for UBSAN_TRAP
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 7 Apr 2023 21:54:06 +0000 (14:54 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 17 May 2023 19:01:54 +0000 (12:01 -0700)
-fsanitize-undefined-trap-on-error has been supported since GCC 5.1 and
Clang 3.2.  The minimum supported version of these according to
Documentation/process/changes.rst is 5.1 and 11.0.0 respectively. Drop
this cc-option check.

Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230407215406.768464-1-ndesaulniers@google.com
lib/Kconfig.ubsan

index 65d8bbcba4389f3817f036e345ceabfe5b6e6795..efae7e01195654fec92e7e9ea5aacf4eefc2f551 100644 (file)
@@ -15,7 +15,6 @@ if UBSAN
 config UBSAN_TRAP
        bool "On Sanitizer warnings, abort the running kernel code"
        depends on !COMPILE_TEST
-       depends on $(cc-option, -fsanitize-undefined-trap-on-error)
        help
          Building kernels with Sanitizer features enabled tends to grow
          the kernel size by around 5%, due to adding all the debugging