syzbot


panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax

Status: fixed on 2023/09/27 10:44
Reported-by: syzbot+c7077c978b82da45e5f4@syzkaller.appspotmail.com
Fix commit: 1910a4577f01 cgroupfs: do not return errors from strconv.ParseInt() to write()
First crash: 441d, last: 441d

Sample crash report:
panic: Unknown syscall 1 error: strconv.ParseInt: parsing "./file1": invalid syntax

goroutine 279 [running]:
panic({0x2a9140, 0xc000aedbc0})
	GOROOT/src/runtime/panic.go:987 +0x3bb fp=0xc000b938d8 sp=0xc000b93818 pc=0x114a49b
gvisor.dev/gvisor/pkg/sentry/kernel.ExtractErrno({0x6d8d20?, 0xc000ae65a0?}, 0x83?)
	pkg/sentry/kernel/task_syscall.go:485 +0x3ce fp=0xc000b93968 sp=0xc000b938d8 pc=0x1a8a6ae
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000ceea80, 0x1?, {{0x4}, {0x20000080}, {0x83}, {0x6}, {0x6}, {0x6}})
	pkg/sentry/kernel/task_syscall.go:332 +0x27c fp=0xc000b93a08 sp=0xc000b93968 pc=0x1a8843c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000b402d0?, 0xc000b93b37?, {{0x4}, {0x20000080}, {0x83}, {0x6}, {0x6}, {0x6}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5 fp=0xc000b93a80 sp=0xc000b93a08 pc=0x1a87b45
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000ceea80)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b fp=0xc000b93ba8 sp=0xc000b93a80 pc=0x1a8765b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000ceea80?, 0xc000ceea80)
	pkg/sentry/kernel/task_run.go:269 +0x22b4 fp=0xc000b93e68 sp=0xc000b93ba8 pc=0x1a6ffd4
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000ceea80, 0x9)
	pkg/sentry/kernel/task_run.go:98 +0x35b fp=0xc000b93fb0 sp=0xc000b93e68 pc=0x1a6d2bb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:390 +0x48 fp=0xc000b93fe0 sp=0xc000b93fb0 pc=0x1a83828
runtime.goexit()
	src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000b93fe8 sp=0xc000b93fe0 pc=0x1183381
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:390 +0x1da

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/12 14:04 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-systrap-1-race-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 14:02 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:53 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-2-race-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:52 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-systrap-1-race panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:52 gvisor f8f2bb6d21ba 59da8366 console log report syz C ci-gvisor-kvm panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:51 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-1-race panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:51 gvisor f8f2bb6d21ba 59da8366 console log report syz C ci-gvisor-ptrace-1 panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:50 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-3-race panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:50 gvisor f8f2bb6d21ba 59da8366 console log report syz C ci-gvisor-ptrace-3 panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:50 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-3-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:42 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-kvm-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:41 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-2-race panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:41 gvisor f8f2bb6d21ba 59da8366 console log report syz C ci-gvisor-systrap-1 panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:41 gvisor f8f2bb6d21ba 59da8366 console log report syz C ci-gvisor-ptrace-2 panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:41 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-2-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:41 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-systrap-1-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:41 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-1-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:28 gvisor f8f2bb6d21ba 59da8366 .config console log report syz C ci-gvisor-ptrace-1-race-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
2023/09/12 13:04 gvisor f8f2bb6d21ba 59da8366 .config console log report info ci-gvisor-ptrace-1-race-cover panic: Unknown syscall NUM error: strconv.ParseInt: parsing "./file1": invalid syntax
* Struck through repros no longer work on HEAD.