linux/kernel/kcsan
Marco Elver 44656d3dc4 kcsan: Add current->state to implicitly atomic accesses
Add volatile current->state to list of implicitly atomic accesses. This
is in preparation to eventually enable KCSAN on kernel/sched (which
currently still has KCSAN_SANITIZE := n).

Since accesses that match the special check in atomic.h are rare, it
makes more sense to move this check to the slow-path, avoiding the
additional compare in the fast-path. With the microbenchmark, a speedup
of ~6% is measured.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2020-03-25 09:56:00 -07:00
..
atomic.h kcsan: Add current->state to implicitly atomic accesses 2020-03-25 09:56:00 -07:00
core.c kcsan: Add current->state to implicitly atomic accesses 2020-03-25 09:56:00 -07:00
debugfs.c kcsan: Add current->state to implicitly atomic accesses 2020-03-25 09:56:00 -07:00
encoding.h kcsan: Prefer __always_inline for fast-path 2020-03-21 09:40:19 +01:00
kcsan.h kcsan: Add option for verbose reporting 2020-03-25 09:56:00 -07:00
Makefile kcsan, trace: Make KCSAN compatible with tracing 2020-03-21 09:44:41 +01:00
report.c kcsan: Add option for verbose reporting 2020-03-25 09:56:00 -07:00
test.c kcsan: Fix 0-sized checks 2020-03-21 09:42:42 +01:00