syzbot


panic: runtime error: index out of range

Status: fixed on 2018/08/19 04:48
Fix commit: e97717e29a1b Enforce Unix socket address length limit
First crash: 2344d, last: 2307d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: runtime error: index out of range (2) C 7191 2063d 2068d 0/26 fixed on 2019/04/04 10:15

Sample crash report:
panic: runtime error: index out of range

goroutine 165 [running]:
gvisor.googlesource.com/gvisor/pkg/sentry/socket/epsocket.ConvertAddress(0x1, 0xc400000000, 0xc4206a2100, 0x7e, 0x10100000000, 0x0, 0xc4203fef30, 0xc4205f9a10)
	pkg/sentry/socket/epsocket/epsocket.go:742 +0x65a
gvisor.googlesource.com/gvisor/pkg/sentry/socket/unix.(*SocketOperations).GetPeerName(0xc4204165f0, 0xc42058f200, 0xc4203fef30, 0xc4206a8230, 0xc4203fef30, 0xc4205f9a78)
	pkg/sentry/socket/unix/unix.go:118 +0x7c
gvisor.googlesource.com/gvisor/pkg/sentry/socket/unix.(*SocketOperations).Accept(0xc420416500, 0xc42058f200, 0xc420410001, 0x0, 0xc420416501, 0xc400000000, 0x0, 0x0, 0x3fc100000000, 0x0)
	pkg/sentry/socket/unix/unix.go:203 +0x1c3
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.accept(0xc42058f200, 0x3fc000000004, 0x0, 0x20b3f000, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/syscalls/linux/sys_socket.go:307 +0x179
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Accept(0xc42058f200, 0x4, 0x0, 0x20b3f000, 0x1, 0x1, 0x1, 0xc4205f9bf8, 0x20800000, 0x3fc06d2f7000, ...)
	pkg/sentry/syscalls/linux/sys_socket.go:338 +0x51
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc42058f200, 0x2b, 0x4, 0x0, 0x20b3f000, 0x1, 0x1, 0x1, 0xc4205f9ca8, 0xbb34a0, ...)
	pkg/sentry/kernel/task_syscall.go:162 +0x307
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc42058f200, 0x2b, 0x4, 0x0, 0x20b3f000, 0x1, 0x1, 0x1, 0x1, 0x1)
	pkg/sentry/kernel/task_syscall.go:278 +0x62
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc42058f200, 0x2b, 0x4, 0x0, 0x20b3f000, 0x1, 0x1, 0x1, 0xc42024dc00, 0xc4205f9e00)
	pkg/sentry/kernel/task_syscall.go:241 +0x91
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc42058f200, 0x2, 0xc420128480)
	pkg/sentry/kernel/task_syscall.go:216 +0x10c
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc42058f200, 0xc65f20, 0x0)
	pkg/sentry/kernel/task_run.go:217 +0xed8
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc42058f200, 0x7)
	pkg/sentry/kernel/task_run.go:95 +0x174
created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:251 +0x100

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/29 04:09 https://gvisor.googlesource.com/gvisor master 6b6852bceb12 dba0b50e .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2018/06/27 14:11 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report syz C ci-gvisor-kvm-direct-sandbox
2018/06/27 13:12 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report syz C ci-gvisor-main
2018/06/27 13:11 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report syz C ci-gvisor-ptrace-direct-overlay-host
2018/06/27 13:04 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/30 17:08 https://gvisor.googlesource.com/gvisor master 3188859742e8 1a381291 .config console log report ci-gvisor-kvm-direct-sandbox
2018/07/26 12:09 https://gvisor.googlesource.com/gvisor master e5adf42f66a3 375a3e31 .config console log report ci-gvisor-main
2018/07/26 04:32 https://gvisor.googlesource.com/gvisor master 1129b35c9203 375a3e31 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/24 08:40 https://gvisor.googlesource.com/gvisor master d7a34790a0cc 912c93d7 .config console log report ci-gvisor-main
2018/07/21 20:49 https://gvisor.googlesource.com/gvisor master f543ada15005 8cc079c3 .config console log report ci-gvisor-main
2018/07/20 20:07 https://gvisor.googlesource.com/gvisor master f62d6dd4537b af255b09 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/20 05:04 https://gvisor.googlesource.com/gvisor master a95640b1e9fb 49f35839 .config console log report ci-gvisor-main
2018/07/19 08:51 https://gvisor.googlesource.com/gvisor master c05660373e8b 49f35839 .config console log report ci-gvisor-main
2018/07/17 22:42 https://gvisor.googlesource.com/gvisor master 29e00c943a61 570df9b2 .config console log report ci-gvisor-main
2018/07/17 14:02 https://gvisor.googlesource.com/gvisor master 14d06064d26b 13761366 .config console log report ci-gvisor-main
2018/07/15 15:12 https://gvisor.googlesource.com/gvisor master 9059983fdb2c 92a49505 .config console log report ci-gvisor-main
2018/07/12 02:07 https://gvisor.googlesource.com/gvisor master c15cb8d43203 2e0e3130 .config console log report ci-gvisor-main
2018/07/11 20:54 https://gvisor.googlesource.com/gvisor master 9cd69c2f3db7 2e0e3130 .config console log report ci-gvisor-main
2018/07/11 19:27 https://gvisor.googlesource.com/gvisor master 9cd69c2f3db7 2e0e3130 .config console log report ci-gvisor-kvm-direct-sandbox
2018/07/11 17:04 https://gvisor.googlesource.com/gvisor master 9cd69c2f3db7 2e0e3130 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/09 15:20 https://gvisor.googlesource.com/gvisor master 5c88e6a15d46 f25e5770 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/09 14:36 https://gvisor.googlesource.com/gvisor master 5c88e6a15d46 f25e5770 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/09 10:11 https://gvisor.googlesource.com/gvisor master 5c88e6a15d46 f25e5770 .config console log report ci-gvisor-main
2018/07/09 00:59 https://gvisor.googlesource.com/gvisor master 5c88e6a15d46 f25e5770 .config console log report ci-gvisor-main
2018/07/08 13:00 https://gvisor.googlesource.com/gvisor master 5c88e6a15d46 6c0c0099 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/06 22:59 https://gvisor.googlesource.com/gvisor master f107a5b1a0e2 6c0c0099 .config console log report ci-gvisor-main
2018/08/02 21:02 https://github.com/dvyukov/gvisor.git race 72627b310e89 5b7e23bb .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/24 09:56 https://github.com/dvyukov/gvisor.git race 72627b310e89 912c93d7 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/22 11:39 https://github.com/dvyukov/gvisor.git race 72627b310e89 8cc079c3 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/21 11:40 https://github.com/dvyukov/gvisor.git race 72627b310e89 8cc079c3 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/14 00:09 https://github.com/dvyukov/gvisor.git race 54dabe736f40 92a49505 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/12 07:57 https://github.com/dvyukov/gvisor.git race 54dabe736f40 2e0e3130 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/10 20:09 https://github.com/dvyukov/gvisor.git race 54dabe736f40 9fa03fa5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/05 12:28 https://github.com/dvyukov/gvisor.git race 54dabe736f40 f525fd72 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 12:58 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.