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:1647548056076380080 mtime:1647548056076380080 ctime:1647548056076380080} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc0008b76c0 tail:0xc0008b7a80} set:map[cgroup.procs:0xc0008b7900 cpu.cfs_period_us:0xc0008b7800 cpu.cfs_quota_us:0xc0008b7a80 cpu.shares:0xc0008b7940 cpuacct.stat:0xc0008b7840 cpuacct.usage:0xc0008b76c0 cpuacct.usage_sys:0xc0008b7700 cpuacct.usage_user:0xc0008b7980 cpuset.cpus:0xc0008b79c0 cpuset.mems:0xc0008b7a00 job.id:0xc0008b7880 memory.limit_in_bytes:0xc0008b78c0 memory.move_charge_at_immigrate:0xc0008b77c0 memory.soft_limit_in_bytes:0xc0008b7780 memory.usage_in_bytes:0xc0008b7740 tasks:0xc0008b7a40]} implStatFS:{} locks:{bsd:{mu:{m:{Mutex:{state:0 sema:0}}} locks:{root:{nrSegments:0 parent:<nil> 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:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}}] children:[<nil> <nil> <nil> <nil> <nil> <nil>]}} blockedQueue:{list:{head:<nil> tail:<nil>} 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:<nil> 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:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}}] children:[<nil> <nil> <nil> <nil> <nil> <nil>]}} blockedQueue:{list:{head:<nil> tail:<nil>} mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}}}}} fs:0xc0008cc000 cgi:0xc0008d9c00} controllers:map[cpu:0xc0008d22d0 cpuacct:0xc000424260 cpuset:0xc0008b7680 job:0xc000424400 memory:0xc0008d2300] 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:1647548056072430450 mtime:1647548056072430450 ctime:1647548056072430450} InodeNotSymlink:{} InodeDirectoryNoNewChildren:{} OrderedChildren:{writable:true mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}} order:{head:0xc0008b7240 tail:0xc0008b7600} set:map[cgroup.procs:0xc0008b7440 cpu.cfs_period_us:0xc0008b7600 cpu.cfs_quota_us:0xc0008b72c0 cpu.shares:0xc0008b75c0 cpuacct.stat:0xc0008b7300 cpuacct.usage:0xc0008b74c0 cpuacct.usage_sys:0xc0008b7500 cpuacct.usage_user:0xc0008b73c0 cpuset.cpus:0xc0008b7400 cpuset.mems:0xc0008b7540 job.id:0xc0008b7580 memory.limit_in_bytes:0xc0008b7280 memory.move_charge_at_immigrate:0xc0008b7480 memory.soft_limit_in_bytes:0xc0008b7380 memory.usage_in_bytes:0xc0008b7240 tasks:0xc0008b7340]} implStatFS:{} locks:{bsd:{mu:{m:{Mutex:{state:0 sema:0}}} locks:{root:{nrSegments:0 parent:<nil> 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:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}}] children:[<nil> <nil> <nil> <nil> <nil> <nil>]}} blockedQueue:{list:{head:<nil> tail:<nil>} 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:<nil> 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:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}} {Readers:map[] Writer:<nil> WriterInfo:{PID:0}}] children:[<nil> <nil> <nil> <nil> <nil> <nil>]}} blockedQueue:{list:{head:<nil> tail:<nil>} mu:{m:{w:{Mutex:{state:0 sema:0}} writerSem:0 readerSem:0 readerCount:0 readerWait:0}}}}} fs:0xc0008cc000 cgi:0xc0008d1c00} controllers:map[cpu:0xc0008d2180 cpuacct:0xc000424260 cpuset:0xc0008b7200 job:0xc000424360 memory:0xc0008d2150] ts:map[]}
goroutine 160 [running]:
panic({0x18f9a20, 0xc0004b87f0})
GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc0005e2f80 sp=0xc0005e2ec0 pc=0x437d08
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).checkExistingLocked(0xc0008c7c40, {0xc0005b0808, 0x5}, {0x1da44c8, 0xc0008d1c00})
pkg/sentry/fsimpl/kernfs/inode_impl_util.go:593 +0x279 fp=0xc0005e3028 sp=0xc0005e2f80 pc=0xac29f9
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).Unlink(0xc0008c7c40, {0x1, 0x200000004}, {0xc0005b0808, 0x5}, {0x1da44c8, 0xc0008d1c00})
pkg/sentry/fsimpl/kernfs/inode_impl_util.go:605 +0x145 fp=0xc0005e30e8 sp=0xc0005e3028 pc=0xac2bc5
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*OrderedChildren).RmDir(0xc0008d1c00, {0x1d9edf0, 0xc000994000}, {0xc0005b0808, 0x5}, {0x1da44c8, 0xc0008d1c00})
pkg/sentry/fsimpl/kernfs/inode_impl_util.go:617 +0x90 fp=0xc0005e3148 sp=0xc0005e30e8 pc=0xac2e90
gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*dir).RmDir(0xc0008c7c00, {0x1d9edf0, 0xc000994000}, {0xc0005b0808, 0x5}, {0x1da44c8, 0xc0008d1c00})
pkg/sentry/fsimpl/cgroupfs/cgroupfs.go:534 +0x3e6 fp=0xc0005e3250 sp=0xc0005e3148 pc=0x1128ae6
gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).RmDir(0xc0008c7c00, {0x1d9edf0, 0xc000994000}, {0xc0005b0808, 0x5}, {0x1da44c8, 0xc0008d1c00})
<autogenerated>:1 +0x8c fp=0xc0005e32a8 sp=0xc0005e3250 pc=0x11360ac
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).RmdirAt(0xc0008cc000, {0x1d9edf0, 0xc000994000}, 0xc0008bd200)
pkg/sentry/fsimpl/kernfs/filesystem.go:793 +0x5bf fp=0xc0005e35c0 sp=0xc0005e32a8 pc=0xab9abf
gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*filesystem).RmdirAt(0xc0008cc000, {0x1d9edf0, 0xc000994000}, 0xc0009948a0)
<autogenerated>:1 +0x65 fp=0xc0005e3608 sp=0xc0005e35c0 pc=0x113ee65
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc000994000, {0x1d9edf0, 0xc000994000}, 0xc0008c81b0, 0xc0005e37d0)
pkg/sentry/vfs/vfs.go:561 +0x2c6 fp=0xc0005e3690 sp=0xc0005e3608 pc=0x92e986
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc000994000, 0x4713bb, 0x28f645c)
pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x2a5 fp=0xc0005e3880 sp=0xc0005e3690 pc=0x146b345
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Unlinkat(0x7f8b18418558, {{0x3}, {0x200000c0}, {0x200}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}})
pkg/sentry/syscalls/linux/vfs2/filesystem.go:296 +0xdb fp=0xc0005e38e0 sp=0xc0005e3880 pc=0x146bb7b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000994000, 0x7f8b18418558, {{0x3}, {0x200000c0}, {0x200}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}})
pkg/sentry/kernel/task_syscall.go:103 +0x411 fp=0xc0005e3a88 sp=0xc0005e38e0 pc=0xd66151
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000994000, 0x1, {{0x3}, {0x200000c0}, {0x200}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}})
pkg/sentry/kernel/task_syscall.go:238 +0x8e fp=0xc0005e3b18 sp=0xc0005e3a88 pc=0xd675ce
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0005c42d0, 0x1, {{0x3}, {0x200000c0}, {0x200}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}, {0x7fcf8a75fe78}})
pkg/sentry/kernel/task_syscall.go:198 +0xc5 fp=0xc0005e3b90 sp=0xc0005e3b18 pc=0xd66ec5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000994000)
pkg/sentry/kernel/task_syscall.go:173 +0x4a7 fp=0xc0005e3ca0 sp=0xc0005e3b90 pc=0xd669e7
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000994000, 0xc000994000)
pkg/sentry/kernel/task_run.go:254 +0x19dc fp=0xc0005e3eb8 sp=0xc0005e3ca0 pc=0xd5189c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000994000, 0xd)
pkg/sentry/kernel/task_run.go:95 +0x2d4 fp=0xc0005e3fb0 sp=0xc0005e3eb8 pc=0xd4f474
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·236()
pkg/sentry/kernel/task_start.go:339 +0x48 fp=0xc0005e3fe0 sp=0xc0005e3fb0 pc=0xd63e88
runtime.goexit()
src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0005e3fe8 sp=0xc0005e3fe0 pc=0x46e081
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
pkg/sentry/kernel/task_start.go:339 +0x1d1