Commit 998127c
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: 4ce7e93 ("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>1 parent c94683e commit 998127c
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3590 | 3590 | | |
3591 | 3591 | | |
3592 | 3592 | | |
3593 | | - | |
3594 | | - | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3595 | 3598 | | |
3596 | 3599 | | |
3597 | 3600 | | |
| |||
3600 | 3603 | | |
3601 | 3604 | | |
3602 | 3605 | | |
3603 | | - | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
3604 | 3610 | | |
3605 | 3611 | | |
3606 | 3612 | | |
| |||
0 commit comments