panic: invalid allocation length: 0x0 goroutine 595787 [running]: gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).Allocate(0xc000159b00, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/filemem/filemem.go:255 +0x78e gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).newShm(0xc0004a09f0, 0x11dc260, 0xc00153ca80, 0x440, 0x0, 0x0, 0xc000000000, 0x0, 0xc00153d1e0, 0x45d3fc, ...) pkg/sentry/kernel/shm/shm.go:185 +0xd7 gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).FindOrCreate(0xc0004a09f0, 0x11dc260, 0xc00153ca80, 0x440, 0x0, 0x0, 0xc000000001, 0x0, 0x0, 0x0) pkg/sentry/kernel/shm/shm.go:174 +0x321 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmget(0xc00153ca80, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0x0, 0x0, 0xc0006858d8, ...) pkg/sentry/syscalls/linux/sys_shm.go:38 +0x149 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00153ca80, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc00153ca80, 0x0, ...) pkg/sentry/kernel/task_syscall.go:162 +0x17b gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00153ca80, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc0001653a9, 0xc6a700) pkg/sentry/kernel/task_syscall.go:280 +0xb5 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00153ca80, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc000685c00, 0x4626ce) pkg/sentry/kernel/task_syscall.go:241 +0x10d gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00153ca80, 0x2, 0xc00068cb00) pkg/sentry/kernel/task_syscall.go:216 +0x1e4 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00153ca80, 0x11cd860, 0x0) pkg/sentry/kernel/task_run.go:219 +0x15aa gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc00153ca80, 0x1176) pkg/sentry/kernel/task_run.go:95 +0x27a created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:279 +0x19e