kcsan: Address missing case with KCSAN_REPORT_VALUE_CHANGE_ONLY
authorMarco Elver <elver@google.com>
Wed, 29 Jan 2020 15:01:02 +0000 (16:01 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 21 Mar 2020 08:41:29 +0000 (09:41 +0100)
commitad4f8eeca8eaa24afb6059c241a2f4baf86378f3
tree21f97518ec07d2b4cb94946b4b7be15a540023e9
parentf1bc96210c6a6b853b4b2eec808141956e8fbc5d
kcsan: Address missing case with KCSAN_REPORT_VALUE_CHANGE_ONLY

Even with KCSAN_REPORT_VALUE_CHANGE_ONLY, KCSAN still reports data
races between reads and watchpointed writes, even if the writes wrote
values already present.  This commit causes KCSAN to unconditionally
skip reporting in this case.

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>
kernel/kcsan/report.c