diff options
| author | Eric Dumazet <[email protected]> | 2023-09-21 08:52:17 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-10-01 15:33:01 +0000 |
| commit | d12a26b74fb77434b73fe39022266c4b00907219 (patch) | |
| tree | 4d79cdfe38a5995d60bc06d0dbe3df40130185af /net/ipv4/tcp_ipv4.c | |
| parent | net: add DEV_STATS_READ() helper (diff) | |
| download | kernel-d12a26b74fb77434b73fe39022266c4b00907219.tar.gz kernel-d12a26b74fb77434b73fe39022266c4b00907219.zip | |
virtio_net: avoid data-races on dev->stats fields
Use DEV_STATS_INC() and DEV_STATS_READ() which provide
atomicity on paths that can be used concurrently.
Reported-by: syzbot <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Xuan Zhuo <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions
