[PATCH 0/4] Clean up UBSAN Makefile

From: Kees Cook
Date: Fri Oct 02 2020 - 18:15:47 EST


Hi,

This series attempts to address the issues seen with UBSAN's object-size
sanitizer causing problems under GCC. In the process, the Kconfig and
Makefile are refactored to do all the cc-option calls in the Kconfig.
Additionally start to detangle -Wno-maybe-uninitialized, and disable
UBSAN_TRAP under COMPILE_TEST for wider build coverage.

Thanks!

-Kees

Kees Cook (4):
ubsan: Move cc-option tests into Kconfig
ubsan: Disable object-size sanitizer under GCC
ubsan: Force -Wno-maybe-uninitialized only for GCC
ubsan: Disable UBSAN_TRAP for all*config

lib/Kconfig.ubsan | 58 +++++++++++++++++++++++++++++++++++++++++-
scripts/Makefile.ubsan | 50 +++++++++++++-----------------------
2 files changed, 74 insertions(+), 34 deletions(-)

--
2.25.1