panic: Incrementing non-positive count 0xc000913180 on stack.PacketBuffer goroutine 279 [running]: panic(0x1212980, 0xc000744270) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000c01490 sp=0xc000c013c8 pc=0x437c65 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetBufferRefs).IncRef(0xc000913180) bazel-out/k8-fastbuild-ST-3ea255117c10/bin/pkg/tcpip/stack/packet_buffer_refs.go:90 +0x18c fp=0xc000c01508 sp=0xc000c01490 pc=0x9e928c gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).HandlePacket(0xc0007ca600, 0x4e21, 0xc00047b390, 0x10, 0x4e21, 0xc00047b380, 0x10, 0xc000913180) pkg/tcpip/transport/udp/endpoint.go:1113 +0x565 fp=0xc000c046c8 sp=0xc000c01508 pc=0xc327e5 gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc00090adb0, 0x4e21, 0xc00047b390, 0x10, 0x4e21, 0xc00047b380, 0x10, 0xc000913180, 0xc00047b390) pkg/tcpip/stack/transport_demuxer.go:223 +0x28a fp=0xc000c04750 sp=0xc000c046c8 pc=0x9fb0aa gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc00090c2a0, 0xc000000011, 0xc000913180, 0x4e21, 0xc00047b390, 0x10, 0x4e21, 0xc00047b380, 0x10, 0xc000b0a858) pkg/tcpip/stack/transport_demuxer.go:736 +0x2cb fp=0xc000c047f0 sp=0xc000c04750 pc=0x9fdeeb gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc00000a1e0, 0xc000000011, 0xc000913180, 0x0) pkg/tcpip/stack/nic.go:1040 +0x305 fp=0xc000c048f8 sp=0xc000c047f0 pc=0x9e33c5 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeaders(0xc000bc2000, 0xc000bde08e, 0x30, 0x30, 0xc000913880, 0x15f9a00, 0xc000408300, 0x1ff800c0) pkg/tcpip/network/ipv6/ipv6.go:1760 +0x19ff fp=0xc000c05250 sp=0xc000c048f8 pc=0xc1819f gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleValidatedPacket(0xc000bc2000, 0xc000bde08e, 0x30, 0x30, 0xc000913880, 0x142b5ca, 0x2) pkg/tcpip/network/ipv6/ipv6.go:1319 +0x365 fp=0xc000c054b0 sp=0xc000c05250 pc=0xc16345 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).HandlePacket(0xc000bc2000, 0xc000913880) pkg/tcpip/network/ipv6/ipv6.go:1209 +0x1a5 fp=0xc000c05710 sp=0xc000c054b0 pc=0xc158c5 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00000a1e0, 0xc00047b2e8, 0x6, 0xc00047b2f0, 0x6, 0x86dd, 0xc000913880) pkg/tcpip/stack/nic.go:938 +0x3ae fp=0xc000c057c8 sp=0xc000c05710 pc=0x9e2c6e gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000662230, 0xc00047b2e8, 0x6, 0xc00047b2f0, 0x6, 0x86dd, 0xc000913880) pkg/tcpip/link/nested/nested.go:63 +0x104 fp=0xc000c05828 sp=0xc000c057c8 pc=0xcb90c4 gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc000662230, 0x0, 0x0, 0x0, 0x0, 0x86dd, 0xc000913880) pkg/tcpip/link/ethernet/ethernet.go:82 +0x1bb fp=0xc000c05898 sp=0xc000c05828 pc=0xf9d1fb gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WriteRawPacket(0xc000744160, 0xc000913500, 0x0, 0x0) pkg/tcpip/link/loopback/loopback.go:125 +0x12f fp=0xc000c05908 sp=0xc000c05898 pc=0xf9ddcf gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePackets(0xc000744160, 0xc000913500, 0xc000913500, 0x0, 0x0, 0xc0000086dd) pkg/tcpip/link/loopback/loopback.go:91 +0x90 fp=0xc000c05948 sp=0xc000c05908 pc=0xf9dbf0 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePackets(...) pkg/tcpip/link/nested/nested.go:120 gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).WritePackets(0xc000662230, 0xc000913500, 0xc000913500, 0x0, 0x0, 0x0) pkg/tcpip/link/ethernet/ethernet.go:108 +0x10e fp=0xc000c059a8 sp=0xc000c05948 pc=0xf9d40e gvisor.dev/gvisor/pkg/tcpip/stack.(*delegatingQueueingDiscipline).WritePacket(0xc000744170, 0xc000913500, 0x0, 0xc000913500) pkg/tcpip/stack/nic.go:166 +0x75 fp=0xc000c059f8 sp=0xc000c059a8 pc=0x9df275 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc00000a1e0, 0xc000913500, 0xc00047b250, 0x10) pkg/tcpip/stack/nic.go:448 +0xbf fp=0xc000c05a40 sp=0xc000c059f8 pc=0x9e0b3f gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc00000a1e0, 0xc000392b40, 0xc000913500, 0x0, 0x0) pkg/tcpip/stack/nic.go:407 +0x229 fp=0xc000c05b80 sp=0xc000c05a40 pc=0x9e08e9 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket.func1(0xc000913500, 0xc000bde00e, 0x28) pkg/tcpip/network/ipv6/ipv6.go:947 +0x52 fp=0xc000c05bb8 sp=0xc000c05b80 pc=0xc29172 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleFragments(0xc000bc2000, 0xc000392b40, 0xc00000ffca, 0xc000912a80, 0x11, 0xc000c05d68, 0x2, 0x1, 0x0, 0x0) pkg/tcpip/network/ipv6/ipv6.go:837 +0x270 fp=0xc000c05cf0 sp=0xc000c05bb8 pc=0xc13a30 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc000bc2000, 0xc000392b40, 0xc000912a80, 0x11, 0x10, 0x4000000001) pkg/tcpip/network/ipv6/ipv6.go:941 +0x2ec fp=0xc000c05f40 sp=0xc000c05cf0 pc=0xc1432c gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc000bc2000, 0xc000392b40, 0x4000000011, 0xc000912a80, 0x9e590e, 0x15ebb28) pkg/tcpip/network/ipv6/ipv6.go:892 +0x2fd fp=0xc000c05fe0 sp=0xc000c05f40 pc=0xc13f1d gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc000392b40, 0x4000000011, 0xc000912a80, 0xc000b0c110, 0xc000912a80) pkg/tcpip/stack/route.go:572 +0xd7 fp=0xc000c06020 sp=0xc000c05fe0 pc=0x9ed7f7 gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*WriteContext).WritePacket(0xc000b0c188, 0xc000912a80, 0x0, 0xc000b0c0f8, 0x8) pkg/tcpip/transport/internal/network/endpoint.go:295 +0xd6 fp=0xc000c06058 sp=0xc000c06020 pc=0xba2cd6 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc0007ca600, 0x15dd108, 0xc0006622d0, 0xc000026280, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:563 +0x4b5 fp=0xc000c07608 sp=0xc000c06058 pc=0xc2fd15 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write(0xc0007ca600, 0x15dd108, 0xc0006622d0, 0xc000026280, 0xc000000000, 0x10, 0x4e21, 0xa8000a) pkg/tcpip/transport/udp/endpoint.go:392 +0x72 fp=0xc000c07658 sp=0xc000c07608 pc=0xc2ec92 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc000bc6070, 0xc0009c6000, 0x15f6b80, 0xc0009be000, 0xc000908700, 0x8, 0x0, 0xfff1, 0x100, 0xc00058a240, ...) pkg/sentry/socket/netstack/netstack.go:3915 +0x243 fp=0xc000c077b8 sp=0xc000c07658 pc=0xc4f623 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendSingleMsg(0xc0009c6000, 0x7f461a9b0a70, 0xc000bc6000, 0xc000bc6000, 0x20000040, 0x0, 0x524616, 0x3d, 0x7096e) pkg/sentry/syscalls/linux/vfs2/socket.go:1437 +0x555 fp=0xc000c07b18 sp=0xc000c077b8 pc=0xf777b5 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendMsg(0xc0009c6000, 0x3, 0x20000040, 0x0, 0x55b935695e40, 0x55b935695e40, 0x55b935695e40, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:1263 +0x23c fp=0xc000c07bb8 sp=0xc000c07b18 pc=0xf7681c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0009c6000, 0x2e, 0x3, 0x20000040, 0x0, 0x55b935695e40, 0x55b935695e40, 0x55b935695e40, 0x0, 0x14266c0, ...) pkg/sentry/kernel/task_syscall.go:115 +0x199 fp=0xc000c07c78 sp=0xc000c07bb8 pc=0xa84959 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0009c6000, 0x2e, 0x3, 0x20000040, 0x0, 0x55b935695e40, 0x55b935695e40, 0x55b935695e40, 0x55b935695e40, 0x55b935695e40) pkg/sentry/kernel/task_syscall.go:290 +0x70 fp=0xc000c07d00 sp=0xc000c07c78 pc=0xa85c30 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0009c6000, 0x2e, 0x3, 0x20000040, 0x0, 0x55b935695e40, 0x55b935695e40, 0x55b935695e40, 0xc0009c8000, 0x160d7c8) pkg/sentry/kernel/task_syscall.go:237 +0xb4 fp=0xc000c07d60 sp=0xc000c07d00 pc=0xa85714 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0009c6000, 0x2, 0xc0009c6000) pkg/sentry/kernel/task_syscall.go:204 +0x198 fp=0xc000c07e30 sp=0xc000c07d60 pc=0xa84ff8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0009c6000, 0x15cf340, 0x0) pkg/sentry/kernel/task_run.go:294 +0xd9a fp=0xc000c07f68 sp=0xc000c07e30 pc=0xa77f1a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0009c6000, 0x10) pkg/sentry/kernel/task_run.go:98 +0x1b9 fp=0xc000c07fd0 sp=0xc000c07f68 pc=0xa76cd9 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000c07fd8 sp=0xc000c07fd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:398 +0x116