syzbot


panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:

Status: fixed on 2022/12/03 10:02
Fix commit: d0ae59368d8a cgroupfs: Fix lock ordering between kernfs.Filesystem.mu and TaskSet.mu.
First crash: 726d, last: 724d

Sample crash report:
panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
goroutine 211 [running]:
gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0000220b0, 0xc00054a808)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x232
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000360fc0, 0xc000022090, {0x0, 0x0, 0x0})
	pkg/sync/locking/lockdep.go:98 +0x373
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000360fc0, 0xffffffffffffffff)
	pkg/sync/locking/lockdep.go:126 +0x28c
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).Lock(0xc00033e830)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:31 +0x45
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).DecRef(0xc00056aa20, {0x1b0e328, 0xc00021d0e0})
	pkg/sentry/fsimpl/kernfs/kernfs.go:286 +0x79
gvisor.dev/gvisor/pkg/sentry/kernel.(*Cgroup).decRef(0xc00031a630)
	pkg/sentry/kernel/cgroup.go:121 +0x5c
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask(0xc000257490, {0x1b0e7f0, 0xc000663500}, 0xc00054b338)
	pkg/sentry/kernel/task_start.go:244 +0x14d1
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).NewTask(0xc000663500?, {0x1b0e7f0, 0xc000663500}, 0xc00054b338)
	pkg/sentry/kernel/task_start.go:127 +0xeb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc000663500, 0xc00054b418)
	pkg/sentry/kernel/task_clone.go:219 +0x1da5
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0x471337?, 0x1200011, 0x0, 0x0, 0x5652dddb55d0, 0x0)
	pkg/sentry/syscalls/linux/sys_thread.go:217 +0xfc
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0x915a?, {{0x1200011}, {0x0}, {0x0}, {0x5652dddb55d0}, {0x0}, {0x5652dddb5300}})
	pkg/sentry/syscalls/linux/sys_clone_amd64.go:36 +0x4e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000663500, 0x38, {{0x1200011}, {0x0}, {0x0}, {0x5652dddb55d0}, {0x0}, {0x5652dddb5300}})
	pkg/sentry/kernel/task_syscall.go:142 +0x9b8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000663500, 0x0?, {{0x1200011}, {0x0}, {0x0}, {0x5652dddb55d0}, {0x0}, {0x5652dddb5300}})
	pkg/sentry/kernel/task_syscall.go:322 +0x7d
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0003c5860?, 0xc0007401e0?, {{0x1200011}, {0x0}, {0x0}, {0x5652dddb55d0}, {0x0}, {0x5652dddb5300}})
	pkg/sentry/kernel/task_syscall.go:282 +0x8f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000663500)
	pkg/sentry/kernel/task_syscall.go:257 +0x496
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000663500?, 0xc000663500)
	pkg/sentry/kernel/task_run.go:253 +0x18f9
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000663500, 0x12)
	pkg/sentry/kernel/task_run.go:94 +0x354
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:380 +0x1a8

Crashes (351):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/01 04:07 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:01 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/03 04:05 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 21:44 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 20:37 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 19:14 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 15:35 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 13:33 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 11:45 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 06:28 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 05:48 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 02:05 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/02 01:03 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 23:59 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 22:22 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 19:07 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 18:00 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 17:12 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 16:44 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 14:42 gvisor 4f2479ae58f1 3b580c21 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 13:57 gvisor 4f2479ae58f1 3b580c21 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 13:29 gvisor 4f2479ae58f1 3b580c21 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 12:30 gvisor 4f2479ae58f1 3b580c21 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 11:31 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 09:30 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 07:12 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 06:11 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 05:11 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 03:47 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 03:22 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 02:58 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 02:41 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 02:13 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 01:43 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 01:26 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:59 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:57 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:56 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:55 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:53 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:53 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:49 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:49 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:48 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:46 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:44 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:43 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.signalHandlersMutex -> kernfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.