]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3582ccf97d9a4c1831cb2275e1b8b1e5b5a2a836
tree21f97518ec07d2b4cb94946b4b7be15a540023e9
parentf5f5c630968eafccd050fd3f97a27734a82cee50
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