panic: invalid allocation length: 0x0 goroutine 1983 [running]: panic({0x1841c60, 0xc000d8fb50}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc000e9cbf0 sp=0xc000e9cb30 pc=0x437c88 gvisor.dev/gvisor/pkg/sentry/pgalloc.(*MemoryFile).Allocate(0xc0005dbc00, 0x0, {0x46fc2c, 0xc000237598}) pkg/sentry/pgalloc/pgalloc.go:417 +0x77f fp=0xc000e9cd88 sp=0xc000e9cbf0 pc=0xa9ebbf gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsInternalLocked(0xc001246000, {0x1c729f0, 0xc000a4aa80}, {0xc000aaa800, 0x1}, {0x8, 0x470e65}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:243 +0x1e1c fp=0xc000e9d238 sp=0xc000e9cd88 pc=0xbd50dc gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsLocked(0xdbc045, {0x1c729f0, 0xc000a4aa80}, {0xc000aaa800, 0x0}, {0x0, 0x0}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:125 +0x188 fp=0xc000e9d308 sp=0xc000e9d238 pc=0xbd2b68 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc001246000, {0x1c729f0, 0xc000a4aa80}, {0xd77d2b, 0xc000da8490}, {0x5b, 0x13, 0x47}, 0x0, 0x1a87018) pkg/sentry/mm/io.go:542 +0x289 fp=0xc000e9d418 sp=0xc000e9d308 pc=0xbc98a9 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).EnsurePMAsExist(0xc000a4aa80, {0x1c729f0, 0xc000a4aa80}, 0xed8c05, 0xc000a4aa80, {0xe0, 0x58}) pkg/sentry/mm/io.go:322 +0x105 fp=0xc000e9d4a8 sp=0xc000e9d418 pc=0xbc7aa5 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getdents(0xc000a4aa80, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}, 0x3) pkg/sentry/syscalls/linux/vfs2/getdents.go:53 +0x1e5 fp=0xc000e9d5d0 sp=0xc000e9d4a8 pc=0x12a3365 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Getdents(0x451980, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/getdents.go:31 +0x67 fp=0xc000e9d648 sp=0xc000e9d5d0 pc=0x12a3067 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000a4aa80, 0x4e, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0xaf7 fp=0xc000e9da98 sp=0xc000e9d648 pc=0xdf4f97 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000a4aa80, 0x1, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x8e fp=0xc000e9db28 sp=0xc000e9da98 pc=0xdf70ae gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000b7cb40, 0x1, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0xc5 fp=0xc000e9dba0 sp=0xc000e9db28 pc=0xdf69a5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000a4aa80) pkg/sentry/kernel/task_syscall.go:257 +0x4c7 fp=0xc000e9dcb0 sp=0xc000e9dba0 pc=0xdf64c7 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000a4aa80, 0xc000a4aa80) pkg/sentry/kernel/task_run.go:247 +0x19fc fp=0xc000e9ded0 sp=0xc000e9dcb0 pc=0xddfa5c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000a4aa80) pkg/sentry/kernel/task_run.go:90 +0x2c2 fp=0xc000e9dfc0 sp=0xc000e9ded0 pc=0xddd622 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·239() pkg/sentry/kernel/task_start.go:364 +0x3a fp=0xc000e9dfe0 sp=0xc000e9dfc0 pc=0xdf25da runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000e9dfe8 sp=0xc000e9dfe0 pc=0x46e001 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:364 +0x1b1