diff options
author | Eric Dumazet <edumazet@google.com> | 2022-11-15 09:53:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-16 13:48:44 +0100 |
commit | cb34b7cf17ecf33499c9298943f85af247abc1e9 (patch) | |
tree | af00604bc36b109ae88bae9d753a530c529528f2 /net/ipv6/ip6_vti.c | |
parent | net: add atomic_long_t to net_device_stats fields (diff) | |
download | linux-cb34b7cf17ecf33499c9298943f85af247abc1e9.tar.xz linux-cb34b7cf17ecf33499c9298943f85af247abc1e9.zip |
ipv6/sit: use DEV_STATS_INC() to avoid data-races
syzbot/KCSAN reported that multiple cpus are updating dev->stats.tx_error
concurrently.
This is because sit tunnels are NETIF_F_LLTX, meaning their ndo_start_xmit()
is not protected by a spinlock.
While original KCSAN report was about tx path, rx path has the same issue.
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_vti.c')
0 files changed, 0 insertions, 0 deletions