Re: [PATCH] kmsan: compiler_types: declare __no_sanitize_or_inline
From: Andrew Morton
Date: Thu Apr 25 2024 - 16:31:53 EST
On Thu, 25 Apr 2024 11:28:59 +0200 Alexander Potapenko <glider@xxxxxxxxxx> wrote:
> It turned out that KMSAN instruments READ_ONCE_NOCHECK(), resulting in
> false positive reports, because __no_sanitize_or_inline enforced inlining.
>
> Properly declare __no_sanitize_or_inline under __SANITIZE_MEMORY__,
> so that it does not inline the annotated function.
>
> Reported-by: syzbot+355c5bb8c1445c871ee8@xxxxxxxxxxxxxxxxxxxxxxxxx
I'll add
Link: https://lkml.kernel.org/r/000000000000826ac1061675b0e3@xxxxxxxxxx
And I think a cc:stable is justifiable. A Fixes: target would be nice?