Skip to content
Commit 90d1f14c authored by Alexander Potapenko's avatar Alexander Potapenko Committed by Andrew Morton
Browse files

kmsan: compiler_types: declare __no_sanitize_or_inline

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 __always_inline the annotated function.

Link: https://lkml.kernel.org/r/20240426091622.3846771-1-glider@google.com


Fixes: 5de0ce85 ("kmsan: mark noinstr as __no_sanitize_memory")
Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Reported-by: default avatar <syzbot+355c5bb8c1445c871ee8@syzkaller.appspotmail.com>
Link: https://lkml.kernel.org/r/000000000000826ac1061675b0e3@google.com


Cc: <stable@vger.kernel.org>
Reviewed-by: default avatarMarco Elver <elver@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 2aaba39e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment