From 2c1f2513486f21d26b1942ce77ffc782677fbf4e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 9 Jan 2021 16:04:01 +0100 Subject: dashboard/config/linux: disable most UBSAN configs Some UBSAN configs got enabled unintentionally just after olddefconfig. Disable most of them as they produce lots of crashes. Keep UBSAN_SHIFT, though, as people seem to fix these reports. Also change smack instance to clang as that's what we actually use for the instance. That caused some unwanted diffs in UBSAN configs as well, as UBSAN checks depend on the target compiler. --- dashboard/config/linux/bits/kasan.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'dashboard/config/linux/bits') diff --git a/dashboard/config/linux/bits/kasan.yml b/dashboard/config/linux/bits/kasan.yml index de188d860..9f911e95a 100644 --- a/dashboard/config/linux/bits/kasan.yml +++ b/dashboard/config/linux/bits/kasan.yml @@ -13,8 +13,25 @@ config: - SPARSEMEM_MANUAL: [-arm, -s390] - UBSAN: [v5.8] - - UBSAN_BOUNDS: [v5.8] - UBSAN_SANITIZE_ALL: [v5.8, -arm, -riscv] - - UBSAN_TRAP: [n, v5.8] - - UBSAN_MISC: [n, v5.8] + - UBSAN_TRAP: n + - UBSAN_MISC: n + - UBSAN_BOUNDS: [v5.8] + - UBSAN_SHIFT: [v5.11] + # Already detected well by the exception handler. + - UBSAN_DIV_ZERO: n + # Produces too many reports: + # https://groups.google.com/forum/#!msg/syzkaller-bugs/i0xhp3rFSmo/KwZ0r9IIBQAJ + - UBSAN_BOOL: n + # Produces too many reports: + # https://groups.google.com/g/syzkaller-bugs/c/b_y3xw0wvOI/m/L074F0v3BQAJ + - UBSAN_OBJECT_SIZE: n + # This does not produce any reports, which suggests that it does not work somehow. + - UBSAN_SIGNED_OVERFLOW: n + - UBSAN_UNSIGNED_OVERFLOW: n + # This does not produce any reports, which suggests that it does not work somehow. + - UBSAN_ENUM: n + # Presumably can produce lots of working-as-intended reports, but this wasn't checked. - UBSAN_ALIGNMENT: [n, v5.8] + # Depends on STACK_VALIDATION=n which we have enabled. + - UBSAN_UNREACHABLE: n -- cgit mrf-deployment