diff options
author | Alexander Potapenko <glider@google.com> | 2022-11-28 10:45:41 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-12 03:12:11 +0100 |
commit | 85716a80c16dd6b6d1aaed87cd4b91c9b1d9b9b2 (patch) | |
tree | 903afb31d5696113fb7901bb70fd57a834f67e12 /arch/nios2 | |
parent | lockdep: allow instrumenting lockdep.c with KMSAN (diff) | |
download | linux-85716a80c16dd6b6d1aaed87cd4b91c9b1d9b9b2.tar.xz linux-85716a80c16dd6b6d1aaed87cd4b91c9b1d9b9b2.zip |
kmsan: allow using __msan_instrument_asm_store() inside runtime
In certain cases (e.g. when handling a softirq)
__msan_instrument_asm_store(&var, sizeof(var)) may be called with from
within KMSAN runtime, but later the value of @var is used with
!kmsan_in_runtime(), leading to false positives.
Because kmsan_internal_unpoison_memory() doesn't take locks, it should be
fine to call it without kmsan_in_runtime() checks, which fixes the
mentioned false positives.
Link: https://lkml.kernel.org/r/20221128094541.2645890-2-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Eric Biggers <ebiggers@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Marco Elver <elver@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/nios2')
0 files changed, 0 insertions, 0 deletions