diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2022-01-04 21:34:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-08 15:23:55 +0300 |
commit | e34806c6c29d7066ac8de17db6c3dc542a629f1b (patch) | |
tree | ede50df976bca66fbfc2156bc07f0927f1b7bdcb /block | |
parent | 99780fcb5494a7e9498b7cf5fdacff7741724dec (diff) | |
download | linux-e34806c6c29d7066ac8de17db6c3dc542a629f1b.tar.xz |
rcu: Mark writes to the rcu_segcblist structure's ->flags field
[ Upstream commit c09929031018913b5783872a8b8cdddef4a543c7 ]
KCSAN reports data races between the rcu_segcblist_clear_flags() and
rcu_segcblist_set_flags() functions, though misreporting the latter
as a call to rcu_segcblist_is_enabled() from call_rcu(). This commit
converts the updates of this field to WRITE_ONCE(), relying on the
resulting unmarked reads to continue to detect buggy concurrent writes
to this field.
Reported-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions