syzbot


panic: close of closed channel

Status: fixed on 2023/10/30 20:03
Fix commit: 2e3e5b606789 Create a new test dimension that mounts a FUSE fs on /tmp.
First crash: 1033d, last: 1025d

Sample crash report:
panic: close of closed channel

goroutine 245 [running]:
panic(0x1938ca0, 0x1d79000)
	GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000a14d18 sp=0xc000a14c50 pc=0x43a6c5
runtime.closechan(0xc0005b4900)
	GOROOT/src/runtime/chan.go:363 +0x4b5 fp=0xc000a14d78 sp=0xc000a14d18 pc=0x408175
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*DeviceFD).sendResponse(0xc0001b8300, 0x1dbf018, 0xc00041d500, 0xc0007b4a80, 0x1d93820, 0x26faff8)
	pkg/sentry/fsimpl/fuse/dev.go:416 +0x298 fp=0xc000a14e50 sp=0xc000a14d78 pc=0x157e3b8
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*DeviceFD).writeLocked(0xc0001b8300, 0x1dbf018, 0xc00041d500, 0x1db92e0, 0xc000a22000, 0x0, 0x0, 0x0, 0x0, 0x100, ...)
	pkg/sentry/fsimpl/fuse/dev.go:341 +0x67c fp=0xc000a15140 sp=0xc000a14e50 pc=0x157d2bc
gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*DeviceFD).Write(0xc0001b8300, 0x1dbf018, 0xc00041d500, 0x1db92e0, 0xc000a22000, 0x0, 0x1, 0x20000080, 0x50, 0x100, ...)
	pkg/sentry/fsimpl/fuse/dev.go:247 +0x165 fp=0xc000a15248 sp=0xc000a15140 pc=0x157cbc5
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc0001b8300, 0x1dbf018, 0xc00041d500, 0x1db92e0, 0xc000a22000, 0x0, 0x1, 0x20000080, 0x50, 0x100, ...)
	pkg/sentry/vfs/file_description.go:657 +0x131 fp=0xc000a15328 sp=0xc000a15248 pc=0x961651
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0xc00041d500, 0xc0001b8300, 0x1db92e0, 0xc000a22000, 0x0, 0x1, 0x20000080, 0x50, 0x100, 0x0, ...)
	pkg/sentry/syscalls/linux/vfs2/read_write.go:348 +0xee fp=0xc000a15570 sp=0xc000a15328 pc=0x14605ce
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc00041d500, 0x3, 0x20000080, 0x50, 0x0, 0x20000180, 0x561903a2a720, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/vfs2/read_write.go:317 +0x308 fp=0xc000a15728 sp=0xc000a15570 pc=0x145fdc8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00041d500, 0x1, 0x3, 0x20000080, 0x50, 0x0, 0x20000180, 0x561903a2a720, 0x0, 0x0, ...)
	pkg/sentry/kernel/task_syscall.go:103 +0x195 fp=0xc000a159b8 sp=0xc000a15728 pc=0xd8d1b5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00041d500, 0x1, 0x3, 0x20000080, 0x50, 0x0, 0x20000180, 0x561903a2a720, 0xc00041dddf, 0xc00041d500)
	pkg/sentry/kernel/task_syscall.go:238 +0xb4 fp=0xc000a15a90 sp=0xc000a159b8 pc=0xd8ebd4
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00041d500, 0x1, 0x3, 0x20000080, 0x50, 0x0, 0x20000180, 0x561903a2a720, 0x1ffffffff, 0xc000000000)
	pkg/sentry/kernel/task_syscall.go:198 +0x10f fp=0xc000a15b38 sp=0xc000a15a90 pc=0xd8e4cf
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00041d500, 0x2, 0xc00041d500)
	pkg/sentry/kernel/task_syscall.go:173 +0x214 fp=0xc000a15ca8 sp=0xc000a15b38 pc=0xd8dc54
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00041d500, 0x1d91500, 0x0)
	pkg/sentry/kernel/task_run.go:254 +0x1287 fp=0xc000a15ed8 sp=0xc000a15ca8 pc=0xd79e87
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00041d500, 0xf)
	pkg/sentry/kernel/task_run.go:95 +0x353 fp=0xc000a15fd0 sp=0xc000a15ed8 pc=0xd78433
