diff options
author | Eric Dumazet <edumazet@google.com> | 2023-08-31 16:52:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-09-19 13:28:01 +0300 |
commit | 787c5829681b14903ae507853994860caed00718 (patch) | |
tree | 8188789b5693faa7182bac60d9508a3e57db44b3 /net/sysctl_net.c | |
parent | f1175881ddd91db46648c28eec05628e30e14c65 (diff) | |
download | linux-787c5829681b14903ae507853994860caed00718.tar.xz |
net: annotate data-races around sk->sk_forward_alloc
[ Upstream commit 5e6300e7b3a4ab5b72a82079753868e91fbf9efc ]
Every time sk->sk_forward_alloc is read locklessly,
add a READ_ONCE().
Add sk_forward_alloc_add() helper to centralize updates,
to reduce number of WRITE_ONCE().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/sysctl_net.c')
0 files changed, 0 insertions, 0 deletions