panic: nested locking: kernfs.filesystemRWMutex: goroutine 3756611 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x40?) pkg/log/log.go:318 +0x8d gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0001c3480, 0x0) pkg/sync/locking/lockdep.go:105 +0x4dd gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).RLock(0xc00030a190) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:46 +0x3f gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).InotifyWithParent(0xc005dff8c0, {0x1c9b590, 0xc0051d8a80}, 0x10, 0x0?, 0x1?) pkg/sentry/fsimpl/kernfs/kernfs.go:518 +0xa5 gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).InotifyWithParent(...) pkg/sentry/vfs/dentry.go:187 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1() pkg/sentry/vfs/file_description.go:167 +0xd8 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc003e59c80, 0xc00216a910) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc003e59c80, {0x1c9b590, 0xc0051d8a80}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).SafeDecRefFD(0xc00030a460, {0x1c9b590, 0xc0051d8a80}, 0xc003e59c80) pkg/sentry/fsimpl/kernfs/kernfs.go:153 +0xb3 gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.taskFDExists({0x1c9b590, 0xc0051d8a80}, 0xc00030a460, 0x20?, 0x471157?) pkg/sentry/fsimpl/proc/task_fds.go:50 +0x69 gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*fdDirInode).Lookup(0xc006155000, {0x1c9b590, 0xc0051d8a80}, {0xc005fac20e, 0x1}) pkg/sentry/fsimpl/proc/task_fds.go:149 +0xe5 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).revalidateChildLocked(0x1780dc0?, {0x1c9b590, 0xc0051d8a80}, 0x1?, 0xc0003706c0, {0xc005fac20e, 0x1}, 0x0) pkg/sentry/fsimpl/kernfs/filesystem.go:134 +0x1b5 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).stepExistingLocked(0xc00216ac20?, {0x1c9b590, 0xc0051d8a80}, 0xc007cca000, 0xc0003706c0, 0x1) pkg/sentry/fsimpl/kernfs/filesystem.go:76 +0x2ae gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).walkExistingLocked(0xc00030a4b0?, {0x1c9b590, 0xc0051d8a80}, 0xc007cca000) pkg/sentry/fsimpl/kernfs/filesystem.go:166 +0xd9 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).OpenAt(0xc00030a460, {0x1c9b590, 0xc0051d8a80}, 0xc007cca000, {0x0, 0x0, 0x0}) pkg/sentry/fsimpl/kernfs/filesystem.go:494 +0x1cd gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).OpenAt(0xc005321e50?, {0x1c9b590, 0xc0051d8a80}, 0xc00034db00?, 0xc00216b3f8, 0xc00216b2f0) pkg/sentry/vfs/vfs.go:428 +0x4ef gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.openat(0xc0051d8a80, 0x1?, 0x471185?, 0x0, 0x0) pkg/sentry/syscalls/linux/vfs2/filesystem.go:179 +0x2aa gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Openat(0xc0001c3e00?, {{0xffffff9c}, {0x7f5ce5e520d0}, {0x0}, {0x0}, {0x0}, {0x7f5ce5e51f50}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:158 +0x45 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0051d8a80, 0x101, {{0xffffff9c}, {0x7f5ce5e520d0}, {0x0}, {0x0}, {0x0}, {0x7f5ce5e51f50}}) pkg/sentry/kernel/task_syscall.go:142 +0x9b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0051d8a80, 0x0?, {{0xffffff9c}, {0x7f5ce5e520d0}, {0x0}, {0x0}, {0x0}, {0x7f5ce5e51f50}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc003c3d930?, 0xc006f04ff0?, {{0xffffff9c}, {0x7f5ce5e520d0}, {0x0}, {0x0}, {0x0}, {0x7f5ce5e51f50}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0051d8a80) pkg/sentry/kernel/task_syscall.go:257 +0x496 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0051d8a80?, 0xc0051d8a80) pkg/sentry/kernel/task_run.go:253 +0x18f9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0051d8a80, 0x832c) pkg/sentry/kernel/task_run.go:94 +0x354 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:380 +0x1a8