runtime.goexit()
	src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000a15fd8 sp=0xc000a15fd0 pc=0x477541
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:342 +0x1a5

Crashes (1192):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/28 09:07 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-1-race panic: close of closed channel
2022/01/28 08:52 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-2 panic: close of closed channel
2022/01/28 08:46 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-kvm panic: close of closed channel
2022/01/28 08:44 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-3-race panic: close of closed channel
2022/01/28 08:40 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-1 panic: close of closed channel
2022/01/28 08:34 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-2-race panic: close of closed channel
2022/01/28 08:29 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-1-cover panic: close of closed channel
2022/01/28 08:24 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-3 panic: close of closed channel
2022/01/28 08:24 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-3-cover panic: close of closed channel
2022/01/28 08:21 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-ptrace-2-cover panic: close of closed channel
2022/01/28 07:57 gvisor 2083e858ad8d 495e00c5 .config console log report syz C ci-gvisor-kvm-cover panic: close of closed channel
2022/02/05 09:35 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-2-race panic: close of closed channel
2022/02/05 08:10 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-1-cover panic: close of closed channel
2022/02/05 07:02 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3-race panic: close of closed channel
2022/02/05 05:07 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3-cover panic: close of closed channel
2022/02/05 04:43 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/05 03:36 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/05 02:34 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-1 panic: close of closed channel
2022/02/05 01:55 gvisor dce4528a1a95 e13a05ed .config console log report info ci-gvisor-kvm panic: close of closed channel
2022/02/05 00:51 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-1 panic: close of closed channel
2022/02/05 00:34 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-1-race panic: close of closed channel
2022/02/04 23:25 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-2-cover panic: close of closed channel
2022/02/04 21:32 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/04 20:31 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-kvm panic: close of closed channel
2022/02/04 20:12 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2 panic: close of closed channel
2022/02/04 19:12 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2-cover panic: close of closed channel
2022/02/04 18:11 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/04 16:45 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-1 panic: close of closed channel
2022/02/04 15:17 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/04 14:08 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/04 13:02 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-1 panic: close of closed channel
2022/02/04 12:00 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/04 10:57 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/04 09:52 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2-cover panic: close of closed channel
2022/02/04 09:48 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3-cover panic: close of closed channel
2022/02/04 08:31 gvisor dce4528a1a95 30646bfe .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/04 07:04 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/04 06:02 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-1-cover panic: close of closed channel
2022/02/04 05:01 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/04 04:56 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-2-cover panic: close of closed channel
2022/02/04 03:34 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-cover panic: close of closed channel
2022/02/04 02:17 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/04 01:15 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/04 00:00 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/03 22:44 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-cover panic: close of closed channel
2022/02/03 22:26 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/03 21:15 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-kvm panic: close of closed channel
2022/02/03 20:50 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-1-race panic: close of closed channel
2022/02/03 19:42 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-1 panic: close of closed channel
2022/02/03 17:25 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-cover panic: close of closed channel
2022/02/03 15:56 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race panic: close of closed channel
2022/02/03 15:43 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/03 13:54 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-kvm panic: close of closed channel
2022/02/03 12:52 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/03 11:21 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/03 10:07 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-1-cover panic: close of closed channel
2022/02/03 09:41 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/03 08:29 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-kvm-cover panic: close of closed channel
2022/02/03 07:26 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/03 07:15 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-2 panic: close of closed channel
2022/02/03 06:02 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/02/03 04:32 gvisor bcba5136d0d0 4ebb2798 .config console log report info ci-gvisor-ptrace-3-cover panic: close of closed channel
2022/02/03 03:15 gvisor bcba5136d0d0 4ebb2798 .config console log report info ci-gvisor-ptrace-3 panic: close of closed channel
2022/01/28 21:55 gvisor e98016263b1e 495e00c5 .config console log report info ci-gvisor-ptrace-3-race-cover panic: close of closed channel
* Struck through repros no longer work on HEAD.