Skip to content

Commit 08e4044

Browse files
nickdesaulnierskees
authored andcommitted
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 <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 55c84a5 commit 08e4044

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Kconfig.ubsan

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if UBSAN
1515
config UBSAN_TRAP
1616
bool "On Sanitizer warnings, abort the running kernel code"
1717
depends on !COMPILE_TEST
18-
depends on $(cc-option, -fsanitize-undefined-trap-on-error)
1918
help
2019
Building kernels with Sanitizer features enabled tends to grow
2120
the kernel size by around 5%, due to adding all the debugging

0 commit comments

Comments
 (0)