panic: Incrementing non-positive count 0xc001ddf880 on stack.PacketBuffer goroutine 7812 [running]: panic(0x18e00c0, 0xc000282780) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc0020c0288 sp=0xc0020c01c0 pc=0x43a6c5 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetBufferRefs).IncRef(0xc001ddf880) bazel-out/k8-fastbuild-ST-0995fa9490c1/bin/pkg/tcpip/stack/packet_buffer_refs.go:80 +0x18c fp=0xc0020c0300 sp=0xc0020c0288 pc=0xcb4c6c gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).HandlePacket(0xc002a52c00, 0x4e21, 0xc000cfacc0, 0x10, 0x4e21, 0xc000cfaca0, 0x10, 0xc001ddf880) pkg/tcpip/transport/udp/endpoint.go:924 +0x94b fp=0xc0020c35e8 sp=0xc0020c0300 pc=0xfc82cb gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc000b57680, 0x4e21, 0xc000cfacc0, 0x10, 0x4e21, 0xc000cfaca0, 0x10, 0xc001ddf880, 0xc001ddf898) pkg/tcpip/stack/transport_demuxer.go:185 +0x4bf fp=0xc0020c3780 sp=0xc0020c35e8 pc=0xccaa1f gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc0002390e0, 0xc000000011, 0xc001ddf880, 0x4e21, 0xc000cfacc0, 0x10, 0x4e21, 0xc000cfaca0, 0x10, 0xc001c387b6) pkg/tcpip/stack/transport_demuxer.go:595 +0x36b fp=0xc0020c3948 sp=0xc0020c3780 pc=0xcce64b gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc00000c1e0, 0xc000000011, 0xc001ddf880, 0x0) pkg/tcpip/stack/nic.go:859 +0x3fb fp=0xc0020c3ae8 sp=0xc0020c3948 pc=0xcac53b gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeaders(0xc0007b2000, 0xc001c3880e, 0x30, 0x30, 0xc001ddee00, 0x1dbd300, 0xc000592680, 0x11) pkg/tcpip/network/ipv6/ipv6.go:1483 +0x771 fp=0xc0020c4530 sp=0xc0020c3ae8 pc=0xfa22b1 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleValidatedPacket(0xc0007b2000, 0xc001c3880e, 0x30, 0x30, 0xc001ddee00, 0x1b00150, 0x2) pkg/tcpip/network/ipv6/ipv6.go:1115 +0x3f6 fp=0xc0020c47c0 sp=0xc0020c4530 pc=0xfa16d6 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).HandlePacket(0xc0007b2000, 0xc001ddee00) pkg/tcpip/network/ipv6/ipv6.go:1030 +0x1ed fp=0xc0020c4a60 sp=0xc0020c47c0 pc=0xfa0aad gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00000c1e0, 0xc000cfac00, 0x6, 0xc000cfac06, 0x6, 0x86dd, 0xc001ddee00) pkg/tcpip/stack/nic.go:775 +0x474 fp=0xc0020c4b98 sp=0xc0020c4a60 pc=0xcabc54 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc00020e730, 0xc000cfac00, 0x6, 0xc000cfac06, 0x6, 0x86dd, 0xc001ddee00) pkg/tcpip/link/nested/nested.go:59 +0xf0 fp=0xc0020c4bf8 sp=0xc0020c4b98 pc=0x107e8b0 gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc00020e730, 0x0, 0x0, 0x0, 0x0, 0x86dd, 0xc001ddee00) pkg/tcpip/link/ethernet/ethernet.go:71 +0x225 fp=0xc0020c4c90 sp=0xc0020c4bf8 pc=0x1499925 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WriteRawPacket(0xc00078c050, 0xc001336000, 0x0, 0x0) pkg/tcpip/link/loopback/loopback.go:109 +0x1dd fp=0xc0020c4d58 sp=0xc0020c4c90 pc=0x149a9bd gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePackets(0xc00078c050, 0xc001336000, 0xc001336000, 0x0, 0x0, 0xc0000086dd) pkg/tcpip/link/loopback/loopback.go:81 +0x87 fp=0xc0020c4da8 sp=0xc0020c4d58 pc=0x149a727 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePackets(...) pkg/tcpip/link/nested/nested.go:107 gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).WritePackets(0xc00020e730, 0xc001336000, 0xc001336000, 0x6, 0x0, 0x0) pkg/tcpip/link/ethernet/ethernet.go:91 +0x1b7 fp=0xc0020c4e38 sp=0xc0020c4da8 pc=0x1499bf7 gvisor.dev/gvisor/pkg/tcpip/stack.(*delegatingQueueingDiscipline).WritePacket(0xc00078c060, 0xc001336000, 0x0, 0xc001336000) pkg/tcpip/stack/nic.go:152 +0x89 fp=0xc0020c4e98 sp=0xc0020c4e38 pc=0xca7529 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc00000c1e0, 0xc001336000, 0xc000cfab50, 0x10) pkg/tcpip/stack/nic.go:392 +0x11a fp=0xc0020c4ef8 sp=0xc0020c4e98 pc=0xca95fa gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc00000c1e0, 0xc002b8a280, 0xc001336000, 0x1daf018, 0xc000cfabe8) pkg/tcpip/stack/nic.go:355 +0x289 fp=0xc0020c5058 sp=0xc0020c4ef8 pc=0xca9289 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket.func1(0xc001336000, 0xc001c3878e, 0x28) pkg/tcpip/network/ipv6/ipv6.go:819 +0x83 fp=0xc0020c50b0 sp=0xc0020c5058 pc=0xfbaee3 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleFragments(0xc0007b2000, 0xc002b8a280, 0xc00000ffca, 0xc00238d880, 0x11, 0xc0020c5330, 0x2, 0xc000282601, 0x0, 0x0) pkg/tcpip/network/ipv6/ipv6.go:733 +0x2d1 fp=0xc0020c5268 sp=0xc0020c50b0 pc=0xf9e771 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc0007b2000, 0xc002b8a280, 0xc00238d880, 0x11, 0x10, 0x4000000001) pkg/tcpip/network/ipv6/ipv6.go:814 +0x3ce fp=0xc0020c5508 sp=0xc0020c5268 pc=0xf9f24e gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc0007b2000, 0xc002b8a280, 0x4000000011, 0xc00238d880, 0x8, 0x8) pkg/tcpip/network/ipv6/ipv6.go:777 +0x3ba fp=0xc0020c5600 sp=0xc0020c5508 pc=0xf9ed1a gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc002b8a280, 0x4000000011, 0xc00238d880, 0xfff94e214e21, 0x6) pkg/tcpip/stack/route.go:465 +0x11c fp=0xc0020c5668 sp=0xc0020c5600 pc=0xcb9e7c gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*WriteContext).WritePacket(0xc000647920, 0xc00238d880, 0x0, 0xc000647780, 0x8) pkg/tcpip/transport/internal/network/endpoint.go:262 +0x19b fp=0xc0020c56c0 sp=0xc0020c5668 pc=0xf03a1b gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc002a52c00, 0x1da0088, 0xc0013af0e0, 0xc00129c600, 0xc000000000, 0x0, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:469 +0x52b fp=0xc0020c6d80 sp=0xc0020c56c0 pc=0xfc4a4b gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write(0xc002a52c00, 0x1da0088, 0xc0013af0e0, 0xc00129c600, 0xc000000000, 0x10, 0xc002bd4e21, 0xc00285000a) pkg/tcpip/transport/udp/endpoint.go:334 +0x85 fp=0xc0020c6de8 sp=0xc0020c6d80 pc=0xfc3865 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc002a22930, 0xc001b67500, 0x1dba1a0, 0xc002bd0000, 0xc001d1c580, 0x8, 0x0, 0xfff1, 0x100, 0xc002b880e0, ...) pkg/sentry/socket/netstack/netstack.go:3051 +0x2d4 fp=0xc0020c6fb0 sp=0xc0020c6de8 pc=0xfede74 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketVFS2).SendMsg(0xc002a228c0, 0xc001b67500, 0x1dba1a0, 0xc002bd0000, 0xc001d1c580, 0x8, 0x0, 0xfff1, 0x100, 0xc002b880e0, ...) :1 +0x19e fp=0xc0020c71c0 sp=0xc0020c6fb0 pc=0x100a81e gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendSingleMsg(0xc001b67500, 0x7f9ae00fe618, 0xc002a228c0, 0xc002a228c0, 0x20000040, 0x0, 0x0, 0xc000382030, 0x0) pkg/sentry/syscalls/linux/vfs2/socket.go:1112 +0x595 fp=0xc0020c7640 sp=0xc0020c71c0 pc=0x146fc95 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendMsg(0xc001b67500, 0x3, 0x20000040, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:986 +0x2cc fp=0xc0020c7728 sp=0xc0020c7640 pc=0x146ee4c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001b67500, 0x2e, 0x3, 0x20000040, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x195 fp=0xc0020c79b8 sp=0xc0020c7728 pc=0xd8ceb5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001b67500, 0x2e, 0x3, 0x20000040, 0x0, 0x0, 0x0, 0x0, 0xc001b67ddf, 0xc001b67500) pkg/sentry/kernel/task_syscall.go:238 +0xb4 fp=0xc0020c7a90 sp=0xc0020c79b8 pc=0xd8e8d4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc001b67500, 0x2e, 0x3, 0x20000040, 0x0, 0x0, 0x0, 0x0, 0x1ffffffff, 0xc000000000) pkg/sentry/kernel/task_syscall.go:198 +0x10f fp=0xc0020c7b38 sp=0xc0020c7a90 pc=0xd8e1cf gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001b67500, 0x2, 0xc001b67500) pkg/sentry/kernel/task_syscall.go:173 +0x214 fp=0xc0020c7ca8 sp=0xc0020c7b38 pc=0xd8d954 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc001b67500, 0x1d923e0, 0x0) pkg/sentry/kernel/task_run.go:254 +0x1287 fp=0xc0020c7ed8 sp=0xc0020c7ca8 pc=0xd79b87 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001b67500, 0x1cf) pkg/sentry/kernel/task_run.go:95 +0x353 fp=0xc0020c7fd0 sp=0xc0020c7ed8 pc=0xd78133 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0020c7fd8 sp=0xc0020c7fd0 pc=0x477541 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:342 +0x1a5