panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x789f79] goroutine 24 [running]: github.com/google/syzkaller/prog.(*ConstArg).Size(0xc0025e2e20, 0xc0025e2e20) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:50 +0x29 github.com/google/syzkaller/prog.foreachArgImpl(0x9a78a0, 0xc0025e9980, 0xc0025e4b88, 0xc0025e9950, 0x0, 0x0, 0xc000f39808) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:137 +0x1dc github.com/google/syzkaller/prog.foreachArgImpl(0x9a78e0, 0xc0025e9950, 0xc0025e4b88, 0x0, 0x0, 0x302030203030200, 0xc000f39808) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:151 +0x3a6 github.com/google/syzkaller/prog.ForeachArg(0xc0025e4b80, 0xc000f39808) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:120 +0x9e github.com/google/syzkaller/prog.getCompatibleResources(0xc0025e4140, 0x8f47b8, 0x7, 0xc0024d2c40, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:901 +0xb9 github.com/google/syzkaller/prog.resourceCentric(0xcb5e60, 0xc00227d5e0, 0xc0024d2c40, 0xc000f39a01, 0x203000, 0xc000f399f8, 0x40c698) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:849 +0xf8 github.com/google/syzkaller/prog.(*ResourceType).generate(0xcb5e60, 0xc0024d2c40, 0xc00227d5e0, 0x30, 0x879280, 0xc0024e8080, 0xc002467f20, 0x30) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:681 +0x920 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0024d2c40, 0xc00227d5e0, 0x9ae9e0, 0xcb5e60, 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(0xc0024d2c40, 0xc00227d5e0, 0xca12c0, 0x3, 0x3, 0xc000f39d58, 0xf13cbbf7, 0x7a67398a946eab8f, 0xc000f39d90, 0x789e4e, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:611 +0x107 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc0024d2c40, 0xc00227d5e0, 0xceb680, 0x133, 0xc00227d5e0, 0xc002f3d080) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:555 +0xc6 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc0024d2c40, 0xc00227d5e0, 0xc00249adc0, 0x4, 0xc00249adc0, 0xc00249af40, 0xc00227d5e0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:547 +0xb2 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc000f39ec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:137 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc00249adc0, 0x9a2120, 0xc001f0b3b0, 0x1e, 0xc002729f00, 0xc00277a000, 0x1ea7, 0x2400) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:42 +0x29b main.(*Proc).loop(0xc00273c840) /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