syzbot


panic: runtime error: index out of range [1] with length 0

Status: fixed on 2020/03/10 21:06
Fix commit: 43abb24657e7 Fix panic caused by invalid address for Bind in packet sockets.
First crash: 1733d, last: 1726d

Sample crash report:
panic: runtime error: index out of range [1] with length 0

goroutine 263 [running]:
encoding/binary.littleEndian.Uint16(...)
	GOROOT/src/encoding/binary/binary.go:52
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Bind(0xc0004480f0, 0xc0009baa80, 0x1599990, 0x0, 0x0, 0x0)
	pkg/sentry/socket/netstack/netstack.go:715 +0x34a
DIAGNOSIS:
I0301 15:19:11.546697    5877 main.go:296] ***************************
I0301 15:19:11.546754    5877 main.go:297] Args: [/syzkaller/managers/kvm-proxy-overlay-sandbox/current/image -root /syzkaller/managers/kvm-proxy-overlay-sandbox/workdir/gvisor_root -watchdog-action=panic -network=none -debug -alsologtostderr -platform=kvm -file-access=exclusive -overlay -network=sandbox debug -stacks --ps ci-gvisor-kvm-proxy-overlay-sandbox-2]
I0301 15:19:11.546806    5877 main.go:298] Version release-20200219.0-52-gabf7ebcd38e8
I0301 15:19:11.546827    5877 main.go:299] PID: 5877
I0301 15:19:11.546867    5877 main.go:300] UID: 0, GID: 0
I0301 15:19:11.546895    5877 main.go:301] Configuration:
I0301 15:19:11.546921    5877 main.go:302] 		RootDir: /syzkaller/managers/kvm-proxy-overlay-sandbox/workdir/gvisor_root
I0301 15:19:11.546947    5877 main.go:303] 		Platform: kvm
I0301 15:19:11.546968    5877 main.go:304] 		FileAccess: exclusive, overlay: true
I0301 15:19:11.547025    5877 main.go:305] 		Network: sandbox, logging: false
I0301 15:19:11.547066    5877 main.go:306] 		Strace: false, max size: 1024, syscalls: []
I0301 15:19:11.547095    5877 main.go:307] ***************************
D0301 15:19:11.547161    5877 container.go:158] Load container "/syzkaller/managers/kvm-proxy-overlay-sandbox/workdir/gvisor_root" "ci-gvisor-kvm-proxy-overlay-sandbox-2"
D0301 15:19:11.548882    5877 container.go:591] Signal container "ci-gvisor-kvm-proxy-overlay-sandbox-2": signal 0
D0301 15:19:11.548925    5877 sandbox.go:788] Signal sandbox "ci-gvisor-kvm-proxy-overlay-sandbox-2"
D0301 15:19:11.548944    5877 sandbox.go:318] Connecting to sandbox "ci-gvisor-kvm-proxy-overlay-sandbox-2"
D0301 15:19:11.549088    5877 urpc.go:534] urpc: successfully marshalled 117 bytes.
I0301 15:19:11.732129    5877 debug.go:122] Found sandbox "ci-gvisor-kvm-proxy-overlay-sandbox-2", PID: 5094
I0301 15:19:11.732183    5877 debug.go:131] Retrieving sandbox stacks
D0301 15:19:11.732213    5877 sandbox.go:906] Stacks sandbox "ci-gvisor-kvm-proxy-overlay-sandbox-2"
D0301 15:19:11.732229    5877 sandbox.go:318] Connecting to sandbox "ci-gvisor-kvm-proxy-overlay-sandbox-2"
D0301 15:19:11.732310    5877 urpc.go:534] urpc: successfully marshalled 36 bytes.
W0301 15:19:11.752996    5877 error.go:48] FATAL ERROR: retrieving stacks: getting sandbox "ci-gvisor-kvm-proxy-overlay-sandbox-2" stacks: urpc method "debug.Stacks" failed: connection reset by peer
retrieving stacks: getting sandbox "ci-gvisor-kvm-proxy-overlay-sandbox-2" stacks: urpc method "debug.Stacks" failed: connection reset by peer
W0301 15:19:11.753138    5877 main.go:329] Failure to execute command, err: 1

Crashes (1518):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/01 15:19 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 14:16 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 13:10 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz C ci-gvisor-kvm-direct-sandbox
2020/02/29 19:59 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/03 06:04 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/03 06:04 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/03 05:59 gvisor ce4d1e45bb88 c88c7b75 .config console log report syz ci-gvisor-main
2020/03/03 05:33 gvisor ce4d1e45bb88 c88c7b75 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/01 19:46 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 19:13 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 17:28 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 17:26 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 16:55 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 16:53 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 16:29 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 16:24 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 15:13 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 14:47 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 14:02 gvisor ce4d1e45bb88 c88c7b75 .config console log report syz ci-gvisor-main
2020/03/01 13:51 gvisor ce4d1e45bb88 c88c7b75 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/01 12:21 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 12:01 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 11:59 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 11:41 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 11:40 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 11:21 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 11:04 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 10:57 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 10:33 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 10:32 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 10:22 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 10:21 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 10:01 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 10:01 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 09:44 gvisor ce4d1e45bb88 c88c7b75 .config console log report syz ci-gvisor-main
2020/03/01 09:33 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/01 09:28 gvisor ce4d1e45bb88 c88c7b75 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/01 08:58 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 08:41 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 08:21 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/01 08:20 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/02/27 22:13 gvisor abf7ebcd38e8 c88c7b75 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 18:30 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 17:25 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 12:47 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 11:17 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 09:54 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 07:41 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 06:41 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 06:01 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 05:01 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 03:41 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 02:41 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 01:31 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/05 00:26 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 23:16 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 22:36 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 21:25 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 20:10 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 19:10 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 16:58 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 15:30 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 15:20 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 14:16 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 12:40 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 11:25 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 10:25 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 09:20 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 08:05 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 08:04 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 06:54 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 05:54 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/04 04:08 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 03:30 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 02:28 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 02:28 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/04 01:25 gvisor abf7ebcd38e8 c88c7b75 .config console log report ci-gvisor-kvm-direct-sandbox
2020/03/04 00:18 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/03 23:42 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/03 22:15 gvisor abf7ebcd38e8 c88c7b75 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/03 21:12 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/03 20:42 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/03 19:42 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/03 18:00 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/03 16:36 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/03 15:44 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/03 14:42 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-main
2020/03/03 11:55 gvisor abf7ebcd38e8 c88c7b75 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/03 10:22 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2020/03/03 08:52 gvisor ce4d1e45bb88 c88c7b75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.