================================================================== BUG: KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb write to 0xffff888141e3f02a of 2 bytes by task 7232 on cpu 0: __ip4_datagram_connect+0x759/0x7b0 net/ipv4/datagram.c:76 ip4_datagram_connect+0x2e/0x40 net/ipv4/datagram.c:90 inet_dgram_connect+0x114/0x1a0 net/ipv4/af_inet.c:580 __sys_connect_file net/socket.c:1992 [inline] __sys_connect+0x1a1/0x1b0 net/socket.c:2009 __do_sys_connect net/socket.c:2019 [inline] __se_sys_connect net/socket.c:2016 [inline] __x64_sys_connect+0x41/0x50 net/socket.c:2016 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888141e3f02a of 2 bytes by task 7238 on cpu 1: ip_select_ident_segs include/net/ip.h:541 [inline] ip_select_ident include/net/ip.h:556 [inline] __ip_make_skb+0x817/0xc70 net/ipv4/ip_output.c:1437 ip_make_skb+0x233/0x2c0 net/ipv4/ip_output.c:1551 udp_sendmsg+0x1199/0x1250 net/ipv4/udp.c:1256 inet_sendmsg+0x63/0x80 net/ipv4/af_inet.c:830 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] sock_write_iter+0x1aa/0x230 net/socket.c:1129 call_write_iter include/linux/fs.h:1871 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x4ab/0x7d0 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x545b -> 0x8ecb Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7238 Comm: syz-executor.3 Not tainted 6.5.0-rc3-syzkaller-00024-g18b44bc5a672 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 ==================================================================