panic: Inode doesn't match what kernfs thinks! OrderedChild: &{dir:{InodeNoopRefCount:{InodeTemporary:{}} InodeAlwaysValid:{} InodeAttrs:{devMajor:0 devMinor:13 ino:51 mode:16749 uid:0 gid:0 nlink:2 blockSize:4096 atime:1646235238922429244 mtime:1646235238922429244 ctime:1646235238922429244} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc0006d7600 tail:0xc0006d79c0} set:map[cgroup.procs:0xc0006d7740 cpu.cfs_period_us:0xc0006d7640 cpu.cfs_quota_us:0xc0006d78c0 cpu.shares:0xc0006d7680 cpuacct.stat:0xc0006d7900 cpuacct.usage:0xc0006d76c0 cpuacct.usage_sys:0xc0006d77c0 cpuacct.usage_user:0xc0006d7700 cpuset.cpus:0xc0006d7940 cpuset.mems:0xc0006d7600 job.id:0xc0006d7800 memory.limit_in_bytes:0xc0006d7980 memory.move_charge_at_immigrate:0xc0006d79c0 memory.soft_limit_in_bytes:0xc0006d7880 memory.usage_in_bytes:0xc0006d7840 tasks:0xc0006d7780]} implStatFS:{} locks:{bsd:{mu:{m:{Mutex:{state:0 sema:0}}} locks:{root:{nrSegments:0 parent: parentIndex:0 hasChildren:false maxGap:[] keys:[{Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0}] values:[{Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}}] children:[ ]}} blockedQueue:{list:{head: tail:} mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}}}} posix:{mu:{m:{Mutex:{state:0 sema:0}}} locks:{root:{nrSegments:0 parent: parentIndex:0 hasChildren:false maxGap:[] keys:[{Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0}] values:[{Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}}] children:[ ]}} blockedQueue:{list:{head: tail:} mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}}}}} fs:0xc000c08000 cgi:0xc000c17c00} controllers:map[cpu:0xc000ab26c0 cpuacct:0xc0004a8060 cpuset:0xc0006d75c0 job:0xc0004a8200 memory:0xc000ab26f0] ts:map[]}, kernfs: &{dir:{InodeNoopRefCount:{InodeTemporary:{}} InodeAlwaysValid:{} InodeAttrs:{devMajor:0 devMinor:13 ino:34 mode:16749 uid:0 gid:0 nlink:2 blockSize:4096 atime:1646235238922189104 mtime:1646235238922189104 ctime:1646235238922189104} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc0006d7180 tail:0xc0006d7540} set:map[cgroup.procs:0xc0006d7200 cpu.cfs_period_us:0xc0006d7280 cpu.cfs_quota_us:0xc0006d7400 cpu.shares:0xc0006d7180 cpuacct.stat:0xc0006d7440 cpuacct.usage:0xc0006d7300 cpuacct.usage_sys:0xc0006d72c0 cpuacct.usage_user:0xc0006d7480 cpuset.cpus:0xc0006d71c0 cpuset.mems:0xc0006d74c0 job.id:0xc0006d7240 memory.limit_in_bytes:0xc0006d7540 memory.move_charge_at_immigrate:0xc0006d7380 memory.soft_limit_in_bytes:0xc0006d73c0 memory.usage_in_bytes:0xc0006d7340 tasks:0xc0006d7500]} implStatFS:{} locks:{bsd:{mu:{m:{Mutex:{state:0 sema:0}}} locks:{root:{nrSegments:0 parent: parentIndex:0 hasChildren:false maxGap:[] keys:[{Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0}] values:[{Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}}] children:[ ]}} blockedQueue:{list:{head: tail:} mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}}}} posix:{mu:{m:{Mutex:{state:0 sema:0}}} locks:{root:{nrSegments:0 parent: parentIndex:0 hasChildren:false maxGap:[] keys:[{Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0} {Start:0 End:0}] values:[{Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}} {Readers:map[] Writer: WriterInfo:{PID:0}}] children:[ ]}} blockedQueue:{list:{head: tail:} mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}}}}} fs:0xc000c08000 cgi:0xc000c0fc00} controllers:map[cpu:0xc000ab2570 cpuacct:0xc0004a8060 cpuset:0xc0006d7140 job:0xc0004a8160 memory:0xc000ab2540] ts:map[]} goroutine 247 [running]: panic({0x1174a60, 0xc0004de510}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc000c25590 sp=0xc000c254d0 pc=0x4351c8 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).checkExistingLocked(0xc0416d0001, {0xc0006f6508, 0xc00070d648}, {0x154dde8, 0xc000c0fc00}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:593 +0x15d fp=0xc000c25600 sp=0xc000c25590 pc=0x83ba3d gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).Unlink(0xc000c07c40, {0x12b2bc0, 0xc000646fc0}, {0xc0006f6508, 0x5}, {0x154dde8, 0xc000c0fc00}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:605 +0xfe fp=0xc000c25668 sp=0xc000c25600 pc=0x83bb9e gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).RmDir(...) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:617 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*dir).RmDir(0xc000c07c00, {0x1548550, 0xc000a9aa80}, {0xc0006f6508, 0x5}, {0x154dde8, 0xc000c0fc00}) pkg/sentry/fsimpl/cgroupfs/cgroupfs.go:534 +0x2ff fp=0xc000c25700 sp=0xc000c25668 pc=0xc9673f gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).RmDir(0xc000c07c00, {0x1548550, 0xc000a9aa80}, {0xc0006f6508, 0xc0005c7878}, {0x154dde8, 0xc000c0fc00}) :1 +0x4e fp=0xc000c25748 sp=0xc000c25700 pc=0xc9f66e gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).RmdirAt(0xc000c08000, {0x1548550, 0xc000a9aa80}, 0xc0001ec480) pkg/sentry/fsimpl/kernfs/filesystem.go:793 +0x4d0 fp=0xc000c259d8 sp=0xc000c25748 pc=0x8356f0 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*filesystem).RmdirAt(0xc000c08000, {0x1548550, 0xc000a9aa80}, 0xc0006d4370) :1 +0x33 fp=0xc000c25a08 sp=0xc000c259d8 pc=0xca5693 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc0005b2240, {0x1548550, 0xc000a9aa80}, 0xc0006d42d0, 0xc0006f6a00) pkg/sentry/vfs/vfs.go:562 +0x143 fp=0xc000c25a60 sp=0xc000c25a08 pc=0x735b83 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc000a9aa80, 0x70dc14, 0xc00070dc18) pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x20a fp=0xc000c25bd0 sp=0xc000c25a60 pc=0xed9a0a gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Unlinkat(0x65, {{0x3}, {0x200000c0}, {0x200}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:296 +0x79 fp=0xc000c25bf8 sp=0xc000c25bd0 pc=0xed9f59 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000a9aa80, 0x107, {{0x3}, {0x200000c0}, {0x200}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:103 +0x2d7 fp=0xc000c25ca8 sp=0xc000c25bf8 pc=0x9f82b7 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000a9aa80, 0xf47fa0, {{0x3}, {0x200000c0}, {0x200}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:238 +0x57 fp=0xc000c25d18 sp=0xc000c25ca8 pc=0x9f9077 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000aaca90, 0x155c2f8, {{0x3}, {0x200000c0}, {0x200}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:198 +0x85 fp=0xc000c25d78 sp=0xc000c25d18 pc=0x9f8c45 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000a9aa80) pkg/sentry/kernel/task_syscall.go:173 +0x38e fp=0xc000c25e40 sp=0xc000c25d78 pc=0x9f890e gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000532180, 0xc000a9aa80) pkg/sentry/kernel/task_run.go:254 +0x111b fp=0xc000c25f60 sp=0xc000c25e40 pc=0x9eb9fb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000a9aa80, 0x10) pkg/sentry/kernel/task_run.go:95 +0x1ec fp=0xc000c25fc0 sp=0xc000c25f60 pc=0x9ea26c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·235() pkg/sentry/kernel/task_start.go:339 +0x2a fp=0xc000c25fe0 sp=0xc000c25fc0 pc=0x9f6c2a runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000c25fe8 sp=0xc000c25fe0 pc=0x469321 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:339 +0x106