panic: runtime error: index out of range [0] with length 0 goroutine 207807 [running]: panic(0x1bacee0, 0xc013ed0a80) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000e5d048 sp=0xc000e5cf80 pc=0x43a6c5 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc000e5d090 sp=0xc000e5d048 pc=0x437a25 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc012ef45a8, 0x33b8d18, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/link/tun/device.go:261 +0x9fc fp=0xc000e5d1d0 sp=0xc000e5d090 pc=0x10fb81c gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc012ef4540, 0x1ebfad8, 0xc003b10a80, 0x1eba080, 0xc0035f7000, 0x0, 0x1, 0x0, 0x0, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:177 +0x1f2 fp=0xc000e5d280 sp=0xc000e5d1d0 pc=0x170f792 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).PWrite(0xc012ef4540, 0x1ebfad8, 0xc003b10a80, 0x1eba080, 0xc0035f7000, 0x0, 0x1, 0x0, 0x0, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:165 +0x107 fp=0xc000e5d350 sp=0xc000e5d280 pc=0x170f527 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).PWrite(0xc012ef4540, 0x1ebfad8, 0xc003b10a80, 0x1eba080, 0xc0035f7000, 0x0, 0x1, 0x0, 0x0, 0x100, ...) pkg/sentry/vfs/file_description.go:732 +0x1b3 fp=0xc000e5d430 sp=0xc000e5d350 pc=0x9b40f3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.pwrite(0xc003b10a80, 0xc012ef4540, 0x1eba080, 0xc0035f7000, 0x0, 0x1, 0x0, 0x0, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:631 +0x113 fp=0xc000e5d608 sp=0xc000e5d430 pc=0x15e60b3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Pwrite64(0xc003b10a80, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:528 +0x4c9 fp=0xc000e5d7d8 sp=0xc000e5d608 pc=0x15e4ea9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc003b10a80, 0x12, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000e5da40, 0xc001e924a0, ...) pkg/sentry/kernel/task_syscall.go:116 +0x595 fp=0xc000e5d9b8 sp=0xc000e5d7d8 pc=0xe70835 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc003b10a80, 0x12, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc003b1135f, 0xc003b10a80) pkg/sentry/kernel/task_syscall.go:291 +0xd2 fp=0xc000e5daa0 sp=0xc000e5d9b8 pc=0xe72352 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc003b10a80, 0x12, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000000000, 0xc000e5dbb8) pkg/sentry/kernel/task_syscall.go:238 +0x157 fp=0xc000e5db48 sp=0xc000e5daa0 pc=0xe71a17 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc003b10a80, 0x1, 0xc000000005) pkg/sentry/kernel/task_syscall.go:205 +0x2b1 fp=0xc000e5dcc0 sp=0xc000e5db48 pc=0xe70f91 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc003b10a80, 0x3, 0x0) pkg/sentry/kernel/task_run.go:296 +0x150b fp=0xc000e5dee0 sp=0xc000e5dcc0 pc=0xe5a80b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc003b10a80, 0x1144) pkg/sentry/kernel/task_run.go:100 +0x2f2 fp=0xc000e5dfd0 sp=0xc000e5dee0 pc=0xe58b12 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000e5dfd8 sp=0xc000e5dfd0 pc=0x477541 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:400 +0x1da