Commit 8bd4ce7
tcp: annotate data-races around tp->bytes_retrans
[ Upstream commit 5efc7b9 ]
tcp_get_timestamping_opt_stats() intentionally runs lockless, we must
add READ_ONCE() and WRITE_ONCE() annotations to keep KCSAN happy.
Fixes: fb31c9b ("tcp: add data bytes retransmitted stats")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-9-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 5e7390e commit 8bd4ce7
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4304 | 4304 | | |
4305 | 4305 | | |
4306 | 4306 | | |
4307 | | - | |
4308 | | - | |
| 4307 | + | |
| 4308 | + | |
4309 | 4309 | | |
4310 | 4310 | | |
4311 | 4311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3414 | 3414 | | |
3415 | 3415 | | |
3416 | 3416 | | |
3417 | | - | |
| 3417 | + | |
3418 | 3418 | | |
3419 | 3419 | | |
3420 | 3420 | | |
| |||
0 commit comments