syzbot


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

Status: auto-obsoleted due to no activity on 2024/03/10 05:57
Reported-by: syzbot+e11325b7fc19a46fec56@syzkaller.appspotmail.com
First crash: 351d, last: 351d
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: C 5 850d 851d 0/26 closed as invalid on 2022/08/09 17:49

Sample crash report:
panic: nested locking: kernfs.filesystemRWMutex:
goroutine 55020 [running]:
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).RLock(0xc00089a050)
	bazel-out/aarch64-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:59 +0x50
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).InotifyWithParent(0xc000466750, {0x7abd68, 0xc005ab0000}, 0x10, 0x0?, 0x94?)
	pkg/sentry/fsimpl/kernfs/kernfs.go:540 +0xe8
gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).InotifyWithParent(0xc000466750, {0x7abd68, 0xc005ab0000}, 0x1576e04?, 0x0?, 0x80?)
	pkg/sentry/vfs/dentry.go:188 +0x84
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1()
	pkg/sentry/vfs/file_description.go:167 +0x108
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc00209dc30, 0xc00194a7a8)
	bazel-out/aarch64-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:132 +0xa0
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc00209dc30, {0x7abd68, 0xc005ab0000})
	pkg/sentry/vfs/file_description.go:161 +0x74
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).SafeDecRefFD(0xc000ab6000, {0x7abd68, 0xc005ab0000}, 0xc00209dc30)
	pkg/sentry/fsimpl/kernfs/kernfs.go:154 +0x10c
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*fdSymlink).Getlink(0xc006490780, {0x7abd68, 0xc005ab0000}, 0x1?)
	pkg/sentry/fsimpl/proc/task_fds.go:244 +0x178
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).stepExistingLocked(0xc006062000?, {0x7abd68, 0xc005ab0000}, 0xc006062000, 0xc002f15170)
	pkg/sentry/fsimpl/kernfs/filesystem.go:85 +0x528
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).walkExistingLocked(0xc000ab6050?, {0x7abd68, 0xc005ab0000}, 0xc006062000)
	pkg/sentry/fsimpl/kernfs/filesystem.go:163 +0xfc
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).OpenAt(0xc000ab6000, {0x7abd68, 0xc005ab0000}, 0xc006062000, {0x20000, 0x0, 0x0})
	pkg/sentry/fsimpl/kernfs/filesystem.go:486 +0xf8
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).OpenAt(0xc0050a0a40?, {0x7abd68, 0xc005ab0000}, 0x5d48c?, 0xc00194b3c8, 0xc00194b280)
	pkg/sentry/vfs/vfs.go:475 +0x4f4
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.openat(0xc005ab0000, 0x12c7098?, 0xc00194b498?, 0x0, 0x0)
	pkg/sentry/syscalls/linux/sys_file.go:112 +0x238
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Openat(0xc00194b578?, 0x12be6f4?, {{0xffffffffffffff9c}, {0xe69ccbb709f0}, {0x0}, {0x0}, {0x0}, {0x8080808080808080}})
	pkg/sentry/syscalls/linux/sys_file.go:91 +0xb0
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc005ab0000, 0x38, {{0xffffffffffffff9c}, {0xe69ccbb709f0}, {0x0}, {0x0}, {0x0}, {0x8080808080808080}})
	pkg/sentry/kernel/task_syscall.go:142 +0x81c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc005ab0000, 0x1?, {{0xffffffffffffff9c}, {0xe69ccbb709f0}, {0x0}, {0x0}, {0x0}, {0x8080808080808080}})
	pkg/sentry/kernel/task_syscall.go:322 +0x60
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc005ab0000?, 0x38?, {{0xffffffffffffff9c}, {0xe69ccbb709f0}, {0x0}, {0x0}, {0x0}, {0x8080808080808080}})
	pkg/sentry/kernel/task_syscall.go:282 +0xa8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc005ab0000)
	pkg/sentry/kernel/task_syscall.go:257 +0x474
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc005ab0000?, 0xc005ab0000)
	pkg/sentry/kernel/task_run.go:269 +0x18e4
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc005ab0000, 0xb30)
	pkg/sentry/kernel/task_run.go:98 +0x28c
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 55252
	pkg/sentry/kernel/task_start.go:392 +0x1a8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/11 05:57 gvisor 0bdb383c2467 28b24332 .config console log report info ci-gvisor-arm64-ptrace-1-race-cover panic: nested locking: kernfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.