panic: invalid allocation length: 0x0 goroutine 6956 [running]: panic({0x183d9c0, 0xc000d6f370}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc0009acbf0 sp=0xc0009acb30 pc=0x437c88 gvisor.dev/gvisor/pkg/sentry/pgalloc.(*MemoryFile).Allocate(0xc00046c300, 0x0, {0x1f, 0x1}) pkg/sentry/pgalloc/pgalloc.go:417 +0x77f fp=0xc0009acd88 sp=0xc0009acbf0 pc=0xa9b03f gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsInternalLocked(0xc00166c000, {0x1c702f0, 0xc001672a80}, {0xc00116c000, 0x1}, {0x9, 0x470e65}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:243 +0x1e1c fp=0xc0009ad238 sp=0xc0009acd88 pc=0xbd155c gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsLocked(0x44a1d5, {0x1c702f0, 0xc001672a80}, {0xc00116c000, 0x0}, {0x0, 0x46fc2c}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:125 +0x188 fp=0xc0009ad308 sp=0xc0009ad238 pc=0xbcefe8 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc00166c000, {0x1c702f0, 0xc001672a80}, {0xd73b4b, 0xc000a14800}, {0x5b, 0x13, 0x47}, 0x0, 0x1a826a8) pkg/sentry/mm/io.go:542 +0x289 fp=0xc0009ad418 sp=0xc0009ad308 pc=0xbc5d29 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).EnsurePMAsExist(0xc001672a80, {0x1c702f0, 0xc001672a80}, 0xed4b9b, 0x0, {0xe0, 0x31}) pkg/sentry/mm/io.go:322 +0x105 fp=0xc0009ad4a8 sp=0xc0009ad418 pc=0xbc3f25 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getdents(0xc001672a80, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}, 0x4) pkg/sentry/syscalls/linux/vfs2/getdents.go:53 +0x1e5 fp=0xc0009ad5d0 sp=0xc0009ad4a8 pc=0x129f285 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=0xc0009ad648 sp=0xc0009ad5d0 pc=0x129ef87 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001672a80, 0x4e, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0xaf7 fp=0xc0009ada98 sp=0xc0009ad648 pc=0xdf0db7 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001672a80, 0x1, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x8e fp=0xc0009adb28 sp=0xc0009ada98 pc=0xdf2ece gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00123c780, 0x1, {{0x3}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0xc5 fp=0xc0009adba0 sp=0xc0009adb28 pc=0xdf27c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001672a80) pkg/sentry/kernel/task_syscall.go:257 +0x4c7 fp=0xc0009adcb0 sp=0xc0009adba0 pc=0xdf22e7 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc001672a80, 0xc001672a80) pkg/sentry/kernel/task_run.go:247 +0x19fc fp=0xc0009aded0 sp=0xc0009adcb0 pc=0xddb87c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001672a80) pkg/sentry/kernel/task_run.go:90 +0x2c2 fp=0xc0009adfc0 sp=0xc0009aded0 pc=0xdd9442 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·239() pkg/sentry/kernel/task_start.go:364 +0x3a fp=0xc0009adfe0 sp=0xc0009adfc0 pc=0xdee3fa runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0009adfe8 sp=0xc0009adfe0 pc=0x46e001 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:364 +0x1b1