panic: invalid allocation length: 0x0 goroutine 90349 [running]: gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).Allocate(0xc420230000, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0) pkg/sentry/platform/filemem/filemem.go:232 +0x66f gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).newShm(0xc4200e19b0, 0xc74760, 0xc4206d7b00, 0x417, 0x0, 0x0, 0x0, 0x0, 0x40000002, 0xc420172ac8, ...) pkg/sentry/kernel/shm/shm.go:201 +0xc0 gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).FindOrCreate(0xc4200e19b0, 0xc74760, 0xc4206d7b00, 0x417, 0x0, 0x0, 0xc420000001, 0x0, 0x0, 0x0) pkg/sentry/kernel/shm/shm.go:190 +0x227 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmget(0xc4206d7b00, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0x428854, 0xbdd358, 0xc420172c08, ...) pkg/sentry/syscalls/linux/sys_shm.go:38 +0x103 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc4206d7b00, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc42000a3e0, 0xbb4e80, ...) pkg/sentry/kernel/task_syscall.go:162 +0x307 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc4206d7b00, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:278 +0x62 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc4206d7b00, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x0, 0x0, 0xc67980, 0xc420172e00) pkg/sentry/kernel/task_syscall.go:241 +0x91 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc4206d7b00, 0x2, 0xc4203fb440) pkg/sentry/kernel/task_syscall.go:216 +0x10c gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc4206d7b00, 0xc67980, 0x0) pkg/sentry/kernel/task_run.go:217 +0xed8 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc4206d7b00, 0x10e0) 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:251 +0x100