tools/memory-model: Heuristics using data_race() must handle all values
authorManfred Spraul <manfred@colorfullife.com>
Fri, 14 May 2021 18:40:06 +0000 (11:40 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 27 Jul 2021 18:48:55 +0000 (11:48 -0700)
commitf92975d76d537c06a2118f9c3c63432c0f7c7a88
treedd517af260177be87f5e6971b0392296bd101471
parent436eef23c41fe10dc34ed19a00caf9f1290a8689
tools/memory-model: Heuristics using data_race() must handle all values

Data loaded for use by some sorts of heuristics can tolerate the
occasional erroneous value.  In this case the loads may use data_race()
to give the compiler full freedom to optimize while also informing KCSAN
of the intent.  However, for this to work, the heuristic needs to be
able to tolerate any erroneous value that could possibly arise.  This
commit therefore adds a paragraph spelling this out.

Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/memory-model/Documentation/access-marking.txt