syzbot


panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:

Status: fixed on 2022/11/21 10:27
Fix commit: 38a0512f13fa Fix circular lock in process_vm_(read|write)v
First crash: 739d, last: 738d

Sample crash report:
panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
goroutine 160 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0x0?)
	pkg/log/log.go:318 +0xd3
gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc00036d000, 0xc00036cf80, {0x0, 0x0, 0x0})
	pkg/sync/locking/lockdep.go:56 +0x225
gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc00036d000, 0x0)
	pkg/sync/locking/lockdep.go:107 +0x33e
gvisor.dev/gvisor/pkg/sentry/kernel.(*taskSetRWMutex).RLock(0xc00016a070)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/taskset_mutex.go:46 +0x53
gvisor.dev/gvisor/pkg/sentry/kernel.(*ThreadGroup).Leader(0xc00048b000)
	pkg/sentry/kernel/threads.go:403 +0x8b
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.doProcessVMReadWrite.func2()
	pkg/sentry/syscalls/linux/sys_process_vm.go:145 +0x85
gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).WithTaskMutexLocked(0xc0005dc480, 0xc0006c5410)
	pkg/sentry/kernel/task_usermem.go:364 +0xe9
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.doProcessVMReadWrite(0xc0005fea80, 0xc000552a80, 0x20000000, 0x20000440, 0x1, 0x1)
	pkg/sentry/syscalls/linux/sys_process_vm.go:144 +0x3a5
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.processVMRW(0xc0005fea80, {{0xe}, {0x20000000}, {0x1}, {0x20000440}, {0x1}, {0x0}}, 0x1)
	pkg/sentry/syscalls/linux/sys_process_vm.go:69 +0x35f
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.ProcessVMWritev(0x3e?, {{0xe}, {0x20000000}, {0x1}, {0x20000440}, {0x1}, {0x0}})
	pkg/sentry/syscalls/linux/sys_process_vm.go:33 +0x6a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0005fea80, 0x137, {{0xe}, {0x20000000}, {0x1}, {0x20000440}, {0x1}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0xab8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0005fea80, 0x1?, {{0xe}, {0x20000000}, {0x1}, {0x20000440}, {0x1}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0004c65a0?, 0x46fdec?, {{0xe}, {0x20000000}, {0x1}, {0x20000440}, {0x1}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0005fea80)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0005fea80?, 0xc0005fea80)
	pkg/sentry/kernel/task_run.go:253 +0x1e2b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0005fea80, 0xd)
	pkg/sentry/kernel/task_run.go:94 +0x2c2
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:378 +0x1d0

Crashes (1470):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/18 13:22 gvisor 619801c72a76 5bb70014 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 05:58 gvisor 619801c72a76 5bb70014 .config console log report syz C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 05:55 gvisor 619801c72a76 5bb70014 .config console log report syz C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 04:18 gvisor 619801c72a76 5bb70014 .config console log report syz C ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 09:40 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 09:21 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 09:04 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 08:43 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 08:19 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 08:12 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 08:03 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 07:54 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 07:46 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 07:46 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 07:38 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 07:25 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 07:00 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 06:45 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 06:33 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 06:17 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 06:11 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 05:20 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 05:03 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 04:37 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 04:07 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 03:54 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 03:12 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 02:26 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 02:01 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 01:55 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 01:28 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 01:10 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 00:49 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 00:44 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 00:12 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/19 00:01 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 23:11 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 22:36 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 22:29 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 22:20 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 21:49 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 21:39 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 21:37 gvisor 536a924f1abc 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 19:58 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 19:54 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 19:08 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 18:47 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 18:38 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 18:32 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 17:32 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
2022/11/18 16:58 gvisor 619801c72a76 5bb70014 .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: kernel.taskMutex -> kernel.taskSetRWMutex:
* Struck through repros no longer work on HEAD.