syzbot


panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> 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.taskSetRWMutex -> kernfs.filesystemRWMutex:
goroutine 314 [running]:
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).Lock(0xc00025a290)
	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(0xc0003c0240, {0x1b0e328, 0xc00021f8c0})
	pkg/sentry/fsimpl/kernfs/kernfs.go:286 +0x79
gvisor.dev/gvisor/pkg/sentry/kernel.(*Cgroup).decRef(0xc00054e468)
	pkg/sentry/kernel/cgroup.go:121 +0x5c
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask(0xc000321ce0, {0x1b0e7f0, 0xc0005c3500}, 0xc0001d5338)
	pkg/sentry/kernel/task_start.go:244 +0x14d1
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).NewTask(0xc0005c3500?, {0x1b0e7f0, 0xc0005c3500}, 0xc0001d5338)
	pkg/sentry/kernel/task_start.go:127 +0xeb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc0005c3500, 0xc0001d5418)
	pkg/sentry/kernel/task_clone.go:219 +0x1da5
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0x471337?, 0x1200011, 0x0, 0x0, 0x5651f42f85d0, 0x0)
	pkg/sentry/syscalls/linux/sys_thread.go:217 +0xfc
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0xc00072d578?, {{0x1200011}, {0x0}, {0x0}, {0x5651f42f85d0}, {0x0}, {0x5651f42f8300}})
	pkg/sentry/syscalls/linux/sys_clone_amd64.go:36 +0x4e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0005c3500, 0x38, {{0x1200011}, {0x0}, {0x0}, {0x5651f42f85d0}, {0x0}, {0x5651f42f8300}})
	pkg/sentry/kernel/task_syscall.go:142 +0x9b8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0005c3500, 0x0?, {{0x1200011}, {0x0}, {0x0}, {0x5651f42f85d0}, {0x0}, {0x5651f42f8300}})
	pkg/sentry/kernel/task_syscall.go:322 +0x7d
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000576180?, 0xc0003fc1a0?, {{0x1200011}, {0x0}, {0x0}, {0x5651f42f85d0}, {0x0}, {0x5651f42f8300}})
	pkg/sentry/kernel/task_syscall.go:282 +0x8f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0005c3500)
	pkg/sentry/kernel/task_syscall.go:257 +0x496
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0005c3500?, 0xc0005c3500)
	pkg/sentry/kernel/task_run.go:253 +0x18f9
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0005c3500, 0x11)
	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 (2320):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/01 05:30 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 05:29 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 05:20 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 05:19 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 05:10 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 05:09 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 05:00 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:59 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:50 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:48 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:43 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:33 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:31 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:28 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:24 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 04:22 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 03:53 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 03:47 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 03:40 gvisor 4f2479ae58f1 4c2a66e8 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 02:03 gvisor 289e4554956d e080de16 .config console log report syz ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/03 08:58 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/03 05:35 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/03 04:18 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/03 03:15 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/03 02:07 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/03 00:49 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 23:30 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 21:50 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 21:38 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 21:19 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 20:59 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 20:34 gvisor 85d931396e79 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 19:30 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 18:14 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 16:55 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 16:00 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 14:50 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 12:59 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 11:52 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 11:22 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 10:16 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 09:09 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 07:55 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 07:10 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 06:59 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 06:40 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 06:26 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 06:13 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 05:53 gvisor 99cc6c2dea59 e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 05:43 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 04:37 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 03:23 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 03:06 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 01:37 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 00:28 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/02 00:24 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 23:16 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 21:35 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 20:32 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 19:30 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 18:25 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 18:12 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 18:08 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 18:01 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 17:55 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 17:46 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 17:36 gvisor 289e4554956d e080de16 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
2022/12/01 00:39 gvisor 4f2479ae58f1 4c2a66e8 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskSetRWMutex -> kernfs.filesystemRWMutex:
* Struck through repros no longer work on HEAD.