panic: invalid allocation length: 0x0 goroutine 13872 [running]: panic({0x10e8c80, 0xc0014d2380}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc0008ad170 sp=0xc0008ad0b0 pc=0x435148 gvisor.dev/gvisor/pkg/sentry/pgalloc.(*MemoryFile).Allocate(0xc002d4f200, 0xc002d57500, {0xc0008ad2b8, 0x94b2b1}) pkg/sentry/pgalloc/pgalloc.go:417 +0x5f4 fp=0xc0008ad280 sp=0xc0008ad170 pc=0x81b614 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsInternalLocked(0xc003224000, {0x14ca230, 0xc002d57500}, {0xc003fce800, 0x2}, {0xc0008ad718, 0x9022d8}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:243 +0x1949 fp=0xc0008ad688 sp=0xc0008ad280 pc=0x8e5629 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsLocked(0xc002d57500, {0x14ca230, 0xc002d57500}, {0xc003fce800, 0xa28966}, {0xc002d57500, 0xc0008ad810}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:125 +0x10e fp=0xc0008ad728 sp=0xc0008ad688 pc=0x8e374e gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc003224000, {0x14ca230, 0xc002d57500}, {0xc0008ad860, 0xc0007feb60}, {0xc0, 0x30, 0x20}, 0x3, 0x1326e60) pkg/sentry/mm/io.go:542 +0x289 fp=0xc0008ad810 sp=0xc0008ad728 pc=0x8dd229 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).EnsurePMAsExist(0x56193c728f68, {0x14ca230, 0xc002d57500}, 0x0, 0xc001105b60, {0x0, 0xd3}) pkg/sentry/mm/io.go:322 +0xab fp=0xc0008ad858 sp=0xc0008ad810 pc=0x8dbd2b gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getdents(0xc002d57500, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}, 0x0) pkg/sentry/syscalls/linux/vfs2/getdents.go:53 +0x177 fp=0xc0008ad920 sp=0xc0008ad858 pc=0xd91bf7 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Getdents64(0xc002d57500, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/getdents.go:36 +0x45 fp=0xc0008ad970 sp=0xc0008ad920 pc=0xd91a45 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc002d57500, 0xd9, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x7db fp=0xc0008adcb8 sp=0xc0008ad970 pc=0xa4bf7b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc002d57500, 0x0, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x57 fp=0xc0008add28 sp=0xc0008adcb8 pc=0xa4d597 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00286f520, 0x14da818, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x85 fp=0xc0008add88 sp=0xc0008add28 pc=0xa4d145 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc002d57500) pkg/sentry/kernel/task_syscall.go:257 +0x3a5 fp=0xc0008ade50 sp=0xc0008add88 pc=0xa4ce05 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc002737c00, 0xc002d57500) pkg/sentry/kernel/task_run.go:247 +0x112a fp=0xc0008adf70 sp=0xc0008ade50 pc=0xa3ec0a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc002d57500) pkg/sentry/kernel/task_run.go:90 +0x1ec fp=0xc0008adfc8 sp=0xc0008adf70 pc=0xa3d42c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·239() pkg/sentry/kernel/task_start.go:364 +0x26 fp=0xc0008adfe0 sp=0xc0008adfc8 pc=0xa4a426 runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0008adfe8 sp=0xc0008adfe0 pc=0x4692a1 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:364 +0xf5