Skip to content
Commit 167ebeda authored by Kees Cook's avatar Kees Cook
Browse files

ubsan: Use Clang's -fsanitize-trap=undefined option



Clang changed the way it enables UBSan trapping mode. Update the Makefile
logic to discover it.

Suggested-by: default avatarFangrui Song <maskray@google.com>
Link: https://lore.kernel.org/lkml/CAFP8O3JivZh+AAV7N90Nk7U2BHRNST6MRP0zHtfQ-Vj0m4+pDA@mail.gmail.com/


Reviewed-by: default avatarFangrui Song <maskray@google.com>
Reviewed-by: default avatarJustin Stitt <justinstitt@google.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nicolas Schier <nicolas@fjasle.eu>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Bill Wendling <morbo@google.com>
Cc: linux-kbuild@vger.kernel.org
Cc: llvm@lists.linux.dev
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 0ea74b4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment