Re: [PATCH v4] arm64: Enable KCSAN

From: Marco Elver
Date: Tue Dec 14 2021 - 14:11:41 EST


On Tue, 14 Dec 2021 at 19:24, Mark Rutland <mark.rutland@xxxxxxx> wrote:
[...]
>
> Reviewed-by: Mark Rutland <mark.rutland@xxxxxxx>
> Tested-by: Mark Rutland <mark.rutland@xxxxxxx>

Thanks for taking a look and testing! Thought I'd update you re status
of some of the reports below. :-)

[...]
> * BUG: KCSAN: data-race in mutex_spin_on_owner+0xcc/0x150
> * BUG: KCSAN: data-race in rwsem_spin_on_owner+0xa8/0x13c

These are going away, fixes are already in -tip/-next.

> * UBSAN: object-size-mismatch in net/unix/af_unix.c:977:14

The UBSAN object-size-mismatch warnings are going away, as
fsanitize=object-size is broken/incomplete as it turns out --
UBSAN_OBJECT_SIZE will be removed from 5.17:
https://bugzilla.kernel.org/show_bug.cgi?id=214861#c4
... because all its warnings can also be covered by -Warray-bounds,
which Kees is working on enabling.

Thanks,
-- Marco