panic: invalid allocation length: 0x0 goroutine 64051 [running]: gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).Allocate(0xc000153b00, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/filemem/filemem.go:255 +0x78e gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).newShm(0xc000322f60, 0x11dc260, 0xc000e51500, 0x6f, 0x0, 0x0, 0xc000000000, 0x0, 0xc000e51c60, 0x45d3fc, ...) pkg/sentry/kernel/shm/shm.go:185 +0xd7 gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).FindOrCreate(0xc000322f60, 0x11dc260, 0xc000e51500, 0x6f, 0x0, 0x0, 0xc000000001, 0x0, 0x0, 0x0) pkg/sentry/kernel/shm/shm.go:174 +0x321 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmget(0xc000e51500, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0x0, 0x0, 0xc000c998d8, ...) pkg/sentry/syscalls/linux/sys_shm.go:38 +0x149 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000e51500, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc000e51500, 0x0, ...) pkg/sentry/kernel/task_syscall.go:162 +0x17b gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000e51500, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc00015f770, 0xc6a700) pkg/sentry/kernel/task_syscall.go:280 +0xb5 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000e51500, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc000c99c00, 0x4626ce) pkg/sentry/kernel/task_syscall.go:241 +0x10d gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000e51500, 0x2, 0xc000374940) pkg/sentry/kernel/task_syscall.go:216 +0x1e4 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000e51500, 0x11cd860, 0x0) pkg/sentry/kernel/task_run.go:219 +0x15aa gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc000e51500, 0x24b) 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