neighbour: fix data-races around n->output
authorEric Dumazet <edumazet@google.com>
Thu, 21 Sep 2023 09:27:13 +0000 (09:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2023 16:14:37 +0000 (17:14 +0100)
commit5baa0433a15eadd729625004c37463acb982eca7
tree01cade72ec39778862a6f7d97eadceaf1c9d5295
parent25563b581ba3a1f263a00e8c9a97f5e7363be6fd
neighbour: fix data-races around n->output

n->output field can be read locklessly, while a writer
might change the pointer concurrently.

Add missing annotations to prevent load-store tearing.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/neighbour.h
net/bridge/br_netfilter_hooks.c
net/core/neighbour.c