panic: invalid allocation length: 0x0 goroutine 250960 [running]: panic({0xfe3ca0, 0xc004e1bdb0}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc000c9f090 sp=0xc000c9efd0 pc=0x435148 gvisor.dev/gvisor/pkg/sentry/pgalloc.(*MemoryFile).Allocate(0xc0028c5200, 0x0, {0xc000060868, 0xc000060800}) pkg/sentry/pgalloc/pgalloc.go:417 +0x545 fp=0xc000c9f1a0 sp=0xc000c9f090 pc=0x7d0865 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsInternalLocked(0xc005279000, {0x13919b0, 0xc00670aa80}, {0xc0059a7000, 0x895527}, {0x0, 0xc000c9f668}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:243 +0x1746 fp=0xc000c9f5c8 sp=0xc000c9f1a0 pc=0x87dfc6 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsLocked(0x876cc0, {0x13919b0, 0xc00670aa80}, {0xc0059a7000, 0xc000c9f6b8}, {0x9a5f78, 0xc000000005}, {0x0, 0x1, 0x0}) pkg/sentry/mm/pma.go:125 +0xbf fp=0xc000c9f658 sp=0xc000c9f5c8 pc=0x87c29f gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc005279000, {0x13919b0, 0xc00670aa80}, {0x0, 0x0}, {0x40, 0xd9, 0x4d}, 0x2, 0x12112b0) pkg/sentry/mm/io.go:542 +0x2e5 fp=0xc000c9f748 sp=0xc000c9f658 pc=0x877485 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).EnsurePMAsExist(0x5573c7f65f68, {0x13919b0, 0xc00670aa80}, 0x0, 0xc0048f0fc0, {0xa0, 0x4d}) pkg/sentry/mm/io.go:322 +0x77 fp=0xc000c9f790 sp=0xc000c9f748 pc=0x8762f7 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getdents(0xc00670aa80, {{0x5}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}, 0xa0) pkg/sentry/syscalls/linux/vfs2/getdents.go:53 +0x131 fp=0xc000c9f858 sp=0xc000c9f790 pc=0xcb3e31 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Getdents(0xc00670aa80, {{0x5}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/getdents.go:31 +0x38 fp=0xc000c9f8a8 sp=0xc000c9f858 pc=0xcb3c78 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00670aa80, 0x4e, {{0x5}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x825 fp=0xc000c9fcb0 sp=0xc000c9f8a8 pc=0x9b7ae5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00670aa80, 0x0, {{0x5}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x4d fp=0xc000c9fd20 sp=0xc000c9fcb0 pc=0x9b8e0d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0x13a22c8, 0xc001c23950, {{0x5}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x65 fp=0xc000c9fd80 sp=0xc000c9fd20 pc=0x9b8ac5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00670aa80) pkg/sentry/kernel/task_syscall.go:257 +0x31a fp=0xc000c9fe48 sp=0xc000c9fd80 pc=0x9b87fa gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc006b2de80, 0xc00670aa80) pkg/sentry/kernel/task_run.go:247 +0xe45 fp=0xc000c9ff70 sp=0xc000c9fe48 pc=0x9ac8c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00670aa80) pkg/sentry/kernel/task_run.go:90 +0x1a2 fp=0xc000c9ffc8 sp=0xc000c9ff70 pc=0x9ab422 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·239() pkg/sentry/kernel/task_start.go:364 +0x26 fp=0xc000c9ffe0 sp=0xc000c9ffc8 pc=0x9b6246 runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000c9ffe8 sp=0xc000c9ffe0 pc=0x4692a1 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:364 +0xe7