panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x90 pc=0x78aa90] goroutine 28 [running]: github.com/google/syzkaller/prog.(*GroupArg).Size(0xc001c778c0, 0xc001c778c0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:189 +0x40 github.com/google/syzkaller/prog.foreachArgImpl(0x9ae320, 0xc001c778c0, 0xc001eb3d48, 0xc001c77890, 0x0, 0x203000, 0xc0001226f8) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x21e github.com/google/syzkaller/prog.foreachArgImpl(0x9ae360, 0xc001c77890, 0xc001eb3d48, 0x0, 0x0, 0xcfe22b00, 0xc0001226f8) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:151 +0x3a6 github.com/google/syzkaller/prog.ForeachArg(0xc001eb3d40, 0xc0001226f8) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:120 +0x9e github.com/google/syzkaller/prog.getCompatibleResources(0xc001eb3b00, 0x8fd8b5, 0xb, 0xc0021cac40, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:906 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc0021cac40, 0xc002086cd0, 0xcbc2c0, 0x1, 0x0, 0x0, 0x0, 0x8fd8b5) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:854 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcbc2c0, 0xc0021cac40, 0xc002086cd0, 0x9ae2a0, 0xc0021e6840, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:684 +0x282 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b54e0, 0xcbc2c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0021cac40, 0xc002086cd0, 0xd49720, 0xc, 0xc, 0x0, 0x0, 0x0, 0x100, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:610 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xcaee40, 0xc0021cac40, 0xc002086cd0, 0xa, 0xd84200, 0x18, 0x28, 0x20) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:795 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b55a0, 0xcaee40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0021cac40, 0xc002086cd0, 0xca62e0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x100, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:610 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xcaef80, 0xc0021cac40, 0xc002086cd0, 0xa, 0xd84200, 0x18, 0x28, 0xc0021e24b0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:795 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b55a0, 0xcaef80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*UnionType).generate(0xcb00c0, 0xc0021cac40, 0xc002086cd0, 0xc, 0xd84200, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:802 +0xa9 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b5660, 0xcb00c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0021cac40, 0xc002086cd0, 0xca8140, 0x2, 0x2, 0x0, 0x0, 0x0, 0x100, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:610 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xcae200, 0xc0021cac40, 0xc002086cd0, 0xb, 0xd84200, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:795 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b55a0, 0xcae200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0021cac40, 0xc002086cd0, 0xca7120, 0x2, 0x2, 0x0, 0x0, 0x0, 0x100, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:610 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xcad500, 0xc0021cac40, 0xc002086cd0, 0x28, 0xd84200, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:795 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b55a0, 0xcad500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*UnionType).generate(0xcafe00, 0xc0021cac40, 0xc002086cd0, 0xb, 0xd84200, 0x203000, 0x889a20, 0x10) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:802 +0xa9 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b5660, 0xcafe00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0021cac40, 0xc002086cd0, 0xca3950, 0x1, 0x1, 0x0, 0x0, 0x0, 0x100, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:610 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xcad5c0, 0xc0021cac40, 0xc002086cd0, 0xb, 0xd84200, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:795 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b55a0, 0xcad5c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0021cac40, 0xc002086cd0, 0xcb49c0, 0x4, 0x4, 0x0, 0x0, 0x0, 0x100, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:610 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xcad580, 0xc0021cac40, 0xc002086cd0, 0xa, 0xd84200, 0x203000, 0x203000, 0x203000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:795 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b55a0, 0xcad580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*PtrType).generate(0xcb97a0, 0xc0021cac40, 0xc002086cd0, 0x9ae2a0, 0xc0021dd9c0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:811 +0x95 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0021cac40, 0xc002086cd0, 0x9b5420, 0xcb97a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:673 +0x506 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:622 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0021cac40, 0xc002086cd0, 0xca79e0, 0x2, 0x2, 0x410fca, 0xc000123d40, 0x41fa1581, 0x17126ed2a50f89e6, 0xc000123d78, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:610 +0x107 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc0021cac40, 0xc002086cd0, 0xd48b20, 0x145, 0xc002086cd0, 0xc002c26800) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:565 +0xd0 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc0021cac40, 0xc002086cd0, 0xc00219ee00, 0x6, 0xc00219ee00, 0xc00219f6c0, 0xc002086cd0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:554 +0xb2 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc000123ec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc00219ee00, 0x9a8ba0, 0xc002870900, 0x14, 0xc00286f380, 0xc00236c000, 0x2090, 0x2400) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ea main.(*Proc).loop(0xc002813d00) /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:95 +0x434 created by main.main /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:259 +0x114c