syzbot


panic: Lock not held: transport.endpointMutex[e]:

Status: fixed on 2022/11/29 23:06
Fix commit: 1ceee8c31071 connectioned: Change nested lock name to only have a single nested lock.
First crash: 728d, last: 727d

Sample crash report:
panic: Lock not held: transport.endpointMutex[e]:
Current stack:
goroutine 339 [running]:
gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*endpointMutex).NestedUnlock(0xc0009f4008, 0xc0002cb500?)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/socket/unix/transport/endpoint_mutex.go:57 +0x45
gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*connectionedEndpoint).BidirectionalConnect(0xc0009f4000, {0x1b0e1d0, 0xc0002cb500}, {0x1b0c910, 0xc0009f4160?}, 0xc00032a900)
	pkg/sentry/socket/unix/transport/connectioned.go:311 +0xe45
gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*connectionedEndpoint).Connect(0xc0009f4160, {0x1b0e1d0, 0xc0002cb500}, {0x7fedaadc4900, 0xc0009f4000})
	pkg/sentry/socket/unix/transport/connectioned.go:398 +0xbc
gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).Connect(0xc0009f6240, 0xc0002cb500, {0xc000994070, 0x6e, 0x6e}, 0xd8?)
	pkg/sentry/socket/unix/unix.go:557 +0x170
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Connect(0xc0002cb500, {{0x4}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/sys_socket.go:279 +0x1f1
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0002cb500, 0x2a, {{0x4}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0x9b8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0002cb500, 0x0?, {{0x4}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x7d
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0005c3790?, 0xc0002c81e0?, {{0x4}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0x8f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0002cb500)
	pkg/sentry/kernel/task_syscall.go:257 +0x496
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0002cb500?, 0xc0002cb500)
	pkg/sentry/kernel/task_run.go:253 +0x18f9
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0002cb500, 0xf)
	pkg/sentry/kernel/task_run.go:94 +0x354
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:378 +0x1a8

Crashes (1191):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/29 18:08 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 17:28 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 17:28 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 17:15 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 16:07 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 15:58 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 15:46 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 15:37 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 15:26 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 15:13 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 15:06 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:55 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:31 gvisor 445fa6f40c89 05dc7993 .config console log report syz C ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 21:58 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 20:45 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 20:09 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 17:34 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 16:35 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 15:19 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:34 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:24 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:17 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:13 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:09 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:05 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 14:01 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:57 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:53 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:48 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:44 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:40 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:36 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:32 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:28 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:24 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:20 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:17 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race-cover panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:13 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:09 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:05 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 13:01 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:56 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:51 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race-cover panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:47 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:42 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:36 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:31 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:25 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:18 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:13 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:07 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:03 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:00 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race-cover panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 12:00 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-2-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 11:57 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 11:53 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 11:50 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
2022/11/29 11:30 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race panic: Lock not held: transport.endpointMutex[e]:
* Struck through repros no longer work on HEAD.