panic: Inode doesn't match what kernfs thinks! OrderedChild: &{dir:{InodeNoopRefCount:{InodeTemporary:{}} InodeAlwaysValid:{} InodeAttrs:{devMajor:0 devMinor:13 ino:20009 mode:16749 uid:0 gid:0 nlink:2 blockSize:4096 atime:1646235209886840174 mtime:1646235209886840174 ctime:1646235209886840174} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc0086aa5c0 tail:0xc0086aa980} set:map[cgroup.procs:0xc0086aa600 cpu.cfs_period_us:0xc0086aa7c0 cpu.cfs_quota_us:0xc0086aa6c0 cpu.shares:0xc0086aa980 cpuacct.stat:0xc0086aa800 cpuacct.usage:0xc0086aa840 cpuacct.usage_sys:0xc0086aa880 cpuacct.usage_user:0xc0086aa900 cpuset.cpus:0xc0086aa700 cpuset.mems:0xc0086aa940 job.id:0xc0086aa5c0 memory.limit_in_bytes:0xc0086aa640 memory.move_charge_at_immigrate:0xc0086aa680 memory.soft_limit_in_bytes:0xc0086aa780 memory.usage_in_bytes:0xc0086aa8c0 tasks:0xc0086aa740]} 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:0xc00034c100 cgi:0xc0086a9880} controllers:map[cpu:0xc008153b60 cpuacct:0xc0003d6040 cpuset:0xc0086aa580 job:0xc007c3eda0 memory:0xc008153b30] ts:map[]}, kernfs: &{dir:{InodeNoopRefCount:{InodeTemporary:{}} InodeAlwaysValid:{} InodeAttrs:{devMajor:0 devMinor:13 ino:19992 mode:16749 uid:0 gid:0 nlink:2 blockSize:4096 atime:1646235209885726735 mtime:1646235209885726735 ctime:1646235209885726735} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc0082f4c00 tail:0xc0082f4fc0} set:map[cgroup.procs:0xc0082f4f80 cpu.cfs_period_us:0xc0082f4e80 cpu.cfs_quota_us:0xc0082f4c80 cpu.shares:0xc0082f4cc0 cpuacct.stat:0xc0082f4d00 cpuacct.usage:0xc0082f4c40 cpuacct.usage_sys:0xc0082f4f00 cpuacct.usage_user:0xc0082f4ec0 cpuset.cpus:0xc0082f4e00 cpuset.mems:0xc0082f4f40 job.id:0xc0082f4d40 memory.limit_in_bytes:0xc0082f4dc0 memory.move_charge_at_immigrate:0xc0082f4e40 memory.soft_limit_in_bytes:0xc0082f4c00 memory.usage_in_bytes:0xc0082f4fc0 tasks:0xc0082f4d80]} 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:0xc00034c100 cgi:0xc0082fbc00} controllers:map[cpu:0xc0082beed0 cpuacct:0xc0003d6040 cpuset:0xc0082f4bc0 job:0xc0079437c0 memory:0xc0082beea0] ts:map[]} goroutine 11750 [running]: panic({0x1074a40, 0xc004d98e60}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc00649d4e8 sp=0xc00649d428 pc=0x4351c8 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).checkExistingLocked(0x7e13a5, {0xc00869aa08, 0xbd26b3}, {0x141ce08, 0xc0082fbc00}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:593 +0x126 fp=0xc00649d558 sp=0xc00649d4e8 pc=0x7e9ca6 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).Unlink(0xc00023b540, {0xc0030cb5f0, 0x7004ae}, {0xc00869aa08, 0x5}, {0x141ce08, 0xc0082fbc00}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:605 +0xd9 fp=0xc00649d5c0 sp=0xc00649d558 pc=0x7e9dd9 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(0xc00023b500, {0x14172f0, 0xc0083fa000}, {0xc00869aa08, 0x4330d0}, {0x141ce08, 0xc0082fbc00}) pkg/sentry/fsimpl/cgroupfs/cgroupfs.go:534 +0x2cc fp=0xc00649d658 sp=0xc00649d5c0 pc=0xbcb22c gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).RmDir(0xc00023b500, {0x14172f0, 0xc0083fa000}, {0xc00869aa08, 0x7f02cdec70c0}, {0x141ce08, 0xc0082fbc00}) :1 +0x4e fp=0xc00649d6a0 sp=0xc00649d658 pc=0xbd36ae gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).RmdirAt(0xc00034c100, {0x14172f0, 0xc0083fa000}, 0xc0049b9200) pkg/sentry/fsimpl/kernfs/filesystem.go:793 +0x456 fp=0xc00649d930 sp=0xc00649d6a0 pc=0x7e4176 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*filesystem).RmdirAt(0xc00034c100, {0x14172f0, 0xc0083fa000}, 0xc007b470f0) :1 +0x33 fp=0xc00649d960 sp=0xc00649d930 pc=0xbd96b3 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc000198240, {0x14172f0, 0xc0083fa000}, 0xc007e3ac60, 0xc00832b700) pkg/sentry/vfs/vfs.go:562 +0xe7 fp=0xc00649d9b8 sp=0xc00649d960 pc=0x7044e7 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc0083fa000, 0x7a97860, 0x200000003) pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x1b8 fp=0xc00649db28 sp=0xc00649d9b8 pc=0xdf1bd8 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Unlinkat(0x40000002, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:296 +0x39 fp=0xc00649db50 sp=0xc00649db28 pc=0xdf2079 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0083fa000, 0x107, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/kernel/task_syscall.go:103 +0x376 fp=0xc00649dca0 sp=0xc00649db50 pc=0x9716d6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0083fa000, 0xc000483aa0, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/kernel/task_syscall.go:238 +0x4d fp=0xc00649dd10 sp=0xc00649dca0 pc=0x97224d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0x142b338, 0xc007686870, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/kernel/task_syscall.go:198 +0x65 fp=0xc00649dd70 sp=0xc00649dd10 pc=0x971f05 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0083fa000) pkg/sentry/kernel/task_syscall.go:173 +0x31a fp=0xc00649de38 sp=0xc00649dd70 pc=0x971c3a gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc007cb9200, 0xc0083fa000) pkg/sentry/kernel/task_run.go:254 +0xe45 fp=0xc00649df60 sp=0xc00649de38 pc=0x966b45 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0083fa000, 0x56a) pkg/sentry/kernel/task_run.go:95 +0x1ac fp=0xc00649dfc0 sp=0xc00649df60 pc=0x96568c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·235() pkg/sentry/kernel/task_start.go:339 +0x2a fp=0xc00649dfe0 sp=0xc00649dfc0 pc=0x97022a runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00649dfe8 sp=0xc00649dfe0 pc=0x469321 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:339 +0xfe