syzbot


panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:

Status: moderation: reported C repro on 2022/06/14 00:52
Reported-by: syzbot+595e806ff77a218f6b13@syzkaller.appspotmail.com
First crash: 903d, last: 5d00h

Sample crash report:
panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
goroutine 197 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0xa0)
	pkg/log/log.go:316 +0xd3
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001bd780, 0xc0001bdd00, {0xc000b36f00, 0x1, 0x1})
	pkg/sync/locking/lockdep.go:56 +0x225
gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc0001bdda0, 0xc000570898)
	pkg/sync/locking/lockdep.go:76 +0x7a
gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0001bdd80, 0xc0005709b0)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x334
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001bd780, 0xc0001bdd80, {0x0, 0x0, 0x0})
	pkg/sync/locking/lockdep.go:73 +0x4aa
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0001bd780, 0x0)
	pkg/sync/locking/lockdep.go:107 +0x33e
gvisor.dev/gvisor/pkg/sentry/mm.(*mappingRWMutex).RLock(0xc000bce064)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/mm/mapping_mutex.go:46 +0x53
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc000bce000, {0x1c709b0, 0xc000753500}, {0x5e046c, 0x470e65}, {0xb2, 0x14, 0xbc}, 0x0, 0xc000570e88)
	pkg/sentry/mm/io.go:530 +0x14b
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withVecInternalMappings(0xc000bce000, {0x1c709b0, 0xc000753500}, {0x0, 0x16c65d0, 0x0, 0x0}, {0x1, 0x0, 0x0}, ...)
	pkg/sentry/mm/io.go:591 +0x83f
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CopyInTo(0xc000bce000, {0x1c709b0, 0xc000753500}, {0x0, 0x1, 0x40, 0x470e65}, {0x1c19900, 0xc0007bc030}, {0x0, ...})
	pkg/sentry/mm/io.go:310 +0x2e9
gvisor.dev/gvisor/pkg/usermem.IOSequence.CopyInTo({{0x1c63d68, 0xc000bce000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, 0x1}}, {0x1c709b0, 0xc000753500}, ...)
	pkg/usermem/usermem.go:515 +0xd8
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*regularFileFD).pwrite(0xc0007d8580, {0x1c709b0, 0xc000753500}, {{0x1c63d68, 0xc000bce000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, ...}}, ...)
	pkg/sentry/fsimpl/tmpfs/regular_file.go:471 +0x5ae
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*regularFileFD).Write(0xc0007d8580, {0x1c709b0, 0xc000753500}, {{0x1c63d68, 0xc000bce000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, ...}}, ...)
	pkg/sentry/fsimpl/tmpfs/regular_file.go:495 +0x136
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc0007d8580, {0x1c709b0, 0xc000753500}, {{0x1c63d68, 0xc000bce000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, ...}}, ...)
	pkg/sentry/vfs/file_description.go:665 +0x14c
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0x46fc2c, 0x47135b, {{0x1c63d68, 0xc000bce000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, 0x1}}, ...)
	pkg/sentry/syscalls/linux/vfs2/read_write.go:348 +0xae
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc000753500, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7fab173bdc40}, {0x0}, {0x431bde82d7b634db}})
	pkg/sentry/syscalls/linux/vfs2/read_write.go:317 +0x36f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000753500, 0x1, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7fab173bdc40}, {0x0}, {0x431bde82d7b634db}})
	pkg/sentry/kernel/task_syscall.go:142 +0xaf7
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000753500, 0x1, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7fab173bdc40}, {0x0}, {0x431bde82d7b634db}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00055c4b0, 0x1, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7fab173bdc40}, {0x0}, {0x431bde82d7b634db}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000753500)
	pkg/sentry/kernel/task_syscall.go:257 +0x4c7
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000753500, 0xc000753500)
	pkg/sentry/kernel/task_run.go:247 +0x19fc
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000753500)
	pkg/sentry/kernel/task_run.go:90 +0x2c2
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:364 +0x1b1

Crashes (3876):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/10 22:53 gvisor 1dad561c8b60 0d5abf15 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2022/06/09 02:57 gvisor 8b5289e723b5 0d5abf15 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2022/06/09 01:13 gvisor 8b5289e723b5 0d5abf15 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2022/06/09 00:36 gvisor 8b5289e723b5 0d5abf15 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/16 04:51 gvisor 336dc8504327 cfe3a04a .config console log report syz / log ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/16 03:09 gvisor 336dc8504327 cfe3a04a .config console log report syz / log ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/15 20:58 gvisor 39a6242b5420 eeafb645 .config console log report syz / log ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2022/06/07 22:46 gvisor a30c81cd8022 b2706118 .config console log report syz ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 13:15 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 12:15 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 11:07 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 09:33 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 08:08 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 06:55 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 05:37 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 03:22 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 01:08 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/21 01:05 gvisor 151f3fb3bf57 4b25d554 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 23:50 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 22:21 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 21:11 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 18:01 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 16:11 gvisor 488d5d2f48f0 4fca1650 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 13:40 gvisor a92fc7b8c963 4fca1650 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 12:28 gvisor a92fc7b8c963 4fca1650 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 11:35 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 10:20 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 08:50 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 07:27 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 06:07 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 04:02 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 02:37 gvisor a92fc7b8c963 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 01:23 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/20 00:22 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 22:38 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 21:15 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 19:57 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 18:47 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 17:21 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 16:28 gvisor 6666e9fc8559 7d02db5a .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 14:53 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 13:21 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 11:33 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 10:33 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 08:36 gvisor 6666e9fc8559 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 05:32 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 04:33 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 01:36 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 23:54 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 22:52 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 21:37 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 20:20 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 19:35 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 16:53 gvisor 336dc8504327 571351cb .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 11:37 gvisor 336dc8504327 e7bb5d6e .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/18 04:23 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/17 23:48 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/17 15:51 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/17 04:22 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/16 16:16 gvisor 336dc8504327 cfe3a04a .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2024/11/19 06:48 gvisor 03a28d158e54 571351cb .config console log report info ci-gvisor-arm64-ptrace-1-race panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
2022/06/07 00:42 gvisor a30c81cd8022 c8857892 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex:
* Struck through repros no longer work on HEAD.