================================================================== BUG: KCSAN: data-race in dev_get_tstats64 / iptunnel_xmit read-write to 0xffffe8ffffc46130 of 8 bytes by task 1907 on cpu 0: iptunnel_xmit_stats include/net/ip_tunnels.h:460 [inline] iptunnel_xmit+0x3ce/0x490 net/ipv4/ip_tunnel_core.c:87 udp_tunnel_xmit_skb+0x15d/0x170 net/ipv4/udp_tunnel_core.c:171 send4+0x439/0x500 drivers/net/wireguard/socket.c:85 wg_socket_send_skb_to_peer+0x92/0x120 drivers/net/wireguard/socket.c:175 wg_socket_send_buffer_to_peer+0xd2/0xf0 drivers/net/wireguard/socket.c:200 wg_packet_send_handshake_response+0xdf/0x110 drivers/net/wireguard/send.c:103 wg_receive_handshake_packet drivers/net/wireguard/receive.c:161 [inline] wg_packet_handshake_receive_worker+0x3c8/0x6a0 drivers/net/wireguard/receive.c:220 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 read to 0xffffe8ffffc46130 of 8 bytes by task 1844 on cpu 1: dev_fetch_sw_netstats net/core/dev.c:10390 [inline] dev_get_tstats64+0x138/0x1e0 net/core/dev.c:10413 dev_get_stats+0x69/0x240 net/core/dev.c:10344 rtnl_fill_stats+0x45/0x320 net/core/rtnetlink.c:1203 rtnl_fill_ifinfo+0xc19/0x1050 net/core/rtnetlink.c:1778 rtmsg_ifinfo_build_skb+0xa2/0x130 net/core/rtnetlink.c:3848 rtmsg_ifinfo_event net/core/rtnetlink.c:3880 [inline] rtmsg_ifinfo+0x55/0xc0 net/core/rtnetlink.c:3889 __dev_notify_flags+0x65/0x3a0 net/core/dev.c:8467 dev_change_flags+0xa2/0xc0 net/core/dev.c:8509 do_setlink+0x7f9/0x2120 net/core/rtnetlink.c:2731 __rtnl_newlink net/core/rtnetlink.c:3416 [inline] rtnl_newlink+0x1116/0x1580 net/core/rtnetlink.c:3531 rtnetlink_rcv_msg+0x74f/0x7e0 net/core/rtnetlink.c:5993 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6011 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x661/0x750 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] __sys_sendto+0x21e/0x2c0 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0x74/0x90 net/socket.c:2048 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000000000 -> 0x0000000000000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1844 Comm: syz-executor.4 Not tainted 5.18.0-rc4-syzkaller-00006-gd615b5416f8a-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================