syzbot


panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:

Status: moderation: reported syz repro on 2022/06/14 02:33
Reported-by: syzbot+7b2e828aaa388d4da86e@syzkaller.appspotmail.com
First crash: 903d, last: 895d

Sample crash report:
panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
goroutine 153 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0xa0)
	pkg/log/log.go:316 +0xd3
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001be680, 0xc000498980, {0xc000626c30, 0x1, 0x1})
	pkg/sync/locking/lockdep.go:56 +0x225
gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc0004990a0, 0xc0008bee30)
	pkg/sync/locking/lockdep.go:76 +0x7a
gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000499080, 0xc0008bef48)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x334
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001be680, 0xc000499080, {0x0, 0x0, 0x0})
	pkg/sync/locking/lockdep.go:73 +0x4aa
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0001be680, 0x0)
	pkg/sync/locking/lockdep.go:107 +0x33e
gvisor.dev/gvisor/pkg/sentry/vfs.(*inotifyEventMutex).Lock(0xc0004f2bf8)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/vfs/inotify_event_mutex.go:18 +0x53
gvisor.dev/gvisor/pkg/sentry/vfs.(*Inotify).queueEvent(0xc0004f2b60, 0x0)
	pkg/sentry/vfs/inotify.go:276 +0x55
gvisor.dev/gvisor/pkg/sentry/vfs.(*Watch).Notify(0xc0007f1b80, {0x0, 0x0}, 0x8, 0x0)
	pkg/sentry/vfs/inotify.go:609 +0x106
gvisor.dev/gvisor/pkg/sentry/vfs.(*Watches).Notify(0xc0001d74c8, {0x1c0acb0, 0xc000811500}, {0x0, 0x0}, 0x268d9dc, 0x0, 0x0, 0x0)
	pkg/sentry/vfs/inotify.go:481 +0x1c7
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*dentry).InotifyWithParent(0xc00091c3c0, {0x1c0acb0, 0xc000811500}, 0x8, 0x0, 0xec)
	pkg/sentry/fsimpl/tmpfs/tmpfs.go:405 +0x210
gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).InotifyWithParent(0xc00091c3c0, {0x1c0acb0, 0xc000811500}, 0x470e65, 0x0, 0x7d)
	pkg/sentry/vfs/dentry.go:173 +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(0xc000900300, 0xc0008bf4a8)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/vfs/file_description_refs.go:131 +0xb2
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc000900300, {0x1c0acb0, 0xc000811500})
	pkg/sentry/vfs/file_description.go:161 +0x87
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Close(0xc000811500, {{0x3}, {0xffffffffffffffff}, {0x56272137a460}, {0x7fb3ad9444c0}, {0x0}, {0x56272137a468}})
	pkg/sentry/syscalls/linux/vfs2/fd.go:46 +0x225
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000811500, 0x3, {{0x3}, {0xffffffffffffffff}, {0x56272137a460}, {0x7fb3ad9444c0}, {0x0}, {0x56272137a468}})
	pkg/sentry/kernel/task_syscall.go:142 +0xaf7
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000811500, 0x1, {{0x3}, {0xffffffffffffffff}, {0x56272137a460}, {0x7fb3ad9444c0}, {0x0}, {0x56272137a468}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000ab42d0, 0x1, {{0x3}, {0xffffffffffffffff}, {0x56272137a460}, {0x7fb3ad9444c0}, {0x0}, {0x56272137a468}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000811500)
	pkg/sentry/kernel/task_syscall.go:257 +0x4c7
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000811500, 0xc000811500)
	pkg/sentry/kernel/task_run.go:253 +0x19fc
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000811500, 0x19)
	pkg/sentry/kernel/task_run.go:94 +0x2d4
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:369 +0x1d1

Crashes (33):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/13 03:18 gvisor 605841baade7 0d5abf15 .config console log report syz ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 03:05 gvisor 605841baade7 0d5abf15 .config console log report syz ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 03:03 gvisor 605841baade7 0d5abf15 .config console log report syz ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 02:39 gvisor 605841baade7 0d5abf15 .config console log report syz ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/15 11:25 gvisor 1ff543e17ee3 1719ee24 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/15 11:00 gvisor 1ff543e17ee3 127d1faf .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/15 10:15 gvisor 1ff543e17ee3 127d1faf .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/15 10:12 gvisor 1ff543e17ee3 127d1faf .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/14 21:34 gvisor ebadfe7702fe 127d1faf .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/14 20:55 gvisor ebadfe7702fe 127d1faf .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/14 10:04 gvisor 82498d087ef8 9ce2c85a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 19:17 gvisor ab4f6830bc4d 0f087040 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 18:55 gvisor ab4f6830bc4d 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 18:51 gvisor ab4f6830bc4d 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 17:48 gvisor 605841baade7 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/13 02:15 gvisor 605841baade7 0d5abf15 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/11 13:55 gvisor 605841baade7 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/11 13:31 gvisor 605841baade7 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/11 13:04 gvisor 605841baade7 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/11 00:21 gvisor 6294e603c685 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/10 11:16 gvisor 1dad561c8b60 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/10 10:41 gvisor 1dad561c8b60 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/09 08:34 gvisor c3a7b477f9f0 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/08 19:11 gvisor 8b5289e723b5 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/08 18:53 gvisor 8b5289e723b5 0d5abf15 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/08 15:06 gvisor 8b5289e723b5 b2706118 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/08 14:47 gvisor 8b5289e723b5 b2706118 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/08 08:39 gvisor 8b5289e723b5 b2706118 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/08 03:03 gvisor e64458ff08b6 b2706118 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/08 02:59 gvisor e64458ff08b6 b2706118 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/07 02:36 gvisor f13e23932ba1 c8857892 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/07 01:29 gvisor a30c81cd8022 c8857892 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
2022/06/07 01:26 gvisor f13e23932ba1 c8857892 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> vfs.inotifyEventMutex:
* Struck through repros no longer work on HEAD.