tcp: annotate data races in __tcp_oow_rate_limited()
authorEric Dumazet <edumazet@google.com>
Thu, 29 Jun 2023 16:41:50 +0000 (16:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jul 2023 08:25:02 +0000 (09:25 +0100)
commit998127cdb4699b9d470a9348ffe9f1154346be5f
tree36118a1e2a55304a29e7e4b51da01e488ade0b14
parentc94683ed35ec33775e982af45a54723b7ab05851
tcp: annotate data races in __tcp_oow_rate_limited()

request sockets are lockless, __tcp_oow_rate_limited() could be called
on the same object from different cpus. This is harmless.

Add READ_ONCE()/WRITE_ONCE() annotations to avoid a KCSAN report.

Fixes: 4ce7e93cb3fe ("tcp: rate limit ACK sent by SYN_RECV request sockets")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c