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:1646238061586731350 mtime:1646238061586731350 ctime:1646238061586731350} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc000f52140 tail:0xc000f52500} set:map[cgroup.procs:0xc000f522c0 cpu.cfs_period_us:0xc000f52440 cpu.cfs_quota_us:0xc000f52480 cpu.shares:0xc000f52240 cpuacct.stat:0xc000f52300 cpuacct.usage:0xc000f52340 cpuacct.usage_sys:0xc000f52280 cpuacct.usage_user:0xc000f524c0 cpuset.cpus:0xc000f52380 cpuset.mems:0xc000f52400 job.id:0xc000f52180 memory.limit_in_bytes:0xc000f521c0 memory.move_charge_at_immigrate:0xc000f52500 memory.soft_limit_in_bytes:0xc000f52200 memory.usage_in_bytes:0xc000f523c0 tasks:0xc000f52140]} 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:0xc000af2000 cgi:0xc000afdc00} controllers:map[cpu:0xc0005d9560 cpuacct:0xc0005506c0 cpuset:0xc000f52100 job:0xc000550860 memory:0xc0005d9530] 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:1646238061512473901 mtime:1646238061512473901 ctime:1646238061512473901} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc000acdcc0 tail:0xc000f52080} set:map[cgroup.procs:0xc000acdd80 cpu.cfs_period_us:0xc000acdfc0 cpu.cfs_quota_us:0xc000acdd00 cpu.shares:0xc000f52000 cpuacct.stat:0xc000acdd40 cpuacct.usage:0xc000f52040 cpuacct.usage_sys:0xc000acdf00 cpuacct.usage_user:0xc000f52080 cpuset.cpus:0xc000acde40 cpuset.mems:0xc000acdf40 job.id:0xc000acdf80 memory.limit_in_bytes:0xc000acdec0 memory.move_charge_at_immigrate:0xc000acde00 memory.soft_limit_in_bytes:0xc000acddc0 memory.usage_in_bytes:0xc000acde80 tasks:0xc000acdcc0]} 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:0xc000af2000 cgi:0xc000af7c00} controllers:map[cpu:0xc0005d93e0 cpuacct:0xc0005506c0 cpuset:0xc000acdc80 job:0xc000550800 memory:0xc0005d9350] ts:map[]} goroutine 218 [running]: panic({0x1174a60, 0xc000b8b600}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc000f3f590 sp=0xc000f3f4d0 pc=0x4351c8 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).checkExistingLocked(0xc0416d0001, {0xc000adc508, 0xc000b85648}, {0x154dde8, 0xc000af7c00}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:593 +0x15d fp=0xc000f3f600 sp=0xc000f3f590 pc=0x83ba3d gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).Unlink(0xc000aebc40, {0x12b2bc0, 0xc000550a40}, {0xc000adc508, 0x5}, {0x154dde8, 0xc000af7c00}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:605 +0xfe fp=0xc000f3f668 sp=0xc000f3f600 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(0xc000aebc00, {0x1548550, 0xc000d30000}, {0xc000adc508, 0x5}, {0x154dde8, 0xc000af7c00}) pkg/sentry/fsimpl/cgroupfs/cgroupfs.go:534 +0x2ff fp=0xc000f3f700 sp=0xc000f3f668 pc=0xc9673f gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).RmDir(0xc000aebc00, {0x1548550, 0xc000d30000}, {0xc000adc508, 0xc000d23878}, {0x154dde8, 0xc000af7c00}) :1 +0x4e fp=0xc000f3f748 sp=0xc000f3f700 pc=0xc9f66e gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).RmdirAt(0xc000af2000, {0x1548550, 0xc000d30000}, 0xc000ade000) pkg/sentry/fsimpl/kernfs/filesystem.go:793 +0x4d0 fp=0xc000f3f9d8 sp=0xc000f3f748 pc=0x8356f0 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*filesystem).RmdirAt(0xc000af2000, {0x1548550, 0xc000d30000}, 0xc000aec250) :1 +0x33 fp=0xc000f3fa08 sp=0xc000f3f9d8 pc=0xca5693 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc0005222a0, {0x1548550, 0xc000d30000}, 0xc000aec1b0, 0xc000adca00) pkg/sentry/vfs/vfs.go:562 +0x143 fp=0xc000f3fa60 sp=0xc000f3fa08 pc=0x735b83 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc000d30000, 0x0, 0x0) pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x20a fp=0xc000f3fbd0 sp=0xc000f3fa60 pc=0xed9a0a gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Unlinkat(0xc000d30000, {{0x3}, {0x200000c0}, {0x200}, {0x7f52af73be78}, {0x7f52af73be78}, {0x7f52af73be78}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:296 +0x79 fp=0xc000f3fbf8 sp=0xc000f3fbd0 pc=0xed9f59 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000d30000, 0x107, {{0x3}, {0x200000c0}, {0x200}, {0x7f52af73be78}, {0x7f52af73be78}, {0x7f52af73be78}}) pkg/sentry/kernel/task_syscall.go:103 +0x2d7 fp=0xc000f3fca8 sp=0xc000f3fbf8 pc=0x9f82b7 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000d30000, 0xc000b85d70, {{0x3}, {0x200000c0}, {0x200}, {0x7f52af73be78}, {0x7f52af73be78}, {0x7f52af73be78}}) pkg/sentry/kernel/task_syscall.go:238 +0x57 fp=0xc000f3fd18 sp=0xc000f3fca8 pc=0x9f9077 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000b3e218, 0xd30000, {{0x3}, {0x200000c0}, {0x200}, {0x7f52af73be78}, {0x7f52af73be78}, {0x7f52af73be78}}) pkg/sentry/kernel/task_syscall.go:198 +0x85 fp=0xc000f3fd78 sp=0xc000f3fd18 pc=0x9f8c45 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000d30000) pkg/sentry/kernel/task_syscall.go:173 +0x38e fp=0xc000f3fe40 sp=0xc000f3fd78 pc=0x9f890e gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000568180, 0xc000d30000) pkg/sentry/kernel/task_run.go:254 +0x111b fp=0xc000f3ff60 sp=0xc000f3fe40 pc=0x9eb9fb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000d30000, 0x21) pkg/sentry/kernel/task_run.go:95 +0x1ec fp=0xc000f3ffc0 sp=0xc000f3ff60 pc=0x9ea26c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·235() pkg/sentry/kernel/task_start.go:339 +0x2a fp=0xc000f3ffe0 sp=0xc000f3ffc0 pc=0x9f6c2a runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000f3ffe8 sp=0xc000f3ffe0 pc=0x469321 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:339 +0x106