syzbot


panic: runtime error: slice bounds out of range [:LINE] with capacity 16

Status: fixed on 2020/02/27 08:57
Reported-by: syzbot+7d92f6f8651ba04fca7f@syzkaller.appspotmail.com
Fix commit: b3ae8a62cfdf Fix slice bounds out of range panic in parsing socket control message.
First crash: 1803d, last: 1785d

Sample crash report:
panic: runtime error: slice bounds out of range [:17] with capacity 16

goroutine 249 [running]:
gvisor.dev/gvisor/pkg/sentry/socket/control.Parse(0xc000333500, 0xda78c0, 0xc00068d9d0, 0xc00013a2f0, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/socket/control/control.go:475 +0xcd4
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.sendSingleMsg(0xc000333500, 0xefbca0, 0xc00068d9d0, 0xc000696c60, 0x2000b300, 0x0, 0x0, 0xc000671a90, 0x437f6f)
	pkg/sentry/syscalls/linux/sys_socket.go:1040 +0x27c
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.SendMMsg(0xc000333500, 0x4, 0x2000b300, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/sys_socket.go:979 +0x2dd
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000333500, 0x133, 0x4, 0x2000b300, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/kernel/task_syscall.go:170 +0x125
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000333500, 0x133, 0x4, 0x2000b300, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:291 +0x66
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000333500, 0x133, 0x4, 0x2000b300, 0x1, 0x0, 0x0, 0x0, 0xc000234240, 0x1)
	pkg/sentry/kernel/task_syscall.go:252 +0x96
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000333500, 0x2, 0xc0003f8140)
	pkg/sentry/kernel/task_syscall.go:227 +0x139
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000333500, 0xed1f80, 0x0)
	pkg/sentry/kernel/task_run.go:222 +0xf45
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000333500, 0x27)
	pkg/sentry/kernel/task_run.go:92 +0x1bb
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:300 +0xfe

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/03 13:53 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 9dcc1191 .config console log report syz ci-gvisor-main
2020/01/03 13:42 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 9dcc1191 .config console log report syz ci-gvisor-main
2020/01/03 13:32 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 9dcc1191 .config console log report syz ci-gvisor-main
2020/01/02 17:38 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-direct-overlay-host
2020/01/02 17:35 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-direct-overlay-host-race
2020/01/02 17:34 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/01/02 17:28 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-direct-overlay-host
2020/01/02 17:25 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-direct-overlay-host-race
2020/01/02 17:24 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/01/02 17:11 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/01/02 17:09 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-direct-overlay-host-race
2020/01/02 17:01 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report syz ci-gvisor-ptrace-direct-overlay-host
2019/12/19 22:41 https://gvisor.googlesource.com/gvisor master 57ce26c0b465 36650b4b .config console log report syz ci-gvisor-kvm-direct-sandbox
2019/12/19 22:12 https://gvisor.googlesource.com/gvisor master 57ce26c0b465 36650b4b .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2019/12/19 22:12 https://gvisor.googlesource.com/gvisor master 57ce26c0b465 36650b4b .config console log report syz ci-gvisor-ptrace-direct-overlay-host-race
2019/12/19 22:11 https://gvisor.googlesource.com/gvisor master 57ce26c0b465 36650b4b .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2019/12/19 22:11 https://gvisor.googlesource.com/gvisor master 57ce26c0b465 36650b4b .config console log report syz ci-gvisor-ptrace-direct-overlay-host
2019/12/19 22:03 https://gvisor.googlesource.com/gvisor master 57ce26c0b465 36650b4b .config console log report syz ci-gvisor-main
2020/01/07 04:22 https://gvisor.googlesource.com/gvisor master 6410387ff9b4 438e1227 .config console log report ci-gvisor-ptrace-direct-overlay-host
2020/01/03 19:36 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 9dcc1191 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
2020/01/03 07:30 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
2020/01/03 06:42 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-kvm-direct-sandbox
2020/01/03 06:34 https://gvisor.googlesource.com/gvisor master 796f53c0befc 7f117e28 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2020/01/03 06:06 https://gvisor.googlesource.com/gvisor master 796f53c0befc 7f117e28 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2020/01/03 05:37 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-kvm-direct-sandbox
2020/01/03 05:17 https://gvisor.googlesource.com/gvisor master 796f53c0befc 7f117e28 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2020/01/03 05:07 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/01/03 05:05 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
2020/01/03 05:02 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host
2020/01/03 04:59 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/01/03 04:56 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
2020/01/03 04:53 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/01/03 04:53 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host
2020/01/03 04:45 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
2020/01/03 04:43 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host
2020/01/03 04:26 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/01/03 04:25 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
2020/01/03 04:23 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host
2020/01/02 17:03 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/01/02 17:01 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
2020/01/02 16:53 https://gvisor.googlesource.com/gvisor master 1f384ac42b9e 7f117e28 .config console log report ci-gvisor-ptrace-direct-overlay-host
2019/12/19 21:48 https://gvisor.googlesource.com/gvisor master 57ce26c0b465 36650b4b .config console log report ci-gvisor-main
* Struck through repros no longer work on HEAD.