syzbot


panic: nested locking: kernfs.filesystemRWMutex:

Status: closed as invalid on 2022/08/09 17:49
First crash: 851d, last: 850d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: nested locking: kernfs.filesystemRWMutex: (7) 4 459d 461d 26/26 fixed on 2023/08/30 02:45
gvisor panic: nested locking: kernfs.filesystemRWMutex: (3) syz 19 649d 674d 18/26 fixed on 2023/02/17 22:08
gvisor panic: nested locking: kernfs.filesystemRWMutex: (5) 5 530d 531d 26/26 fixed on 2023/06/15 20:22
gvisor panic: nested locking: kernfs.filesystemRWMutex: (6) C 8 462d 477d 26/26 fixed on 2023/08/23 02:32
gvisor panic: nested locking: kernfs.filesystemRWMutex: (9) 1 196d 196d 0/26 auto-obsoleted due to no activity on 2024/08/20 13:26
gvisor panic: nested locking: kernfs.filesystemRWMutex: (2) C 8 756d 807d 0/26 closed as invalid on 2023/01/19 20:51
gvisor panic: nested locking: kernfs.filesystemRWMutex: (4) C 31 532d 626d 26/26 fixed on 2023/06/13 14:23
gvisor panic: nested locking: kernfs.filesystemRWMutex: (8) 1 351d 344d 0/26 auto-obsoleted due to no activity on 2024/03/10 05:57

Sample crash report:
panic: nested locking: kernfs.filesystemRWMutex:
goroutine 64811 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0x40?)
	pkg/log/log.go:318 +0xd3
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000235400, 0x0)
	pkg/sync/locking/lockdep.go:105 +0x499
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).Lock(0xc00064a190)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:18 +0x53
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).DecRef(0xc00525de60, {0x1bffed0, 0xc000de7500})
	pkg/sentry/fsimpl/kernfs/kernfs.go:282 +0xcc
gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).DecRef(0xc00525de60, {0x1bffed0, 0xc000de7500})
	pkg/sentry/vfs/dentry.go:161 +0x6e
gvisor.dev/gvisor/pkg/sentry/vfs.VirtualDentry.DecRef({0xc000526420?, 0xc00525de60?}, {0x1bffed0, 0xc000de7500})
	pkg/sentry/vfs/vfs.go:914 +0x6a
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1()
	pkg/sentry/vfs/file_description.go:196 +0x42a
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc0012778c0, 0xc0056aa908)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0xb2
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc0012778c0, {0x1bffed0, 0xc000de7500})
	pkg/sentry/vfs/file_description.go:161 +0x87
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).SafeDecRefFD(0xc0006bc500, {0x1bffed0, 0xc000de7500}, 0xc0012778c0)
	pkg/sentry/fsimpl/kernfs/kernfs.go:153 +0xfc
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.taskFDExists({0x1bffed0, 0xc000de7500}, 0xc0006bc500, 0x20?, 0x1233490?)
	pkg/sentry/fsimpl/proc/task_fds.go:50 +0x8f
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*fdDirInode).Lookup(0xc001233180, {0x1bffed0, 0xc000de7500}, {0xc00430aa0e, 0x1})
	pkg/sentry/fsimpl/proc/task_fds.go:148 +0x10d
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).revalidateChildLocked(0x181d540?, {0x1bffed0, 0xc000de7500}, 0x1?, 0xc00508e750, {0xc00430aa0e, 0x1}, 0x0)
	pkg/sentry/fsimpl/kernfs/filesystem.go:134 +0x251
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).stepExistingLocked(0xc001024000?, {0x1bffed0, 0xc000de7500}, 0xc001024000, 0xc00508e750, 0x1)
	pkg/sentry/fsimpl/kernfs/filesystem.go:76 +0x350
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).walkExistingLocked(0xc0006bc550?, {0x1bffed0, 0xc000de7500}, 0xc001024000)
	pkg/sentry/fsimpl/kernfs/filesystem.go:166 +0x119
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).OpenAt(0xc0006bc500, {0x1bffed0, 0xc000de7500}, 0xc001024000, {0x2, 0x0, 0x0})
	pkg/sentry/fsimpl/kernfs/filesystem.go:490 +0x192
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).OpenAt(0xc004234a00?, {0x1bffed0, 0xc000de7500}, 0xc000515200?, 0xc0056ab488, 0xc006761370)
	pkg/sentry/vfs/vfs.go:428 +0x674
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.openat(0xc000de7500, 0x470ec5?, 0x9a690e?, 0x2, 0x0)
	pkg/sentry/syscalls/linux/vfs2/filesystem.go:179 +0x373
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Openat(0x4665df?, {{0xffffff9c}, {0x7f2d84c84290}, {0x2}, {0x0}, {0x0}, {0x7f2d84c84110}})
	pkg/sentry/syscalls/linux/vfs2/filesystem.go:158 +0xcb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000de7500, 0x101, {{0xffffff9c}, {0x7f2d84c84290}, {0x2}, {0x0}, {0x0}, {0x7f2d84c84110}})
	pkg/sentry/kernel/task_syscall.go:142 +0xae2
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000de7500, 0x1?, {{0xffffff9c}, {0x7f2d84c84290}, {0x2}, {0x0}, {0x0}, {0x7f2d84c84110}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc001362870?, 0x46fb2c?, {{0xffffff9c}, {0x7f2d84c84290}, {0x2}, {0x0}, {0x0}, {0x7f2d84c84110}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000de7500)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000de7500?, 0xc000de7500)
	pkg/sentry/kernel/task_run.go:253 +0x1e2b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000de7500, 0xb2d)
	pkg/sentry/kernel/task_run.go:94 +0x2c2
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:370 +0x1d0

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/29 21:11 gvisor 3fe2b84bb44f 5e6028b9 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: nested locking: kernfs.filesystemRWMutex:
2022/07/29 14:26 gvisor 3fe2b84bb44f 5e6028b9 .config console log report syz C ci-gvisor-ptrace-1-race panic: nested locking: kernfs.filesystemRWMutex:
2022/07/29 13:22 gvisor 3fe2b84bb44f 5e6028b9 .config console log report syz C ci-gvisor-ptrace-3-race panic: nested locking: kernfs.filesystemRWMutex:
2022/07/29 14:11 gvisor 3fe2b84bb44f 5e6028b9 .config console log report syz ci-gvisor-ptrace-2-race panic: nested locking: kernfs.filesystemRWMutex:
2022/07/29 13:01 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: kernfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.