WARNING: DATA RACE Write at 0x00c0027fedaa by goroutine 14630: gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Connect.func1() pkg/tcpip/transport/udp/endpoint.go:694 +0x552 gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*Endpoint).ConnectAndThen() pkg/tcpip/transport/internal/network/endpoint.go:650 +0x719 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Connect() pkg/tcpip/transport/udp/endpoint.go:665 +0x191 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).Connect() pkg/sentry/socket/netstack/netstack.go:707 +0x5dd gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Connect() pkg/sentry/syscalls/linux/sys_socket.go:279 +0x311 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:142 +0xabe gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:322 +0x8d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:282 +0xc4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:257 +0x53a gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:269 +0x22b3 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:98 +0x35a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1() pkg/sentry/kernel/task_start.go:389 +0x47 Previous read at 0x00c0027fedaa by goroutine 14624: gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).onICMPError() pkg/tcpip/transport/udp/endpoint.go:1040 +0x5e4 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).HandleError() pkg/tcpip/transport/udp/endpoint.go:1056 +0xc4 gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handleError() pkg/tcpip/stack/transport_demuxer.go:209 +0x292 gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverError() pkg/tcpip/stack/transport_demuxer.go:649 +0x1e7 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportError() pkg/tcpip/stack/nic.go:882 +0x304 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleControl() pkg/tcpip/network/ipv4/icmp.go:280 +0x439 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleICMP() pkg/tcpip/network/ipv4/icmp.go:482 +0x7e7 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).deliverPacketLocally() pkg/tcpip/network/ipv4/ipv4.go:1290 +0xd56 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket() pkg/tcpip/network/ipv4/ipv4.go:1154 +0xe39 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleLocalPacket() pkg/tcpip/network/ipv4/ipv4.go:882 +0x25a gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting() pkg/tcpip/network/ipv4/ipv4.go:546 +0xd7 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket() pkg/tcpip/network/ipv4/ipv4.go:538 +0x2dd gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket() pkg/tcpip/network/ipv4/ipv4.go:506 +0x204 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket() pkg/tcpip/stack/route.go:495 +0x138 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*protocol).returnError() pkg/tcpip/network/ipv4/icmp.go:794 +0xdcf gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).deliverPacketLocally() pkg/tcpip/network/ipv4/ipv4.go:1331 +0x1113 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket() pkg/tcpip/network/ipv4/ipv4.go:1154 +0xe39 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleLocalPacket() pkg/tcpip/network/ipv4/ipv4.go:882 +0x25a gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting() pkg/tcpip/network/ipv4/ipv4.go:546 +0xd7 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket() pkg/tcpip/network/ipv4/ipv4.go:538 +0x2dd gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket() pkg/tcpip/network/ipv4/ipv4.go:506 +0x204 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket() pkg/tcpip/stack/route.go:495 +0x138 gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*WriteContext).WritePacket() pkg/tcpip/transport/internal/network/endpoint.go:320 +0x217 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write() pkg/tcpip/transport/udp/endpoint.go:529 +0x5cc gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write() pkg/tcpip/transport/udp/endpoint.go:366 +0x97 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).Write() pkg/sentry/socket/netstack/netstack.go:482 +0x242 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write() pkg/sentry/vfs/file_description.go:679 +0x151 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.write() pkg/sentry/syscalls/linux/sys_read_write.go:347 +0xad gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write() pkg/sentry/syscalls/linux/sys_read_write.go:316 +0x34e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:142 +0xabe gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:322 +0x8d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:282 +0xc4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:257 +0x53a gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:269 +0x22b3 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:98 +0x35a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1() pkg/sentry/kernel/task_start.go:389 +0x47