panic: invalid allocation length: 0x0 goroutine 3117 [running]: panic({0x17130e0, 0xc000dd0b10}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc0007bc988 sp=0xc0007bc8c8 pc=0x437c88 gvisor.dev/gvisor/pkg/sentry/pgalloc.(*MemoryFile).Allocate(0xc00059c000, 0x0, {0x471017, 0xc000211ca0}) pkg/sentry/pgalloc/pgalloc.go:417 +0x5c6 fp=0xc0007bcaf8 sp=0xc0007bc988 pc=0xa3af46 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsInternalLocked(0xc00106b000, {0x1be6590, 0xc001317500}, {0xc001117800, 0xb74d0c}, {0xc00106b080, 0x0}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:243 +0x1df7 fp=0xc0007bd0b8 sp=0xc0007bcaf8 pc=0xb4f7b7 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsLocked(0xc0007bd288, {0x1be6590, 0xc001317500}, {0xc001117800, 0x6729a0}, {0x44a101, 0x159be60}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:125 +0x126 fp=0xc0007bd1a0 sp=0xc0007bd0b8 pc=0xb4d0c6 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc00106b000, {0x1be6590, 0xc001317500}, {0xc000908600, 0xc00105e3c0}, {0x65, 0xe, 0x47}, 0x0, 0x1947168) pkg/sentry/mm/io.go:542 +0x3d3 fp=0xc0007bd330 sp=0xc0007bd1a0 pc=0xb45213 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).EnsurePMAsExist(0xc00106b000, {0x1be6590, 0xc001317500}, 0x0, 0x0, {0x37, 0xe}) pkg/sentry/mm/io.go:322 +0x135 fp=0xc0007bd3a8 sp=0xc0007bd330 pc=0xb43715 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getdents(0xc001317500, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}, 0x37) pkg/sentry/syscalls/linux/vfs2/getdents.go:53 +0x193 fp=0xc0007bd4d0 sp=0xc0007bd3a8 pc=0x119f473 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Getdents(0xc001317500, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/getdents.go:31 +0x56 fp=0xc0007bd548 sp=0xc0007bd4d0 pc=0x119f1b6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001317500, 0x4e, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9d8 fp=0xc0007bda90 sp=0xc0007bd548 pc=0xd3e5b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001317500, 0x46f779, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x6a fp=0xc0007bdb18 sp=0xc0007bda90 pc=0xd401aa gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000f72690, 0x46fc2c, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f fp=0xc0007bdb90 sp=0xc0007bdb18 pc=0xd3fc2f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001317500) pkg/sentry/kernel/task_syscall.go:257 +0x3e7 fp=0xc0007bdc98 sp=0xc0007bdb90 pc=0xd3f847 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc001317500, 0xc001317500) pkg/sentry/kernel/task_run.go:247 +0x16b8 fp=0xc0007bded0 sp=0xc0007bdc98 pc=0xd2ab78 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001317500) pkg/sentry/kernel/task_run.go:90 +0x35b fp=0xc0007bdfc0 sp=0xc0007bded0 pc=0xd28abb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·239() pkg/sentry/kernel/task_start.go:364 +0x3a fp=0xc0007bdfe0 sp=0xc0007bdfc0 pc=0xd3c0da runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0007bdfe8 sp=0xc0007bdfe0 pc=0x46e001 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:364 +0x191