public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] ubsan: remove cc-option test for UBSAN_TRAP
@ 2023-04-07 21:54 Nick Desaulniers
  2023-04-07 21:58 ` Nathan Chancellor
  2023-05-17 19:02 ` Kees Cook
  0 siblings, 2 replies; 11+ messages in thread
From: Nick Desaulniers @ 2023-04-07 21:54 UTC (permalink / raw)
  To: Kees Cook, Masahiro Yamada
  Cc: linux-hardening, Nathan Chancellor, Tom Rix, Josh Poimboeuf,
	Peter Zijlstra, Miroslav Benes, linux-kernel, llvm, linux-kbuild,
	Nick Desaulniers

-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>
---
Masahiro, Kees: get_maintainer.pl leaves much to be desired for this
file. Can one of you please pick this up?

 lib/Kconfig.ubsan | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan
index fd15230a703b..0e7ad0782399 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
-- 
2.40.0.577.gac1e443424-goog


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-05-17 19:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07 21:54 [PATCH] ubsan: remove cc-option test for UBSAN_TRAP Nick Desaulniers
2023-04-07 21:58 ` Nathan Chancellor
2023-04-12  0:12   ` Fangrui Song
2023-04-12 15:12     ` Kees Cook
2023-04-12 18:13       ` Fangrui Song
2023-04-19 21:02         ` Fangrui Song
2023-05-17 19:02 ` Kees Cook
2023-05-17 19:08   ` Fangrui Song
2023-05-17 19:09     ` Fangrui Song
2023-05-17 19:16       ` Kees Cook
2023-05-17 19:22         ` Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox