panic: runtime error: index out of range [0] with length 0 goroutine 322 [running]: panic(0x1a069e0, 0xc000351158) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc0002c08b8 sp=0xc0002c07f0 pc=0x43a6c5 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc0002c0900 sp=0xc0002c08b8 pc=0x437a25 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc00029e1e8, 0x31584d8, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/link/tun/device.go:214 +0x89d fp=0xc0002c0a80 sp=0xc0002c0900 pc=0xfd22bd gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc00029e180, 0x1dc0090, 0xc0002111e0, 0x1dba1a0, 0xc000690000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:146 +0x237 fp=0xc0002c0ba8 sp=0xc0002c0a80 pc=0x1576977 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).PWrite(0xc00029e180, 0x1dc0090, 0xc0002111e0, 0x1dba1a0, 0xc000690000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:137 +0xef fp=0xc0002c0c78 sp=0xc0002c0ba8 pc=0x15766cf gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).PWrite(0xc00029e180, 0x1dc0090, 0xc0002111e0, 0x1dba1a0, 0xc000690000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/vfs/file_description.go:645 +0x15a fp=0xc0002c0d60 sp=0xc0002c0c78 pc=0x96163a gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getAIOCallback.func1(0x1dc0090, 0xc0002111e0) pkg/sentry/syscalls/linux/vfs2/aio.go:174 +0x5ae fp=0xc0002c0fa0 sp=0xc0002c0d60 pc=0x1498a6e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO.func1(0xc0004ba8c0, 0x1dc0090, 0xc0002111e0, 0xc00058e28c) pkg/sentry/kernel/aio.go:30 +0x48 fp=0xc0002c0fc0 sp=0xc0002c0fa0 pc=0xdb4ca8 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0002c0fc8 sp=0xc0002c0fc0 pc=0x477541 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO pkg/sentry/kernel/aio.go:29 +0x14c