panic: invalid allocation length: 0x0 goroutine 5605197 [running]: gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).Allocate(0xc420274000, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/filemem/filemem.go:252 +0x6bb gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).newShm(0xc420a30b40, 0xc68dc0, 0xc423c66900, 0x1465, 0x0, 0x0, 0x0, 0x0, 0xc9bb8a39, 0xc4206adad0, ...) pkg/sentry/kernel/shm/shm.go:185 +0xc0 gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).FindOrCreate(0xc420a30b40, 0xc68dc0, 0xc423c66900, 0x1465, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0) pkg/sentry/kernel/shm/shm.go:174 +0x259 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmget(0xc423c66900, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0x202, 0xc4206adc10, 0x428854, ...) pkg/sentry/syscalls/linux/sys_shm.go:38 +0x103 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc423c66900, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0x0, 0xba7ee0, ...) pkg/sentry/kernel/task_syscall.go:162 +0x307 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc423c66900, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:280 +0x62 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc423c66900, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc5bbc0, 0x0) pkg/sentry/kernel/task_syscall.go:241 +0x91 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc423c66900, 0x2, 0xc4202e0d80) pkg/sentry/kernel/task_syscall.go:216 +0x142 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc423c66900, 0xc5bbc0, 0x0) pkg/sentry/kernel/task_run.go:219 +0xe56 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc423c66900, 0x5470) pkg/sentry/kernel/task_run.go:95 +0x174 created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:258 +0x100