diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2023-04-07 23:54:06 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2023-05-17 21:01:54 +0200 |
commit | 08e4044243a668ea2801cebffcb7c07df568ed3f (patch) | |
tree | 3c3142fc62a96fa505e0879ad38cedab4f52f19b /lib/Kconfig.ubsan | |
parent | fortify: strcat: Move definition to use fortified strlcat() (diff) | |
download | linux-08e4044243a668ea2801cebffcb7c07df568ed3f.tar.xz linux-08e4044243a668ea2801cebffcb7c07df568ed3f.zip |
ubsan: remove cc-option test for UBSAN_TRAP
-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
Diffstat (limited to 'lib/Kconfig.ubsan')
-rw-r--r-- | lib/Kconfig.ubsan | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 65d8bbcba438..efae7e011956 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -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 |