syzbot


panic: Unknown syscall -NUM error: EOF

Status: fixed on 2022/11/18 02:43
Fix commit: f3aaf4326636 io_ring: Handle EOF on IORING_OP_READV
First crash: 745d, last: 743d

Sample crash report:
panic: Unknown syscall -1 error: EOF

goroutine 198 [running]:
panic({0x186d7e0, 0xc00021b7c0})
	GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc0008d5110 sp=0xc0008d5050 pc=0x438397
gvisor.dev/gvisor/pkg/sentry/kernel.ExtractErrno({0x1caff00?, 0xc00021a110?}, 0xc0008d5260?)
	pkg/sentry/kernel/task_syscall.go:485 +0x42b fp=0xc0008d51a0 sp=0xc0008d5110 pc=0xdb37eb
gvisor.dev/gvisor/pkg/sentry/fsimpl/iouringfs.(*FileDescription).ProcessSubmission(0xc0007e451c?, 0xc000754520?, 0xc0008d5260, 0x10001?)
	pkg/sentry/fsimpl/iouringfs/iouringfs.go:390 +0x172 fp=0xc0008d5210 sp=0xc0008d51a0 pc=0x120afb2
gvisor.dev/gvisor/pkg/sentry/fsimpl/iouringfs.(*FileDescription).ProcessSubmissions(0xc00054e000, 0x0?, 0x2, 0x0?, 0x0?)
	pkg/sentry/fsimpl/iouringfs/iouringfs.go:350 +0x425 fp=0xc0008d54a0 sp=0xc0008d5210 pc=0x120a9e5
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.IOUringEnter(0xc0001aaa80, {{0x3}, {0x2}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/vfs2/iouringfs.go:115 +0x290 fp=0xc0008d55b0 sp=0xc0008d54a0 pc=0x122c650
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0001aaa80, 0x1aa, {{0x3}, {0x2}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0xab8 fp=0xc0008d59f8 sp=0xc0008d55b0 pc=0xdaf1d8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0001aaa80, 0x1?, {{0x3}, {0x2}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e fp=0xc0008d5a98 sp=0xc0008d59f8 pc=0xdb136e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0006564b0?, 0x46fdec?, {{0x3}, {0x2}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5 fp=0xc0008d5b10 sp=0xc0008d5a98 pc=0xdb0c45
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0001aaa80)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b fp=0xc0008d5c38 sp=0xc0008d5b10 pc=0xdb073b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0001aaa80?, 0xc0001aaa80)
	pkg/sentry/kernel/task_run.go:253 +0x1e2b fp=0xc0008d5ec0 sp=0xc0008d5c38 pc=0xd99d0b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0001aaa80, 0xc)
	pkg/sentry/kernel/task_run.go:94 +0x2c2 fp=0xc0008d5fb0 sp=0xc0008d5ec0 pc=0xd97522
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:378 +0x48 fp=0xc0008d5fe0 sp=0xc0008d5fb0 pc=0xdac8e8
runtime.goexit()
	src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0008d5fe8 sp=0xc0008d5fe0 pc=0x46e1c1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:378 +0x1d0

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/12 21:08 gvisor 4b63ff222d43 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: Unknown syscall -NUM error: EOF
2022/11/12 02:39 gvisor 4b63ff222d43 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-1-race panic: Unknown syscall -NUM error: EOF
2022/11/12 02:39 gvisor 5a0803c66ec4 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-3-race panic: Unknown syscall -NUM error: EOF
2022/11/12 02:36 gvisor eae4c6f2757c f42ee5d8 .config console log report syz C ci-gvisor-kvm panic: Unknown syscall -NUM error: EOF
2022/11/12 02:36 gvisor eae4c6f2757c f42ee5d8 .config console log report syz C ci-gvisor-kvm-cover panic: Unknown syscall -NUM error: EOF
2022/11/12 02:36 gvisor 8756ebc3b406 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-1-cover panic: Unknown syscall -NUM error: EOF
2022/11/12 02:36 gvisor 5a0803c66ec4 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-2-race panic: Unknown syscall -NUM error: EOF
2022/11/12 02:36 gvisor 8756ebc3b406 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-2-cover panic: Unknown syscall -NUM error: EOF
2022/11/12 02:36 gvisor 8756ebc3b406 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-1 panic: Unknown syscall -NUM error: EOF
2022/11/12 02:34 gvisor 8756ebc3b406 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-2 panic: Unknown syscall -NUM error: EOF
2022/11/12 02:10 gvisor 5a0803c66ec4 f42ee5d8 .config console log report syz C ci-gvisor-ptrace-3-cover panic: Unknown syscall -NUM error: EOF
2022/11/13 16:47 gvisor 4b63ff222d43 f42ee5d8 .config console log report info ci-gvisor-ptrace-2-cover panic: Unknown syscall -NUM error: EOF
2022/11/12 02:27 gvisor 5a0803c66ec4 f42ee5d8 .config console log report info ci-gvisor-ptrace-3-cover panic: Unknown syscall -NUM error: EOF
2022/11/12 01:56 gvisor 5a0803c66ec4 f42ee5d8 .config console log report info ci-gvisor-ptrace-3-cover panic: Unknown syscall -NUM error: EOF
* Struck through repros no longer work on HEAD.