syzbot


panic: nested locking: kernfs.filesystemRWMutex: (2)

Status: closed as invalid on 2023/01/19 20:51
First crash: 807d, last: 756d
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: (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
gvisor panic: nested locking: kernfs.filesystemRWMutex: C 5 850d 851d 0/26 closed as invalid on 2022/08/09 17:49

Sample crash report:
panic: nested locking: kernfs.filesystemRWMutex:
goroutine 81628 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0x80?)
	pkg/log/log.go:318 +0xd3
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000187280, 0x0)
	pkg/sync/locking/lockdep.go:105 +0x499
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).RLock(0xc000330a50)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:46 +0x53
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).InotifyWithParent(0xc002520750, {0x1bfe2f0, 0xc007227500}, 0x8, 0x0?, 0xac?)
	pkg/sentry/fsimpl/kernfs/kernfs.go:518 +0xe9
gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).InotifyWithParent(0xc002520750, {0x1bfe2f0, 0xc007227500}, 0x52547?, 0x1?, 0x65?)
	pkg/sentry/vfs/dentry.go:187 +0x8d
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1()
	pkg/sentry/vfs/file_description.go:167 +0x10d
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc0069966c0, 0xc0049a68d8)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0xb2
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc0069966c0, {0x1bfe2f0, 0xc007227500})
	pkg/sentry/vfs/file_description.go:161 +0x87
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).SafeDecRefFD(0xc0003300a0, {0x1bfe2f0, 0xc007227500}, 0xc0069966c0)
	pkg/sentry/fsimpl/kernfs/kernfs.go:153 +0xfc
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*fdSymlink).Getlink(0xc001a35900, {0x1bfe2f0, 0xc007227500}, 0x1?)
	pkg/sentry/fsimpl/proc/task_fds.go:241 +0x1f3
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).stepExistingLocked(0xc005edf200?, {0x1bfe2f0, 0xc007227500}, 0xc005edf200, 0xc001ac10e0, 0x1)
	pkg/sentry/fsimpl/kernfs/filesystem.go:86 +0x4be
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).walkExistingLocked(0xc0003300f0?, {0x1bfe2f0, 0xc007227500}, 0xc005edf200)
	pkg/sentry/fsimpl/kernfs/filesystem.go:166 +0x119
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).OpenAt(0xc0003300a0, {0x1bfe2f0, 0xc007227500}, 0xc005edf200, {0x2, 0x0, 0x0})
	pkg/sentry/fsimpl/kernfs/filesystem.go:494 +0x192
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).OpenAt(0xc00099dc20?, {0x1bfe2f0, 0xc007227500}, 0xc000798000?, 0xc0033db488, 0xc0049a7370)
	pkg/sentry/vfs/vfs.go:428 +0x674
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.openat(0xc007227500, 0x25a7ce4?, 0x1?, 0x2, 0x0)
	pkg/sentry/syscalls/linux/vfs2/filesystem.go:179 +0x373
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Openat(0x3e?, {{0xffffff9c}, {0x7f39a1e2f290}, {0x2}, {0x0}, {0x0}, {0x7f39a1e2f120}})
	pkg/sentry/syscalls/linux/vfs2/filesystem.go:158 +0xcb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc007227500, 0x101, {{0xffffff9c}, {0x7f39a1e2f290}, {0x2}, {0x0}, {0x0}, {0x7f39a1e2f120}})
	pkg/sentry/kernel/task_syscall.go:142 +0xab8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc007227500, 0x1?, {{0xffffff9c}, {0x7f39a1e2f290}, {0x2}, {0x0}, {0x0}, {0x7f39a1e2f120}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc008dcb770?, 0x46fbcc?, {{0xffffff9c}, {0x7f39a1e2f290}, {0x2}, {0x0}, {0x0}, {0x7f39a1e2f120}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc007227500)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc007227500?, 0xc007227500)
	pkg/sentry/kernel/task_run.go:253 +0x1e2b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc007227500, 0xc9b)
	pkg/sentry/kernel/task_run.go:94 +0x2c2
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:380 +0x1d0

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/11 15:13 gvisor 2828b3f3641d 356d8217 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: nested locking: kernfs.filesystemRWMutex:
2022/09/11 10:43 gvisor 2828b3f3641d 356d8217 .config console log report syz C ci-gvisor-ptrace-1-race panic: nested locking: kernfs.filesystemRWMutex:
2022/09/11 09:48 gvisor 2828b3f3641d 356d8217 .config console log report syz C ci-gvisor-ptrace-3-race panic: nested locking: kernfs.filesystemRWMutex:
2022/09/11 10:02 gvisor 2828b3f3641d 356d8217 .config console log report syz ci-gvisor-ptrace-2-race panic: nested locking: kernfs.filesystemRWMutex:
2022/11/01 02:45 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1-race panic: nested locking: kernfs.filesystemRWMutex:
2022/10/09 05:45 gvisor 3f60372ea355 aea5da89 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: kernfs.filesystemRWMutex:
2022/10/07 14:46 gvisor 1f101ba738bf 79a59635 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: kernfs.filesystemRWMutex:
2022/09/11 09:35 gvisor 2828b3f3641d 356d8217 .config console log report info ci-gvisor-ptrace-3-race panic: nested locking: kernfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.