panic: invalid allocation length: 0x0 goroutine 136 [running]: gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).Allocate(0xc0002da000, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/filemem/filemem.go:255 +0x78e gvisor.googlesource.com/gvisor/pkg/sentry/platform.AllocateAndFill(0x12017e0, 0xc0002da000, 0x0, 0x1, 0x11efd60, 0xc000566200, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/platform.go:418 +0x74 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).breakCopyOnWriteLocked(0xc0001de580, 0xc0001debe8, 0x4, 0x20002000, 0x21000000, 0x4, 0x21000000, 0x0, 0x0, 0xc0001debe8) pkg/sentry/mm/pma.go:433 +0x342 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsLocked(0xc0001de580, 0x11fe520, 0xc000430a80, 0xc0001de5f0, 0x5, 0x20002000, 0x21000000, 0x1, 0xc0001de5f0, 0x7, ...) pkg/sentry/mm/pma.go:142 +0x35a gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc0001de580, 0x11fe520, 0xc000430a80, 0x20002640, 0x21000000, 0x100, 0xc00061ef80, 0xc00061efe0, 0x40cbb7, 0xc0001a51a0) pkg/sentry/mm/io.go:484 +0x274 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).ZeroOut(0xc0001de580, 0x11fe520, 0xc000430a80, 0x20002640, 0x7ffff000, 0x450100, 0xc00061f020, 0xc00061f020, 0x405bd3) pkg/sentry/mm/io.go:205 +0x1ab gvisor.googlesource.com/gvisor/pkg/sentry/usermem.ZeroOutVec(0x11fe520, 0xc000430a80, 0x11fd440, 0xc0001de580, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x7fffffffffffffff, 0x11f0100, ...) pkg/sentry/usermem/usermem.go:324 +0x194 gvisor.googlesource.com/gvisor/pkg/sentry/usermem.IOSequence.ZeroOut(0x11fd440, 0xc0001de580, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, 0x11fe520, 0xc000430a80, 0x7fffffffffffffff, ...) pkg/sentry/usermem/usermem.go:514 +0xd5 gvisor.googlesource.com/gvisor/pkg/sentry/fs/dev.(*fullDevice).DeprecatedPreadv(0xc000345200, 0x11fe520, 0xc000430a80, 0x11fd440, 0xc0001de580, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, ...) pkg/sentry/fs/dev/full.go:49 +0xe1 gvisor.googlesource.com/gvisor/pkg/sentry/fs/fsutil.(*Handle).Read(0xc0005661a0, 0x11fe520, 0xc000430a80, 0xc00034e480, 0x11fd440, 0xc0001de580, 0x0, 0x1, 0x20002640, 0x7ffff000, ...) pkg/sentry/fs/fsutil/handle.go:92 +0x107 gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*overlayFileOperations).Read(0xc00054daa0, 0x11fe520, 0xc000430a80, 0xc00034e750, 0x11fd440, 0xc0001de580, 0x0, 0x1, 0x20002640, 0x7ffff000, ...) pkg/sentry/fs/file_overlay.go:223 +0x2c2 gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Preadv(0xc00034e750, 0x11fe520, 0xc000430a80, 0x11fd440, 0xc0001de580, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, ...) pkg/sentry/fs/file.go:258 +0x182 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.preadv(0xc000430a80, 0xc00034e750, 0x11fd440, 0xc0001de580, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/sys_read.go:296 +0xee gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Pread64(0xc000430a80, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_read.go:114 +0x361 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000430a80, 0x11, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0xc000430a80, 0x0, ...) pkg/sentry/kernel/task_syscall.go:165 +0x17b gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000430a80, 0x11, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0x11efa80, 0x0) pkg/sentry/kernel/task_syscall.go:283 +0xb5 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000430a80, 0x11, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0xc00061fc00, 0x4784ae) pkg/sentry/kernel/task_syscall.go:244 +0x10d gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000430a80, 0x2, 0xc00028e1c0) pkg/sentry/kernel/task_syscall.go:219 +0x1e4 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000430a80, 0x11efa80, 0x0) pkg/sentry/kernel/task_run.go:215 +0x15aa gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc000430a80, 0xf) pkg/sentry/kernel/task_run.go:91 +0x24c created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:279 +0x19e