syzbot


panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> kernfs.filesystemRWMutex: (2)

Status: fixed on 2023/06/09 01:56
Fix commit: ed528835f753 Small circular lock fix.
First crash: 558d, last: 558d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> kernfs.filesystemRWMutex: 1 691d 691d 18/26 fixed on 2023/01/21 05:29

Sample crash report:
panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> kernfs.filesystemRWMutex:
goroutine 1445574 [running]:
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).Lock(0xc00023d250)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:31 +0x58
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).MkdirAt(0xc00023d200, {0x75bbf8, 0xc008608000}, 0xc004059680, {0x3f6c?, 0x23?})
	pkg/sentry/fsimpl/kernfs/filesystem.go:406 +0xc5
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).MkdirAt(0xc004299ec0?, {0x75bbf8, 0xc008608000}, 0xc00768b8c0?, 0xc003299448, 0xc003299394)
	pkg/sentry/vfs/vfs.go:357 +0x37f
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.mkdirat(0xc008608000, 0x284ad5c?, 0x1?, 0x0)
	pkg/sentry/syscalls/linux/sys_file.go:947 +0x328
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Mkdir(0x0?, 0xc0032995d0?, {{0x20000000}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/sys_file.go:926 +0x87
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc008608000, 0x53, {{0x20000000}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0xabf
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc008608000, 0x1?, {{0x20000000}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc010147d10?, 0xc003299b37?, {{0x20000000}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc008608000)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc008608000?, 0xc008608000)
	pkg/sentry/kernel/task_run.go:269 +0x22b4
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc008608000, 0x83cb)
	pkg/sentry/kernel/task_run.go:98 +0x35b
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:377 +0x1da

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/18 02:36 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> kernfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.