syzbot


Invalid request partialResult in sendto (2)

Status: fixed on 2021/09/25 08:25
Fix commit: e5fe488b2273 Wake up Writers when tcp socket is shutdown for writes.
First crash: 1268d, last: 1194d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor Invalid request partialResult in sendto (3) C 9 1008d 1008d 14/26 fixed on 2022/02/24 12:40
gvisor Invalid request partialResult in sendto C 236 1392d 1396d 14/26 fixed on 2021/02/10 20:40

Sample crash report:
W0606 19:06:03.914794   37417 log.go:329] Invalid request partialResult true and err (type syscall.Errno) software caused connection abort for sendto operation on "socket:[209]":
goroutine 509 [running]:
gvisor.dev/gvisor/pkg/log.Stacks(0xc0006b2800, 0xc0004b0400, 0x0, 0xc0005e3798)
	pkg/log/log.go:313 +0xa8
gvisor.dev/gvisor/pkg/log.Traceback(0x127177f, 0x4c, 0xc000842000, 0x5, 0x5)
	pkg/log/log.go:328 +0x2a
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.HandleIOErrorVFS2(0x13c9500, 0xc0002f8a80, 0x1b9da01, 0x13a12c0, 0x1b9da98, 0x13a10e0, 0x1386b50, 0x1236981, 0x6, 0xc0003e8750, ...)
	pkg/sentry/syscalls/linux/error.go:57 +0x306
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendTo(0xc0002f8a80, 0x3, 0x200004c0, 0x20000671, 0xc000000805, 0x0, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/syscalls/linux/vfs2/socket.go:1128 +0x531
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendTo(0xc0002f8a80, 0x3, 0x200004c0, 0x20000671, 0x805, 0x0, 0x0, 0x3d, 0x970c, 0xc000795bf4, ...)
	pkg/sentry/syscalls/linux/vfs2/socket.go:1140 +0x71
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0002f8a80, 0x2c, 0x3, 0x200004c0, 0x20000671, 0x805, 0x0, 0x0, 0x1, 0x12338e0, ...)
	pkg/sentry/kernel/task_syscall.go:102 +0x13c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0002f8a80, 0x2c, 0x3, 0x200004c0, 0x20000671, 0x805, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:237 +0x66
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0002f8a80, 0x2c, 0x3, 0x200004c0, 0x20000671, 0x805, 0x0, 0x0, 0xe2b8ae, 0xc0001517e0)
	pkg/sentry/kernel/task_syscall.go:197 +0x98
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0002f8a80, 0x2, 0xc0002f8a80)
	pkg/sentry/kernel/task_syscall.go:172 +0x15c
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0002f8a80, 0x139f1c0, 0x0)
	pkg/sentry/kernel/task_run.go:282 +0xca5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0002f8a80, 0xc)
	pkg/sentry/kernel/task_run.go:97 +0x1af
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:328 +0xfe

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/06 19:06 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-ptrace-2 Invalid request partialResult in sendto
2021/06/06 19:06 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-ptrace-2-cover Invalid request partialResult in sendto
2021/06/06 19:04 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-ptrace-2-race Invalid request partialResult in sendto
2021/06/06 19:00 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-kvm Invalid request partialResult in sendto
2021/06/06 18:58 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-ptrace-1-race Invalid request partialResult in sendto
2021/06/06 18:58 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-ptrace-1-cover Invalid request partialResult in sendto
2021/06/06 18:57 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-kvm-cover Invalid request partialResult in sendto
2021/06/06 18:36 gvisor 993fff4e1c6d 500c2339 .config console log report syz C ci-gvisor-ptrace-1 Invalid request partialResult in sendto
2021/08/20 12:32 gvisor 50ed6b2e0994 b599f2fc .config console log report info ci-gvisor-ptrace-1 Invalid request partialResult in sendto
2021/06/06 18:20 gvisor 993fff4e1c6d 500c2339 .config console log report info ci-gvisor-ptrace-1 Invalid request partialResult in sendto
* Struck through repros no longer work on HEAD.