panic: invalid allocation length: 0x0 goroutine 179 [running]: gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).Allocate(0xc0002c6000, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/filemem/filemem.go:255 +0x6ac gvisor.googlesource.com/gvisor/pkg/sentry/platform.AllocateAndFill(0xd243a0, 0xc0002c6000, 0x0, 0x1, 0xd14920, 0xc000128fc0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/platform.go:418 +0x58 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).breakCopyOnWriteLocked(0xc000450d80, 0xc000451470, 0x4, 0x20002000, 0x21000000, 0x4, 0x21000000, 0x0, 0x0, 0xc000451470) pkg/sentry/mm/pma.go:433 +0x352 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).getPMAsLocked(0xc000450d80, 0xd21460, 0xc00033d500, 0xc000450df0, 0x5, 0x20002000, 0x21000000, 0x1, 0xc000450df0, 0x7, ...) pkg/sentry/mm/pma.go:142 +0x2a1 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc000450d80, 0xd21460, 0xc00033d500, 0x20002640, 0x21000000, 0x100, 0xc0001bd660, 0x1b, 0xc0002db560, 0xc0001bd6f8) pkg/sentry/mm/io.go:484 +0x260 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).ZeroOut(0xc000450d80, 0xd21460, 0xc00033d500, 0x20002640, 0x7ffff000, 0x100, 0xc0002db830, 0x1000, 0x0) pkg/sentry/mm/io.go:205 +0x11c gvisor.googlesource.com/gvisor/pkg/sentry/usermem.ZeroOutVec(0xd21460, 0xc00033d500, 0xd208c0, 0xc000450d80, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x7fffffffffffffff, 0xc0002d0100, ...) pkg/sentry/usermem/usermem.go:324 +0x179 gvisor.googlesource.com/gvisor/pkg/sentry/usermem.IOSequence.ZeroOut(0xd208c0, 0xc000450d80, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, 0xd21460, 0xc00033d500, 0x7fffffffffffffff, ...) pkg/sentry/usermem/usermem.go:514 +0xa4 gvisor.googlesource.com/gvisor/pkg/sentry/fs/dev.(*fullDevice).DeprecatedPreadv(0xc000399020, 0xd21460, 0xc00033d500, 0xd208c0, 0xc000450d80, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, ...) pkg/sentry/fs/dev/full.go:49 +0x82 gvisor.googlesource.com/gvisor/pkg/sentry/fs/fsutil.(*Handle).Read(0xc000128f80, 0xd21460, 0xc00033d500, 0xc0002db560, 0xd208c0, 0xc000450d80, 0x0, 0x1, 0x20002640, 0x7ffff000, ...) pkg/sentry/fs/fsutil/handle.go:92 +0x95 gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*overlayFileOperations).Read(0xc000498ab0, 0xd21460, 0xc00033d500, 0xc0002db830, 0xd208c0, 0xc000450d80, 0x0, 0x1, 0x20002640, 0x7ffff000, ...) pkg/sentry/fs/file_overlay.go:223 +0x16c gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Preadv(0xc0002db830, 0xd21460, 0xc00033d500, 0xd208c0, 0xc000450d80, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, ...) pkg/sentry/fs/file.go:258 +0x11c gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.preadv(0xc00033d500, 0xc0002db830, 0xd208c0, 0xc000450d80, 0x0, 0x1, 0x20002640, 0x7ffff000, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/sys_read.go:296 +0x9a gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Pread64(0xc00033d500, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_read.go:114 +0x2a1 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00033d500, 0x11, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0x5, 0xc38ae0, ...) pkg/sentry/kernel/task_syscall.go:165 +0x30a gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00033d500, 0x11, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0x0, 0x4002e0) pkg/sentry/kernel/task_syscall.go:283 +0x69 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00033d500, 0x11, 0x5, 0x20002640, 0xfffffede, 0x0, 0x0, 0x4002e0, 0xd14640, 0xc0001bde58) pkg/sentry/kernel/task_syscall.go:244 +0x99 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00033d500, 0x2, 0xc000494780) pkg/sentry/kernel/task_syscall.go:219 +0x142 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00033d500, 0xd14640, 0x0) pkg/sentry/kernel/task_run.go:215 +0xfda gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc00033d500, 0xd) pkg/sentry/kernel/task_run.go:91 +0x149 created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:279 +0xfe