syzbot


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

Status: fixed on 2023/05/19 14:28
Fix commit: ed528835f753 Small circular lock fix.
First crash: 559d, 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 -> tmpfs.filesystemRWMutex: C 18 681d 756d 26/26 fixed on 2023/05/15 23:52

Sample crash report:
panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
goroutine 267 [running]:
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystemRWMutex).RLock(0xc0004d8380)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/tmpfs/filesystem_mutex.go:59 +0x45
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).GetDentryAt(0xc0004d8300, {0x82fb58, 0xc000afc000}, 0xc0004cc900, {0xfd?})
	pkg/sentry/fsimpl/tmpfs/filesystem.go:241 +0x85
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).GetDentryAt(0xc00059c401?, {0x82fb58, 0xc000afc000}, 0xc0007daf28?, 0x12d2118?, 0xc0007daf23)
	pkg/sentry/vfs/vfs.go:248 +0x13a
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).BindAt(0xc0007301e0, {0x82fb58?, 0xc000afc000}, 0xc000003400?, 0xc00059c400?, 0x1?)
	pkg/sentry/vfs/mount.go:386 +0xbf
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Mount(0xc000afc000, 0x3?, {{0x20000000}, {0x20000040}, {0x0}, {0x1400}, {0x0}, {0x7ec3cafb8b70}})
	pkg/sentry/syscalls/linux/sys_mount.go:84 +0xb05
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000afc000, 0xa5, {{0x20000000}, {0x20000040}, {0x0}, {0x1400}, {0x0}, {0x7ec3cafb8b70}})
	pkg/sentry/kernel/task_syscall.go:142 +0x9c2
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000afc000, 0x12ee1ba?, {{0x20000000}, {0x20000040}, {0x0}, {0x1400}, {0x0}, {0x7ec3cafb8b70}})
	pkg/sentry/kernel/task_syscall.go:322 +0x7d
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0x0?, 0x0?, {{0x20000000}, {0x20000040}, {0x0}, {0x1400}, {0x0}, {0x7ec3cafb8b70}})
	pkg/sentry/kernel/task_syscall.go:282 +0x8f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000afc000)
	pkg/sentry/kernel/task_syscall.go:257 +0x4c5
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000afc000?, 0xc000afc000)
	pkg/sentry/kernel/task_run.go:269 +0x1d4b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000afc000, 0x9)
	pkg/sentry/kernel/task_run.go:98 +0x41b
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:377 +0x1ad

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/18 01:16 gvisor 116f28e9c5f6 3bb7af1d .config console log report syz C ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 21:32 gvisor ec2e4cdd6621 258520f6 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 20:55 gvisor ec2e4cdd6621 258520f6 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/18 05:54 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/18 05:37 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/18 05:16 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/18 03:37 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/18 03:26 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/18 02:46 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/18 02:33 gvisor 116f28e9c5f6 3bb7af1d .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 21:00 gvisor ec2e4cdd6621 258520f6 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 20:35 gvisor ec2e4cdd6621 258520f6 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 19:25 gvisor ec2e4cdd6621 258520f6 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 15:38 gvisor ec2e4cdd6621 258520f6 .config console log report info ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 15:19 gvisor ec2e4cdd6621 258520f6 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 14:32 gvisor ec2e4cdd6621 258520f6 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
2023/05/17 12:06 gvisor ec2e4cdd6621 258520f6 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.virtualFilesystemMutex -> tmpfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.