panic: runtime error: index out of range [0] with length 0 goroutine 496778 [running]: panic(0x1a069e0, 0xc0081702d0) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000a738b8 sp=0xc000a737f0 pc=0x43a6c5 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc000a73900 sp=0xc000a738b8 pc=0x437a25 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc00b4b8368, 0x31584d8, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/link/tun/device.go:214 +0x89d fp=0xc000a73a80 sp=0xc000a73900 pc=0xfd22bd gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc00b4b8300, 0x1dc0090, 0xc00a34fa70, 0x1dba1a0, 0xc00ad6e000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:146 +0x237 fp=0xc000a73ba8 sp=0xc000a73a80 pc=0x1576977 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).PWrite(0xc00b4b8300, 0x1dc0090, 0xc00a34fa70, 0x1dba1a0, 0xc00ad6e000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:137 +0xef fp=0xc000a73c78 sp=0xc000a73ba8 pc=0x15766cf gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).PWrite(0xc00b4b8300, 0x1dc0090, 0xc00a34fa70, 0x1dba1a0, 0xc00ad6e000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/vfs/file_description.go:645 +0x15a fp=0xc000a73d60 sp=0xc000a73c78 pc=0x96163a gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getAIOCallback.func1(0x1dc0090, 0xc00a34fa70) pkg/sentry/syscalls/linux/vfs2/aio.go:174 +0x5ae fp=0xc000a73fa0 sp=0xc000a73d60 pc=0x1498a6e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO.func1(0xc00472b1f0, 0x1dc0090, 0xc00a34fa70, 0xc00038e8ec) pkg/sentry/kernel/aio.go:30 +0x48 fp=0xc000a73fc0 sp=0xc000a73fa0 pc=0xdb4ca8 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000a73fc8 sp=0xc000a73fc0 pc=0x477541 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO pkg/sentry/kernel/aio.go:29 +0x14c