syzbot


panic: close of nil channel

Status: fixed on 2020/04/24 19:17
Fix commit: 37f863f62813 tcp: handle listen after shutdown properly
First crash: 1683d, last: 1679d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: close of nil channel (2) 1 1451d 1450d 14/26 fixed on 2020/12/30 01:06

Sample crash report:
panic: close of nil channel

goroutine 361 [running]:
gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).listen(0xc000013180, 0x5, 0x0)
	pkg/tcpip/transport/tcp/endpoint.go:2208 +0x170
gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Listen(0xc000013180, 0x5, 0xc000139ad0)
	pkg/tcpip/transport/tcp/endpoint.go:2179 +0x50
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Listen(0xc0004dce10, 0xc0001c9500, 0x5, 0x7ffaefb4cca8)
	pkg/sentry/socket/netstack/netstack.go:775 +0x42
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Listen(0xc0001c9500, 0x4, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/sys_socket.go:404 +0x113
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0001c9500, 0x32, 0x4, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf146e0, ...)
	pkg/sentry/kernel/task_syscall.go:170 +0x122
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0001c9500, 0x32, 0x4, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:305 +0x66
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0001c9500, 0x32, 0x4, 0x5, 0x0, 0x0, 0x0, 0x0, 0xc000480a20, 0x1)
	pkg/sentry/kernel/task_syscall.go:265 +0x96
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0001c9500, 0x2, 0xc000b7e0c0)
	pkg/sentry/kernel/task_syscall.go:240 +0x15c
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0001c9500, 0x107c480, 0x0)
	pkg/sentry/kernel/task_run.go:258 +0xec8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0001c9500, 0x27)
	pkg/sentry/kernel/task_run.go:92 +0x18b
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:315 +0xfe

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/22 08:00 gvisor eba086642e46 2e44d63e .config console log report syz ci-gvisor-main
2020/04/22 07:35 gvisor eba086642e46 2e44d63e .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/04/17 23:16 gvisor 12bde95635ac 435c6d53 .config console log report syz ci-gvisor-main
2020/04/17 22:53 gvisor 12bde95635ac 435c6d53 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/04/22 07:26 gvisor eba086642e46 2e44d63e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/04/17 22:40 gvisor 12bde95635ac 435c6d53 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.