aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-09-21 08:46:26 +0000
committerDavid S. Miller <[email protected]>2023-10-01 16:29:06 +0100
commit25563b581ba3a1f263a00e8c9a97f5e7363be6fd (patch)
treeb3564a6168f019dd55288ea76dc481d2b2c04832 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentc15cd642d437c9f64d397c14ce734e0554d3977b (diff)
net: fix possible store tearing in neigh_periodic_work()
While looking at a related syzbot report involving neigh_periodic_work(), I found that I forgot to add an annotation when deleting an RCU protected item from a list. Readers use rcu_deference(*np), we need to use either rcu_assign_pointer() or WRITE_ONCE() on writer side to prevent store tearing. I use rcu_assign_pointer() to have lockdep support, this was the choice made in neigh_flush_dev(). Fixes: 767e97e1e0db ("neigh: RCU conversion of struct neighbour") Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: David Ahern <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions