syzbot


panic: runtime error: integer divide by zero (2)

Status: fixed on 2022/11/01 08:39
Fix commit: d4b159ae93b5 iouring: Disallow zero, or less CQ entries than SQ entries
First crash: 756d, last: 756d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: runtime error: integer divide by zero (3) C 443 739d 756d 14/26 fixed on 2022/11/18 03:22
gvisor panic: runtime error: integer divide by zero C 116 1543d 1570d 14/26 fixed on 2020/12/30 01:06

Sample crash report:
panic: runtime error: integer divide by zero

goroutine 139 [running]:
panic({0x18e7be0, 0x26cbc50})
	GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc0009d31f0 sp=0xc0009d3130 pc=0x438397
runtime.panicdivide()
	GOROOT/src/runtime/panic.go:199 +0x45 fp=0xc0009d3210 sp=0xc0009d31f0 pc=0x436ce5
gvisor.dev/gvisor/pkg/sentry/fsimpl/iouringfs.(*FileDescription).ProcessSubmissions(0xc00092e000, 0x2fe, 0x0?, 0x0?)
	pkg/sentry/fsimpl/iouringfs/iouringfs.go:352 +0x83e fp=0xc0009d34a8 sp=0xc0009d3210 pc=0x1226dfe
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.IOUringEnter(0xc0009e4a80, {{0x3}, {0x2fe}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/vfs2/iouringfs.go:115 +0x288 fp=0xc0009d35b0 sp=0xc0009d34a8 pc=0x1247d88
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0009e4a80, 0x1aa, {{0x3}, {0x2fe}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0xab8 fp=0xc0009d39f8 sp=0xc0009d35b0 pc=0xdb5df8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0009e4a80, 0x1?, {{0x3}, {0x2fe}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e fp=0xc0009d3a98 sp=0xc0009d39f8 pc=0xdb7f8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0005fe1e0?, 0x46fdec?, {{0x3}, {0x2fe}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5 fp=0xc0009d3b10 sp=0xc0009d3a98 pc=0xdb7865
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0009e4a80)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b fp=0xc0009d3c38 sp=0xc0009d3b10 pc=0xdb735b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0009e4a80?, 0xc0009e4a80)
	pkg/sentry/kernel/task_run.go:253 +0x1e2b fp=0xc0009d3ec0 sp=0xc0009d3c38 pc=0xda08eb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0009e4a80, 0xb)
	pkg/sentry/kernel/task_run.go:94 +0x2c2 fp=0xc0009d3fb0 sp=0xc0009d3ec0 pc=0xd9e102
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:380 +0x48 fp=0xc0009d3fe0 sp=0xc0009d3fb0 pc=0xdb3508
runtime.goexit()
	src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0009d3fe8 sp=0xc0009d3fe0 pc=0x46e1c1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:380 +0x1d0

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/01 05:06 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: runtime error: integer divide by zero
2022/10/31 22:58 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-1-race panic: runtime error: integer divide by zero
2022/10/31 22:46 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-kvm panic: runtime error: integer divide by zero
2022/10/31 22:34 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-2-race panic: runtime error: integer divide by zero
2022/10/31 22:02 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-kvm-cover panic: runtime error: integer divide by zero
2022/10/31 22:00 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-2 panic: runtime error: integer divide by zero
2022/10/31 21:27 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-1-cover panic: runtime error: integer divide by zero
2022/10/31 21:26 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-3 panic: runtime error: integer divide by zero
2022/10/31 21:26 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-2-cover panic: runtime error: integer divide by zero
2022/10/31 21:23 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-3-cover panic: runtime error: integer divide by zero
2022/10/31 21:21 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-3-race panic: runtime error: integer divide by zero
2022/10/31 21:10 gvisor 9ae2eea3ba9a 43f72c2d .config console log report syz C ci-gvisor-ptrace-1 panic: runtime error: integer divide by zero
2022/11/01 08:35 gvisor d4b159ae93b5 a1d8560a .config console log report info ci-gvisor-ptrace-3 panic: runtime error: integer divide by zero
2022/11/01 07:25 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2-race-cover panic: runtime error: integer divide by zero
2022/11/01 07:24 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2-race-cover panic: runtime error: integer divide by zero
2022/11/01 07:24 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: integer divide by zero
2022/11/01 07:24 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: integer divide by zero
2022/11/01 07:24 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: integer divide by zero
2022/11/01 07:23 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1 panic: runtime error: integer divide by zero
2022/11/01 07:23 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1 panic: runtime error: integer divide by zero
2022/11/01 07:01 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1-race panic: runtime error: integer divide by zero
2022/11/01 06:50 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1-race panic: runtime error: integer divide by zero
2022/11/01 06:48 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3-race-cover panic: runtime error: integer divide by zero
2022/11/01 06:48 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3-race-cover panic: runtime error: integer divide by zero
2022/11/01 06:37 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: integer divide by zero
2022/11/01 06:37 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2-race panic: runtime error: integer divide by zero
2022/11/01 06:36 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: integer divide by zero
2022/11/01 06:36 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2 panic: runtime error: integer divide by zero
2022/11/01 06:36 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2 panic: runtime error: integer divide by zero
2022/11/01 06:35 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: integer divide by zero
2022/11/01 06:33 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1 panic: runtime error: integer divide by zero
2022/11/01 06:31 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-kvm-cover panic: runtime error: integer divide by zero
2022/11/01 06:31 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-kvm-cover panic: runtime error: integer divide by zero
2022/11/01 06:31 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: integer divide by zero
2022/11/01 06:30 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: integer divide by zero
2022/11/01 06:30 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-kvm panic: runtime error: integer divide by zero
2022/11/01 06:30 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3 panic: runtime error: integer divide by zero
2022/11/01 06:30 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3-race panic: runtime error: integer divide by zero
2022/11/01 06:30 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3 panic: runtime error: integer divide by zero
2022/11/01 06:29 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-3-race panic: runtime error: integer divide by zero
2022/10/31 20:55 gvisor 9ae2eea3ba9a 43f72c2d .config console log report info ci-gvisor-ptrace-1 panic: runtime error: integer divide by zero
2022/10/31 19:46 gvisor 9ae2eea3ba9a 2a71366b .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: integer divide by zero
* Struck through repros no longer work on HEAD.