diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2024-04-05 22:02:11 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2024-06-06 21:44:17 +0300 |
commit | 6040072f4774a575fa67b912efe7722874be337b (patch) | |
tree | 739a186b2493dc2187aa6cccbec988476bcd046a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 43b39cafbaf66cbbdace321c01701154a1c05fdc (diff) | |
download | linux-6040072f4774a575fa67b912efe7722874be337b.tar.xz |
rcutorture: Fix rcu_torture_fwd_cb_cr() data race
On powerpc systems, spinlock acquisition does not order prior stores
against later loads. This means that this statement:
rfcp->rfc_next = NULL;
Can be reordered to follow this statement:
WRITE_ONCE(*rfcpp, rfcp);
Which is then a data race with rcu_torture_fwd_prog_cr(), specifically,
this statement:
rfcpn = READ_ONCE(rfcp->rfc_next)
KCSAN located this data race, which represents a real failure on powerpc.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Marco Elver <elver@google.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: <kasan-dev@googlegroups.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions