panic: Inode doesn't match what kernfs thinks! OrderedChild: &{dir:{InodeNoopRefCount:{InodeTemporary:{}} InodeAlwaysValid:{} InodeAttrs:{devMajor:0 devMinor:13 ino:1564 mode:16749 uid:0 gid:0 nlink:2 blockSize:4096 atime:1646235329375769597 mtime:1646235329375769597 ctime:1646235329375769597} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc000fbadc0 tail:0xc000fbb180} set:map[cgroup.procs:0xc000fbb0c0 cpu.cfs_period_us:0xc000fbaf80 cpu.cfs_quota_us:0xc000fbb180 cpu.shares:0xc000fbafc0 cpuacct.stat:0xc000fbae40 cpuacct.usage:0xc000fbae80 cpuacct.usage_sys:0xc000fbaec0 cpuacct.usage_user:0xc000fbb080 cpuset.cpus:0xc000fbadc0 cpuset.mems:0xc000fbb100 job.id:0xc000fbaf00 memory.limit_in_bytes:0xc000fbae00 memory.move_charge_at_immigrate:0xc000fbb140 memory.soft_limit_in_bytes:0xc000fbb040 memory.usage_in_bytes:0xc000fbaf40 tasks:0xc000fbb000]} 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:0xc0003a8400 cgi:0xc000fd1c00} controllers:map[cpu:0xc000fe4150 cpuacct:0xc00048c5a0 cpuset:0xc000fbad80 job:0xc0009a0480 memory:0xc000fe4120] ts:map[]}, kernfs: &{dir:{InodeNoopRefCount:{InodeTemporary:{}} InodeAlwaysValid:{} InodeAttrs:{devMajor:0 devMinor:13 ino:1547 mode:16749 uid:0 gid:0 nlink:2 blockSize:4096 atime:1646235329372122007 mtime:1646235329372122007 ctime:1646235329372122007} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc00165c880 tail:0xc00165cc40} set:map[cgroup.procs:0xc00165ca40 cpu.cfs_period_us:0xc00165cc00 cpu.cfs_quota_us:0xc00165c8c0 cpu.shares:0xc00165c900 cpuacct.stat:0xc00165c980 cpuacct.usage:0xc00165ca80 cpuacct.usage_sys:0xc00165cc40 cpuacct.usage_user:0xc00165c9c0 cpuset.cpus:0xc00165ca00 cpuset.mems:0xc00165cac0 job.id:0xc00165cb00 memory.limit_in_bytes:0xc00165cb40 memory.move_charge_at_immigrate:0xc00165c880 memory.soft_limit_in_bytes:0xc00165cb80 memory.usage_in_bytes:0xc00165c940 tasks:0xc00165cbc0]} 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:0xc0003a8400 cgi:0xc00165f500} controllers:map[cpu:0xc000ecaff0 cpuacct:0xc00048c5a0 cpuset:0xc00165c840 job:0xc00003eb20 memory:0xc000ecb020] ts:map[]} goroutine 1716 [running]: panic({0x17c1380, 0xc000a30b00}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc00136cfe0 sp=0xc00136cf20 pc=0x437d08 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).checkExistingLocked(0xc0007531c0, {0xc00038dd02, 0x5}, {0x1cad1a8, 0xc00165f500}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:593 +0x225 fp=0xc00136d088 sp=0xc00136cfe0 pc=0xa5e1e5 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).Unlink(0xc0007531c0, {0x449428, 0x4494b4}, {0xc00038dd02, 0x5}, {0x1cad1a8, 0xc00165f500}) pkg/sentry/fsimpl/kernfs/inode_impl_util.go:605 +0x115 fp=0xc00136d130 sp=0xc00136d088 pc=0xa5e375 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(0xc000753180, {0x1ca7770, 0xc001126000}, {0xc00038dd02, 0x5}, {0x1cad1a8, 0xc00165f500}) pkg/sentry/fsimpl/cgroupfs/cgroupfs.go:534 +0x387 fp=0xc00136d238 sp=0xc00136d130 pc=0x1035727 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).RmDir(0xc000753180, {0x1ca7770, 0xc001126000}, {0xc00038dd02, 0x5}, {0x1cad1a8, 0xc00165f500}) :1 +0x8c fp=0xc00136d290 sp=0xc00136d238 pc=0x10414ec gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).RmdirAt(0xc0003a8400, {0x1ca7770, 0xc001126000}, 0xc000d26480) pkg/sentry/fsimpl/kernfs/filesystem.go:793 +0x52b fp=0xc00136d558 sp=0xc00136d290 pc=0xa568ab gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*filesystem).RmdirAt(0xc0003a8400, {0x1ca7770, 0xc001126000}, 0xc000d40800) :1 +0x65 fp=0xc00136d5a0 sp=0xc00136d558 pc=0x104a205 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc0011268a0, {0x1ca7770, 0xc001126000}, 0xc0008f4ab0, 0xc00136d738) pkg/sentry/vfs/vfs.go:562 +0x1f4 fp=0xc00136d620 sp=0xc00136d5a0 pc=0x8ecd54 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc001126000, 0x2757bb4, 0x1) pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x1e9 fp=0xc00136d7e8 sp=0xc00136d620 pc=0x134d4a9 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Unlinkat(0xc001126000, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:296 +0x54 fp=0xc00136d830 sp=0xc00136d7e8 pc=0x134da94 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001126000, 0x107, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/kernel/task_syscall.go:103 +0x4dc fp=0xc00136da80 sp=0xc00136d830 pc=0xcc0dbc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001126000, 0x46f7f9, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/kernel/task_syscall.go:238 +0x6a fp=0xc00136db08 sp=0xc00136da80 pc=0xcc1e6a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0001fca50, 0x46fcac, {{0x3}, {0x200000c0}, {0x200}, {0x1}, {0x1}, {0x1}}) pkg/sentry/kernel/task_syscall.go:198 +0x8f fp=0xc00136db80 sp=0xc00136db08 pc=0xcc18ef gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001126000) pkg/sentry/kernel/task_syscall.go:173 +0x3c5 fp=0xc00136dc88 sp=0xc00136db80 pc=0xcc1525 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc001126000, 0xc001126000) pkg/sentry/kernel/task_run.go:254 +0x1698 fp=0xc00136deb8 sp=0xc00136dc88 pc=0xcade78 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001126000, 0x72) pkg/sentry/kernel/task_run.go:95 +0x35b fp=0xc00136dfb0 sp=0xc00136deb8 pc=0xcabdbb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·235() pkg/sentry/kernel/task_start.go:339 +0x48 fp=0xc00136dfe0 sp=0xc00136dfb0 pc=0xcbedc8 runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00136dfe8 sp=0xc00136dfe0 pc=0x46e081 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:339 +0x1a9