================================================================== BUG: KCSAN: data-race in __ip4_datagram_connect / raw_local_deliver write to 0xffff888138bee404 of 4 bytes by task 7414 on cpu 0: __ip4_datagram_connect+0x650/0x7b0 net/ipv4/datagram.c:65 ip4_datagram_connect+0x2a/0x40 net/ipv4/datagram.c:88 inet_dgram_connect+0x107/0x190 net/ipv4/af_inet.c:576 __sys_connect_file net/socket.c:1979 [inline] __sys_connect+0x197/0x1b0 net/socket.c:1996 __do_sys_connect net/socket.c:2006 [inline] __se_sys_connect net/socket.c:2003 [inline] __x64_sys_connect+0x3d/0x50 net/socket.c:2003 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+0x46/0xb0 read to 0xffff888138bee404 of 4 bytes by task 7417 on cpu 1: __raw_v4_lookup net/ipv4/raw.c:129 [inline] raw_v4_input net/ipv4/raw.c:184 [inline] raw_local_deliver+0x2cc/0x870 net/ipv4/raw.c:218 ip_protocol_deliver_rcu+0x3e/0x480 net/ipv4/ip_input.c:193 ip_local_deliver_finish+0x126/0x160 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:307 [inline] ip_local_deliver+0x100/0x1b0 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:461 [inline] ip_rcv_finish net/ipv4/ip_input.c:437 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip_rcv+0x1b1/0x260 net/ipv4/ip_input.c:557 __netif_receive_skb_one_core net/core/dev.c:5480 [inline] __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5594 netif_receive_skb_internal+0x37/0x150 net/core/dev.c:5680 netif_receive_skb+0x16/0x170 net/core/dev.c:5739 tun_rx_batched+0x3b0/0x3f0 tun_get_user+0x1245/0x1580 drivers/net/tun.c:1995 tun_chr_write_iter+0x18a/0x240 drivers/net/tun.c:2025 call_write_iter include/linux/fs.h:2058 [inline] new_sync_write fs/read_write.c:504 [inline] vfs_write+0x71c/0x890 fs/read_write.c:591 ksys_write+0xe8/0x1a0 fs/read_write.c:644 __do_sys_write fs/read_write.c:656 [inline] __se_sys_write fs/read_write.c:653 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:653 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+0x46/0xb0 value changed: 0x00000000 -> 0x0100007f Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7417 Comm: syz-executor.0 Not tainted 5.19.0-rc4-syzkaller-00187-g089866061428-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 ==================================================================