Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: kmsan: remove runtime checks from kmsan_unpoison_memory()
Similarly to what's been done in commit 85716a8 ("kmsan: allow using __msan_instrument_asm_store() inside runtime"), it should be safe to call kmsan_unpoison_memory() from within the runtime, as it does not allocate memory or take locks. Remove the redundant runtime checks. This should fix false positives seen with CONFIG_DEBUG_LIST=y when the non-instrumented lib/stackdepot.c failed to unpoison the memory chunks later checked by the instrumented lib/list_debug.c Also replace the implementation of kmsan_unpoison_entry_regs() with a call to kmsan_unpoison_memory(). Link: https://lkml.kernel.org/r/[email protected] Fixes: f80be45 ("kmsan: add KMSAN runtime core") Signed-off-by: Alexander Potapenko <[email protected]> Tested-by: Marco Elver <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Ilya Leoshkevich <[email protected]> Cc: Nicholas Miehlbradt <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information