kernel_samsung_a53x/kernel/rcu
Paul E. McKenney e4d82130b0 rcutorture: Fix rcu_torture_fwd_cb_cr() data race
[ Upstream commit 6040072f4774a575fa67b912efe7722874be337b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:22 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.debug Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcu_segcblist.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcu_segcblist.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcuscale.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcutorture.c rcutorture: Fix rcu_torture_fwd_cb_cr() data race 2024-11-23 23:20:22 +01:00
refscale.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
srcutiny.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
srcutree.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sync.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tasks.h rcu-tasks: Provide rcu_trace_implies_rcu_gp() 2024-11-19 08:44:22 +01:00
tiny.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tree.c rcu: Avoid unnecessary softirq when system is idle 2024-11-19 17:34:20 +01:00
tree.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tree_exp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tree_plugin.h rcu_boost: always without delay 2024-11-17 17:37:56 +01:00
tree_stall.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
update.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00