================================================================== BUG: KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit read-write to 0xffff888128992178 of 8 bytes by task 13267 on cpu 0: ip_tunnel_xmit+0x95b/0x11c0 net/ipv4/ip_tunnel.c:763 ipip_tunnel_xmit+0x252/0x2b0 net/ipv4/ipip.c:307 __netdev_start_xmit include/linux/netdevice.h:4775 [inline] netdev_start_xmit include/linux/netdevice.h:4789 [inline] xmit_one+0x105/0x2f0 net/core/dev.c:3532 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3548 __dev_queue_xmit+0x84c/0xef0 net/core/dev.c:4176 dev_queue_xmit+0x13/0x20 net/core/dev.c:4209 neigh_connected_output+0x264/0x2a0 net/core/neighbour.c:1557 neigh_output include/net/neighbour.h:549 [inline] ip_finish_output2+0x74b/0x850 net/ipv4/ip_output.c:228 ip_finish_output+0xf3/0x250 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0xf3/0x1a0 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:451 [inline] ip_local_out+0x60/0x80 net/ipv4/ip_output.c:126 iptunnel_xmit+0x306/0x490 net/ipv4/ip_tunnel_core.c:82 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_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x142/0x360 drivers/net/wireguard/send.c:276 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-write to 0xffff888128992178 of 8 bytes by task 15542 on cpu 1: ip_tunnel_xmit+0x95b/0x11c0 net/ipv4/ip_tunnel.c:763 ipip_tunnel_xmit+0x252/0x2b0 net/ipv4/ipip.c:307 __netdev_start_xmit include/linux/netdevice.h:4775 [inline] netdev_start_xmit include/linux/netdevice.h:4789 [inline] xmit_one+0x105/0x2f0 net/core/dev.c:3532 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3548 __dev_queue_xmit+0x84c/0xef0 net/core/dev.c:4176 dev_queue_xmit+0x13/0x20 net/core/dev.c:4209 neigh_connected_output+0x264/0x2a0 net/core/neighbour.c:1557 neigh_output include/net/neighbour.h:549 [inline] ip_finish_output2+0x74b/0x850 net/ipv4/ip_output.c:228 ip_finish_output+0xf3/0x250 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0xf3/0x1a0 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:451 [inline] ip_local_out+0x60/0x80 net/ipv4/ip_output.c:126 iptunnel_xmit+0x306/0x490 net/ipv4/ip_tunnel_core.c:82 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_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x109/0x150 drivers/net/wireguard/send.c:51 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 value changed: 0x000000000000000f -> 0x0000000000000010 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 15542 Comm: kworker/u4:11 Not tainted 5.18.0-rc5-syzkaller-00016-g107c948d1d3e-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker ==================================================================