panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x789c69] goroutine 24 [running]: github.com/google/syzkaller/prog.(*ConstArg).Size(0xc002437120, 0xc002437120) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:50 +0x29 github.com/google/syzkaller/prog.foreachArgImpl(0x9a74c0, 0xc00243a270, 0xc0023fb308, 0xc00243a240, 0x0, 0xc0019e8700, 0xc00335d808) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:137 +0x1dc github.com/google/syzkaller/prog.foreachArgImpl(0x9a7500, 0xc00243a240, 0xc0023fb308, 0x0, 0x0, 0xd9f39d8d00, 0xc00335d808) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:151 +0x3a6 github.com/google/syzkaller/prog.ForeachArg(0xc0023fb300, 0xc00335d808) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:120 +0x9e github.com/google/syzkaller/prog.getCompatibleResources(0xc0023fb100, 0x8f2b33, 0x6, 0xc002415fe0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:901 +0xb9 github.com/google/syzkaller/prog.resourceCentric(0xcb1300, 0xc001e19ae0, 0xc002415fe0, 0x1, 0x8a8620, 0xc00335daa0, 0x79037d) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:849 +0xf8 github.com/google/syzkaller/prog.(*ResourceType).generate(0xcb1300, 0xc002415fe0, 0xc001e19ae0, 0x9a7500, 0xc00230dbf0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:681 +0x920 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002415fe0, 0xc001e19ae0, 0x9ae600, 0xcb1300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:674 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:623 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc002415fe0, 0xc001e19ae0, 0xcb84a0, 0x5, 0x5, 0xc00335dd58, 0x69ccf528, 0x658a258d6c5f4268, 0xc00335dd90, 0x789b3e, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:611 +0x107 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc002415fe0, 0xc001e19ae0, 0xce73a0, 0xc9, 0xc001e19ae0, 0xc00230d5f0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:555 +0xc6 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc002415fe0, 0xc001e19ae0, 0xc0023fa900, 0x4, 0xc0023fa900, 0xc0023fab40, 0xc001e19ae0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:547 +0xb2 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc00335dec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:137 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc0023fa900, 0x9a1d40, 0xc0031192f0, 0x1e, 0xc0030e1dc0, 0xc002cc0000, 0x1ef7, 0x2400) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:42 +0x29b main.(*Proc).loop(0xc0030e1e40) /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:99 +0x434 created by main.main /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:259 +0x114c