Extracting prog: 1m10.938463003s Minimizing prog: 16m32.775622914s Simplifying prog options: 1m22.727022191s Extracting C: 38.279448489s Simplifying C: 0s extracting reproducer from 1 programs testing a last program of every proc single: executing 1 programs separately with timeout 45s testing program (duration=45s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r2, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program crashed: DATA RACE in packetmmap.(*Endpoint).HandlePacket single: successfully extracted reproducer found reproducer with 6 syscalls minimizing guilty program testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT detailed listing: executing program 0: socket$packet(0x11, 0x2, 0x300) r0 = socket$inet_udp(0x2, 0x2, 0x0) r1 = fcntl$dupfd(r0, 0x0, r0) connect$inet(r1, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r1, 0x0, 0x0) (async) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) write$P9_RWSTAT(r2, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) socket$inet_udp(0x2, 0x2, 0x0) connect$inet(0xffffffffffffffff, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(0xffffffffffffffff, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = fcntl$dupfd(0xffffffffffffffff, 0x0, 0xffffffffffffffff) connect$inet(r1, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r1, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$inet_udp(0x2, 0x2, 0x0) r1 = fcntl$dupfd(r0, 0x0, r0) connect$inet(r1, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r1, 0x0, 0x0) (async) setsockopt$packet_tx_ring(0xffffffffffffffff, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) write$P9_RWSTAT(r2, 0x0, 0x0) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, 0x0, 0x0) (async) write$P9_RWSTAT(r2, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) write$P9_RWSTAT(r2, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r2, 0x0, 0x0) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r2, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, 0x0, 0x0) (rerun: 64) program did not crash testing program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r2, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) program did not crash extracting C reproducer testing compiled C program (duration=1m22.664573344s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring program crashed: DATA RACE in packetmmap.(*ringBuffer).init a never seen crash title: DATA RACE in packetmmap.(*ringBuffer).init, ignore simplifying guilty program options testing program (duration=1m22.664573344s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:10 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$packet-socket$inet_udp-fcntl$dupfd-connect$inet-write$P9_RWSTAT-setsockopt$packet_tx_ring detailed listing: executing program 0: r0 = socket$packet(0x11, 0x2, 0x300) r1 = socket$inet_udp(0x2, 0x2, 0x0) r2 = fcntl$dupfd(r1, 0x0, r1) connect$inet(r2, &(0x7f0000000000)={0x2, 0xffff, @empty}, 0x10) (async) write$P9_RWSTAT(r2, 0x0, 0x0) (async) setsockopt$packet_tx_ring(r0, 0x107, 0x5, &(0x7f00000000c0)=@req3={0x8000, 0x6, 0x8000, 0x6}, 0x1c) (rerun: 64) program did not crash reproducing took 19m44.720570957s repro crashed as (corrupted=false): WARNING: DATA RACE Read at 0x00c0009e63e0 by goroutine 2879: gvisor.dev/gvisor/pkg/sentry/socket/netstack/packetmmap.(*Endpoint).HandlePacket() pkg/sentry/socket/netstack/packetmmap/endpoint.go:223 +0x39a gvisor.dev/gvisor/pkg/tcpip/transport/packet.(*endpoint).HandlePacket() pkg/tcpip/transport/packet/endpoint.go:495 +0x161 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverLinkPacket.func2() pkg/tcpip/stack/nic.go:826 +0x391 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetEndpointList).forEach() pkg/tcpip/stack/nic.go:147 +0x142 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverLinkPacket() pkg/tcpip/stack/nic.go:841 +0x2e6 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writeRawPacket() pkg/tcpip/stack/nic.go:429 +0xb0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket() pkg/tcpip/stack/nic.go:414 +0x6a gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket() pkg/tcpip/stack/nic.go:375 +0x22b gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting() pkg/tcpip/network/ipv4/ipv4.go:608 +0x616 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket() pkg/tcpip/network/ipv4/ipv4.go:558 +0x2dd gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket() pkg/tcpip/network/ipv4/ipv4.go:526 +0x244 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket() pkg/tcpip/stack/route.go:507 +0x172 gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*WriteContext).WritePacket() pkg/tcpip/transport/internal/network/endpoint.go:359 +0x3ca gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write() pkg/tcpip/transport/udp/endpoint.go:517 +0x593 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write() pkg/tcpip/transport/udp/endpoint.go:362 +0x91 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).Write() pkg/sentry/socket/netstack/netstack.go:546 +0x4e5 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write() pkg/sentry/vfs/file_description.go:682 +0x144 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.write() pkg/sentry/syscalls/linux/sys_read_write.go:347 +0xa4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write() pkg/sentry/syscalls/linux/sys_read_write.go:316 +0x38e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:143 +0xb9e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:323 +0x84 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:283 +0xc6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:258 +0x549 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:269 +0x2274 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:97 +0x41a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1() pkg/sentry/kernel/task_start.go:412 +0x44 Previous write at 0x00c0009e63e0 by goroutine 2882: gvisor.dev/gvisor/pkg/sentry/socket/netstack/packetmmap.(*Endpoint).Init() pkg/sentry/socket/netstack/packetmmap/endpoint.go:108 +0x2e4 gvisor.dev/gvisor/pkg/sentry/socket/netstack.setSockOptPacket() pkg/sentry/socket/netstack/netstack.go:2974 +0x907 gvisor.dev/gvisor/pkg/sentry/socket/netstack.SetSockOpt() pkg/sentry/socket/netstack/netstack.go:1940 +0x365 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).SetSockOpt() pkg/sentry/socket/netstack/netstack.go:672 +0x6a9 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.SetSockOpt() pkg/sentry/syscalls/linux/sys_socket.go:551 +0x46b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:143 +0xb9e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:323 +0x84 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:283 +0xc6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:258 +0x549 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:269 +0x2274 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:97 +0x41a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1() pkg/sentry/kernel/task_start.go:412 +0x44 final repro crashed as (corrupted=false): WARNING: DATA RACE Read at 0x00c0009e63e0 by goroutine 2879: gvisor.dev/gvisor/pkg/sentry/socket/netstack/packetmmap.(*Endpoint).HandlePacket() pkg/sentry/socket/netstack/packetmmap/endpoint.go:223 +0x39a gvisor.dev/gvisor/pkg/tcpip/transport/packet.(*endpoint).HandlePacket() pkg/tcpip/transport/packet/endpoint.go:495 +0x161 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverLinkPacket.func2() pkg/tcpip/stack/nic.go:826 +0x391 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetEndpointList).forEach() pkg/tcpip/stack/nic.go:147 +0x142 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverLinkPacket() pkg/tcpip/stack/nic.go:841 +0x2e6 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writeRawPacket() pkg/tcpip/stack/nic.go:429 +0xb0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket() pkg/tcpip/stack/nic.go:414 +0x6a gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket() pkg/tcpip/stack/nic.go:375 +0x22b gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting() pkg/tcpip/network/ipv4/ipv4.go:608 +0x616 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket() pkg/tcpip/network/ipv4/ipv4.go:558 +0x2dd gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket() pkg/tcpip/network/ipv4/ipv4.go:526 +0x244 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket() pkg/tcpip/stack/route.go:507 +0x172 gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*WriteContext).WritePacket() pkg/tcpip/transport/internal/network/endpoint.go:359 +0x3ca gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write() pkg/tcpip/transport/udp/endpoint.go:517 +0x593 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write() pkg/tcpip/transport/udp/endpoint.go:362 +0x91 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).Write() pkg/sentry/socket/netstack/netstack.go:546 +0x4e5 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write() pkg/sentry/vfs/file_description.go:682 +0x144 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.write() pkg/sentry/syscalls/linux/sys_read_write.go:347 +0xa4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write() pkg/sentry/syscalls/linux/sys_read_write.go:316 +0x38e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:143 +0xb9e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:323 +0x84 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:283 +0xc6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:258 +0x549 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:269 +0x2274 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:97 +0x41a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1() pkg/sentry/kernel/task_start.go:412 +0x44 Previous write at 0x00c0009e63e0 by goroutine 2882: gvisor.dev/gvisor/pkg/sentry/socket/netstack/packetmmap.(*Endpoint).Init() pkg/sentry/socket/netstack/packetmmap/endpoint.go:108 +0x2e4 gvisor.dev/gvisor/pkg/sentry/socket/netstack.setSockOptPacket() pkg/sentry/socket/netstack/netstack.go:2974 +0x907 gvisor.dev/gvisor/pkg/sentry/socket/netstack.SetSockOpt() pkg/sentry/socket/netstack/netstack.go:1940 +0x365 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).SetSockOpt() pkg/sentry/socket/netstack/netstack.go:672 +0x6a9 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.SetSockOpt() pkg/sentry/syscalls/linux/sys_socket.go:551 +0x46b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:143 +0xb9e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:323 +0x84 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:283 +0xc6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:258 +0x549 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:269 +0x2274 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:97 +0x41a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1() pkg/sentry/kernel/task_start.go:412 +0x44