syzbot


panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:

Status: moderation: reported syz repro on 2022/06/14 03:14
Reported-by: syzbot+670d59cab07347d768d0@syzkaller.appspotmail.com
First crash: 853d, last: 844d

Sample crash report:
panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
goroutine 1027 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0xe0)
	pkg/log/log.go:316 +0x8d
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001c1780, 0xc0001c1d00, {0xc00051b818, 0x1, 0x1})
	pkg/sync/locking/lockdep.go:56 +0x1f4
gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc0001c06a0, 0xc0009de718)
	pkg/sync/locking/lockdep.go:76 +0x65
gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0001c0680, 0xc0009de830)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x226
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001c1780, 0xc0001c0680, {0x0, 0x0, 0x0})
	pkg/sync/locking/lockdep.go:73 +0x46c
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0001c1780, 0x0)
	pkg/sync/locking/lockdep.go:107 +0x3ba
gvisor.dev/gvisor/pkg/sentry/mm.(*mappingRWMutex).RLock(0xc000772064)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/mm/mapping_mutex.go:46 +0x3f
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc000772000, {0x1b84550, 0xc000428000}, {0x451980, 0x0}, {0x4, 0x0, 0x0}, 0x0, 0xc0009dec38)
	pkg/sentry/mm/io.go:530 +0xf8
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CopyOut(0xc000772000, {0x1b84550, 0xc000428000}, 0x200038c0, {0xc0004603d0, 0x47141c, 0x10}, {0x1, 0x0})
	pkg/sentry/mm/io.go:120 +0x26c
gvisor.dev/gvisor/pkg/usermem.CopyOutVec({0x1b84550, 0xc000428000}, {0x1b77628, 0xc000772000}, {0x0, 0x470e65, 0x92a8c5, 0x25ef020}, {0xc0004603d0, 0x10, ...}, ...)
	pkg/usermem/usermem.go:263 +0x1ec
gvisor.dev/gvisor/pkg/usermem.IOSequence.CopyOut(...)
	pkg/usermem/usermem.go:481
gvisor.dev/gvisor/pkg/sentry/vfs.(*Event).CopyTo(0xc00032a6c0, {0x1b84550, 0xc000428000}, {0xc0004603d0, 0x100000002, 0x470e65}, {{0x1b77628, 0xc000772000}, {0x0, 0x1, ...}, ...})
	pkg/sentry/vfs/inotify.go:698 +0x571
gvisor.dev/gvisor/pkg/sentry/vfs.(*Inotify).Read(0xc0003720e0, {0x1b84550, 0xc000428000}, {{0x1b77628, 0xc000772000}, {0x0, 0x1, 0x200038c0, 0xb4}, {0x0, ...}}, ...)
	pkg/sentry/vfs/inotify.go:244 +0x509
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Read(0xc0003720e0, {0x1b84550, 0xc000428000}, {{0x1b77628, 0xc000772000}, {0x0, 0x1, 0x200038c0, 0xb4}, {0x0, ...}}, ...)
	pkg/sentry/vfs/file_description.go:634 +0x15e
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.read(0x470e65, 0xc0003720e0, {{0x1b77628, 0xc000772000}, {0x0, 0x1, 0x200038c0, 0xb4}, {0x0, 0x1}}, ...)
	pkg/sentry/syscalls/linux/vfs2/read_write.go:117 +0x45d
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Readv(0xc000428000, {{0x4}, {0x20000140}, {0x1}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/vfs2/read_write.go:88 +0x2bc
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000428000, 0x13, {{0x4}, {0x20000140}, {0x1}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0x9d8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000428000, 0x46f779, {{0x4}, {0x20000140}, {0x1}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x6a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0004e0960, 0x46fc2c, {{0x4}, {0x20000140}, {0x1}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0x8f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000428000)
	pkg/sentry/kernel/task_syscall.go:257 +0x3e7
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000428000, 0xc000428000)
	pkg/sentry/kernel/task_run.go:253 +0x16b8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000428000, 0x1f)
	pkg/sentry/kernel/task_run.go:94 +0x35b
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:370 +0x1a9

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/14 20:14 gvisor 82498d087ef8 9ce2c85a .config console log report syz ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 20:11 gvisor 82498d087ef8 9ce2c85a .config console log report syz ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 20:06 gvisor 82498d087ef8 9ce2c85a .config console log report syz ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 19:49 gvisor 82498d087ef8 9ce2c85a .config console log report syz ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/16 02:00 gvisor b25254313368 1719ee24 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/16 01:36 gvisor b25254313368 1719ee24 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/16 01:23 gvisor b25254313368 1719ee24 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/15 12:15 gvisor 1ff543e17ee3 1719ee24 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/15 12:02 gvisor 1ff543e17ee3 1719ee24 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/15 11:55 gvisor 1ff543e17ee3 1719ee24 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/15 11:18 gvisor 1ff543e17ee3 1719ee24 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/15 10:54 gvisor 1ff543e17ee3 127d1faf .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/15 10:00 gvisor 1ff543e17ee3 127d1faf .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 09:24 gvisor 82498d087ef8 9ce2c85a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 08:17 gvisor 82498d087ef8 0f087040 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 08:01 gvisor 82498d087ef8 0f087040 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 07:55 gvisor 82498d087ef8 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/14 07:11 gvisor 82498d087ef8 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/13 18:30 gvisor ab4f6830bc4d 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/13 17:58 gvisor ab4f6830bc4d 0f087040 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/13 17:38 gvisor 605841baade7 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/13 17:15 gvisor 605841baade7 0f087040 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/11 14:02 gvisor 605841baade7 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/11 00:17 gvisor 6294e603c685 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/11 00:09 gvisor 6294e603c685 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/09 22:00 gvisor 38b6e9ec938b 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/09 21:57 gvisor 38b6e9ec938b 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/08 22:02 gvisor 8b5289e723b5 0d5abf15 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/08 20:12 gvisor 3290a054c5bd 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/08 19:32 gvisor 8b5289e723b5 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/08 19:24 gvisor 8b5289e723b5 0d5abf15 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/08 15:39 gvisor 8b5289e723b5 b2706118 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/08 15:28 gvisor 8b5289e723b5 b2706118 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/07 21:15 gvisor e64458ff08b6 b2706118 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/07 18:20 gvisor e64458ff08b6 b2706118 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/07 13:32 gvisor a30c81cd8022 b2706118 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/07 13:02 gvisor a30c81cd8022 b2706118 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/07 12:17 gvisor a30c81cd8022 b2706118 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/07 03:09 gvisor a30c81cd8022 c8857892 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
2022/06/07 01:48 gvisor a30c81cd8022 c8857892 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: vfs.inotifyEventMutex -> mm.mappingRWMutex:
* Struck through repros no longer work on HEAD.