tcp: annotate a data-race around sysctl_tcp_wmem[0]
authorJason Xing <kernelxing@tencent.com>
Fri, 8 Mar 2024 11:25:04 +0000 (19:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Mar 2024 10:37:40 +0000 (10:37 +0000)
commit683a67da95616c91a85b98e41dc8eefe9f2b29e7
tree8db546ff0658cc827f43f0c66cb950d0942e411d
parent9eb430d40e449640122b0b33ace1f33e793ecc5f
tcp: annotate a data-race around sysctl_tcp_wmem[0]

When reading wmem[0], it could be changed concurrently without
READ_ONCE() protection. So add one annotation here.

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c