syzbot


panic: unlock of an unknow lock

Status: auto-obsoleted due to no activity on 2022/09/07 07:35
Reported-by: syzbot+6e18f5df600c2b586863@syzkaller.appspotmail.com
First crash: 903d, last: 901d

Sample crash report:
panic: unlock of an unknow lock

goroutine 2983 [running]:
panic({0x1713180, 0x1b89e68})
	GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc0010790f8 sp=0xc001079038 pc=0x437c88
gvisor.dev/gvisor/pkg/sync/locking.DelGLock(0xc000236280, 0x1)
	pkg/sync/locking/lockdep.go:129 +0x16b fp=0xc001079158 sp=0xc0010790f8 pc=0x92b56b
gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*endpointMutex).NestedUnlock(0xc0008ba9a8)
	bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/socket/unix/transport/endpoint_mutex.go:39 +0x45 fp=0xc001079178 sp=0xc001079158 pc=0x933b45
gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*connectionedEndpoint).BidirectionalConnect(0xc0008ba9a0, {0x1be6650, 0xc0014d2a80}, {0x1be1a98, 0xc0008ba840}, 0xc0005971f0)
	pkg/sentry/socket/unix/transport/connectioned.go:372 +0xdc8 fp=0xc001079288 sp=0xc001079178 pc=0x92f5a8
gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*connectionedEndpoint).Connect(0xc0008ba840, {0x1be6650, 0xc0014d2a80}, {0x7f0a2af4a6c0, 0xc0008ba9a0})
	pkg/sentry/socket/unix/transport/connectioned.go:408 +0xbc fp=0xc0010792e0 sp=0xc001079288 pc=0x92f95c
gvisor.dev/gvisor/pkg/sentry/socket/unix.(*socketOpsCommon).Connect(0xc000376978, 0xc0014d2a80, {0xc000372070, 0x6e, 0x6e}, 0x65)
	pkg/sentry/socket/unix/unix.go:443 +0x17d fp=0xc0010793b8 sp=0xc0010792e0 pc=0xfa2add
gvisor.dev/gvisor/pkg/sentry/socket/unix.(*SocketVFS2).Connect(0xc000376900, 0x1bf3ab8, {0xc000372070, 0x6e, 0x6e}, 0x50)
	<autogenerated>:1 +0x7b fp=0xc001079410 sp=0xc0010793b8 pc=0xfac0bb
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc0014d2a80, {{0x3}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/vfs2/socket.go:280 +0x211 fp=0xc001079548 sp=0xc001079410 pc=0x11b6711
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0014d2a80, 0x2a, {{0x3}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0x9d8 fp=0xc001079a90 sp=0xc001079548 pc=0xd3e5b8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0014d2a80, 0x46f779, {{0x3}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x6a fp=0xc001079b18 sp=0xc001079a90 pc=0xd401aa
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0010862d0, 0x46fc2c, {{0x3}, {0x20000280}, {0x6e}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0x8f fp=0xc001079b90 sp=0xc001079b18 pc=0xd3fc2f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0014d2a80)
	pkg/sentry/kernel/task_syscall.go:257 +0x3e7 fp=0xc001079c98 sp=0xc001079b90 pc=0xd3f847
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0014d2a80, 0xc0014d2a80)
	pkg/sentry/kernel/task_run.go:247 +0x16b8 fp=0xc001079ed0 sp=0xc001079c98 pc=0xd2ab78
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0014d2a80)
	pkg/sentry/kernel/task_run.go:90 +0x35b fp=0xc001079fc0 sp=0xc001079ed0 pc=0xd28abb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·239()
	pkg/sentry/kernel/task_start.go:364 +0x3a fp=0xc001079fe0 sp=0xc001079fc0 pc=0xd3c0da
runtime.goexit()
	src/runtime/asm_amd64.s:1581 +0x1 fp=0xc001079fe8 sp=0xc001079fe0 pc=0x46e001
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:364 +0x191

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/09 07:35 gvisor c3a7b477f9f0 0d5abf15 .config console log report info ci-gvisor-ptrace-1-race panic: unlock of an unknow lock
2022/06/07 02:25 gvisor f13e23932ba1 c8857892 .config console log report info ci-gvisor-ptrace-1-race panic: unlock of an unknow lock
* Struck through repros no longer work on HEAD.