]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:22:05 +0000 (16:22 +0200)
commitcd398daabeb807ba8e2083f147a5fa4f63cc2ef4
tree1cf44e4cf1376a99497d58b5a8ed93713d655351
parentced61418f46993d571385812bafed3a7d4ab6918
tcp: annotate data races in __tcp_oow_rate_limited()

[ Upstream commit 998127cdb4699b9d470a9348ffe9f1154346be5f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/tcp_input.c