ANDROID: temporary disable UBSAN_TRAP

After a Clang update, UBSAN began detecting signed integer overflow,
despite the "-fwrapv" flag which defines the behavior for this. This
detection aims to find unintentional overflows, however, there's
currently no effective mechanism to mark overflows as intentional in
certain cases.

This change disables kernel panic when UBSAN detects undefined behavior,
leaving only a warning in the kernel log. UBSAN_TRAP will be re-enabled
once all intentional undefined behavior is annotated (bug 375156207).

Bug: 354745907
Bug: 375156207
Change-Id: I64b35b8cb03be6c87910bec939039d1edc67a998
Signed-off-by: Aleksei Vetrov <vvvvvv@google.com>
This commit is contained in:
Aleksei Vetrov
2024-10-04 20:58:10 +00:00
parent ff5e617e29
commit 97da075331
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -712,7 +712,6 @@ CONFIG_HEADERS_INSTALL=y
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_UBSAN=y
CONFIG_UBSAN_TRAP=y
# CONFIG_UBSAN_BOOL is not set
# CONFIG_UBSAN_ENUM is not set
CONFIG_PAGE_OWNER=y
-1
View File
@@ -658,7 +658,6 @@ CONFIG_HEADERS_INSTALL=y
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_UBSAN=y
CONFIG_UBSAN_TRAP=y
# CONFIG_UBSAN_BOOL is not set
# CONFIG_UBSAN_ENUM is not set
CONFIG_PAGE_OWNER=y