]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kmsan: rework kmsan_in_runtime() handling in kmsan_report()
authorAlexander Potapenko <glider@google.com>
Wed, 7 May 2025 16:00:12 +0000 (18:00 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 May 2025 16:55:16 +0000 (09:55 -0700)
commitb65e4b56e9f406f291656b3e92723952c180fbab
treeb8ad9db724777175474266666b7007998afb8f24
parente17c1f15b0ccfa4802cedbd464d00ece50a10cf1
kmsan: rework kmsan_in_runtime() handling in kmsan_report()

kmsan_report() calls used to require entering/leaving the runtime around
them.  To simplify the things, drop this requirement and move calls to
kmsan_enter_runtime()/kmsan_leave_runtime() into kmsan_report().

Link: https://lkml.kernel.org/r/20250507160012.3311104-5-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmsan/core.c
mm/kmsan/instrumentation.c
mm/kmsan/report.c