syzbot


panic: unknown error *tcpip.ErrMalformedHeader

Status: fixed on 2021/02/24 10:28
Reported-by: syzbot+5c467ac08a85646767f5@syzkaller.appspotmail.com
Fix commit: c39284f45738 Let sentry understand tcpip.ErrMalformedHeader
First crash: 1387d, last: 1387d

Sample crash report:
panic: unknown error *tcpip.ErrMalformedHeader

goroutine 17593 [running]:
panic(0xfd3b80, 0xc001a209e0)
	GOROOT/src/runtime/panic.go:1064 +0x545 fp=0xc0006316a0 sp=0xc0006315d8 pc=0x437265
gvisor.dev/gvisor/pkg/syserr.TranslateNetstackError(0x131fca0, 0x1ae7d48, 0xc0009415e0)
	pkg/syserr/netstack.go:134 +0x88a fp=0xc0006316f8 sp=0xc0006316a0 pc=0x70164a
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc000119660, 0xc001352000, 0x132abe0, 0xc001d54000, 0x0, 0x1, 0x0, 0x0, 0x100, 0xc001b36840, ...)
	pkg/sentry/socket/netstack/netstack.go:2854 +0x545 fp=0xc000631868 sp=0xc0006316f8 pc=0xb2e965
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendTo(0xc001352000, 0x3, 0x0, 0x0, 0x0, 0x200012c0, 0xc000000010, 0x0, 0x0, 0x0)
	pkg/sentry/syscalls/linux/vfs2/socket.go:1113 +0x417 fp=0xc000631a98 sp=0xc000631868 pc=0xda3537
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendTo(0xc001352000, 0x3, 0x0, 0x0, 0x0, 0x200012c0, 0x10, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/vfs2/socket.go:1126 +0x71 fp=0xc000631af8 sp=0xc000631a98 pc=0xda3971
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001352000, 0x2c, 0x3, 0x0, 0x0, 0x0, 0x200012c0, 0x10, 0xddc677, 0x11b2520, ...)
	pkg/sentry/kernel/task_syscall.go:104 +0x13c fp=0xc000631c58 sp=0xc000631af8 pc=0x9d301c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001352000, 0x2c, 0x3, 0x0, 0x0, 0x0, 0x200012c0, 0x10, 0x200012c0, 0x10)
	pkg/sentry/kernel/task_syscall.go:239 +0x66 fp=0xc000631ce0 sp=0xc000631c58 pc=0x9d41e6
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc001352000, 0x2c, 0x3, 0x0, 0x0, 0x0, 0x200012c0, 0x10, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:199 +0x98 fp=0xc000631d40 sp=0xc000631ce0 pc=0x9d3d98
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001352000, 0x2, 0xc001352000)
	pkg/sentry/kernel/task_syscall.go:174 +0x15c fp=0xc000631e10 sp=0xc000631d40 pc=0x9d373c
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc001352000, 0x1300b40, 0x0)
	pkg/sentry/kernel/task_run.go:282 +0xc45 fp=0xc000631f60 sp=0xc000631e10 pc=0x9c7b45
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001352000, 0x204)
	pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc000631fd0 sp=0xc000631f60 pc=0x9c680f
runtime.goexit()
	src/runtime/asm_amd64.s:1374 +0x1 fp=0xc000631fd8 sp=0xc000631fd0 pc=0x4709a1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:323 +0xfe

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/08 00:55 gvisor 3853a94f10b7 2ce644fc .config console log report syz C ci-gvisor-kvm panic: unknown error *tcpip.ErrMalformedHeader
2021/02/08 01:39 gvisor aae4803808dc 2ce644fc .config console log report syz ci-gvisor-kvm-cover panic: unknown error *tcpip.ErrMalformedHeader
2021/02/08 01:21 gvisor 3853a94f10b7 2ce644fc .config console log report syz ci-gvisor-ptrace-2-cover panic: unknown error *tcpip.ErrMalformedHeader
2021/02/08 01:21 gvisor 3853a94f10b7 2ce644fc .config console log report syz ci-gvisor-ptrace-1-cover panic: unknown error *tcpip.ErrMalformedHeader
2021/02/08 00:06 gvisor 3853a94f10b7 2ce644fc .config console log report info ci-gvisor-kvm panic: unknown error *tcpip.ErrMalformedHeader
* Struck through repros no longer work on HEAD.