summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2020-02-11 17:04:22 +0100
committerIngo Molnar <mingo@kernel.org>2020-03-21 09:44:08 +0100
commit81af89e15862909881ff010a0adb67148487e88a (patch)
treed2cc4b1598e5136a418154244fbbff9997fde592 /init
parentb738f6169f1260b4ed5bd9f220b1c84d79f3ab8d (diff)
kcsan: Add kcsan_set_access_mask() support
When setting up an access mask with kcsan_set_access_mask(), KCSAN will only report races if concurrent changes to bits set in access_mask are observed. Conveying access_mask via a separate call avoids introducing overhead in the common-case fast-path. Acked-by: John Hubbard <jhubbard@nvidia.com> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'init')
-rw-r--r--init/init_task.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init_task.c b/init/init_task.c
index 2b4fe98b0f09..096191d177d5 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -167,6 +167,7 @@ struct task_struct init_task
.atomic_next = 0,
.atomic_nest_count = 0,
.in_flat_atomic = false,
+ .access_mask = 0,
},
#endif
#ifdef CONFIG_TRACE_IRQFLAGS