panic: runtime error: index out of range [0] with length 0 goroutine 1209099 [running]: panic(0x1335460, 0xc012f2c048) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc00c81bb08 sp=0xc00c81ba40 pc=0x437c65 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc00c81bb50 sp=0xc00c81bb08 pc=0x434fc5 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc08284c728, 0x2060c68, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/link/tun/device.go:260 +0x734 fp=0xc00c81bc38 sp=0xc00c81bb50 pc=0xc38d54 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc08284c6c0, 0x15fb330, 0xc00cd52a00, 0x15f5760, 0xc00e71a000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:175 +0x1ac fp=0xc00c81bd08 sp=0xc00c81bc38 pc=0x102a4cc gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).PWrite(0xc08284c6c0, 0x15fb330, 0xc00cd52a00, 0x15f5760, 0xc00e71a000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:163 +0x95 fp=0xc00c81bd88 sp=0xc00c81bd08 pc=0x102a2d5 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).PWrite(0xc08284c6c0, 0x15fb330, 0xc00cd52a00, 0x15f5760, 0xc00e71a000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/vfs/file_description.go:731 +0xe2 fp=0xc00c81be28 sp=0xc00c81bd88 pc=0x788b62 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getAIOCallback.func1(0x15fb330, 0xc00cd52a00) pkg/sentry/syscalls/linux/vfs2/aio.go:224 +0x591 fp=0xc00c81bfa0 sp=0xc00c81be28 pc=0xf9b5b1 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO.func1(0xc00b70e0e0, 0x15fb330, 0xc00cd52a00, 0xc0001982ec) pkg/sentry/kernel/aio.go:33 +0x44 fp=0xc00c81bfc0 sp=0xc00c81bfa0 pc=0xaa2b04 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc00c81bfc8 sp=0xc00c81bfc0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO pkg/sentry/kernel/aio.go:31 +0xde