panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x76c2f4] goroutine 33 [running]: github.com/google/syzkaller/prog.ForeachArg(0xc0008dc7c0, 0xc00018f908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:120 +0x64 github.com/google/syzkaller/prog.getCompatibleResources(0xc0008dc400, 0x8fb56c, 0x7, 0xc0028241e0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:892 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc0028241e0, 0xc00009c4b0, 0xcac6e0, 0x0, 0xc00018fae0, 0x200, 0xd64bf8, 0x2df9a0770, 0xc00018fb18) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:840 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcac6e0, 0xc0028241e0, 0xc00009c4b0, 0x0, 0x887e20, 0x1, 0x100c0024533c0, 0x10, 0x10) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:669 +0x27c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0028241e0, 0xc00009c4b0, 0x9b9540, 0xcac6e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:658 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:608 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc0028241e0, 0xc00009c4b0, 0xcab1c0, 0x1, 0x1, 0xc002849000, 0x180, 0x180, 0x9ce5, 0x148, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc0028241e0, 0xc00009c4b0, 0xd326a0, 0x148, 0xc00009c4b0, 0xc0000ea518) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:551 +0xd5 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc0028241e0, 0xc00009c4b0, 0xc002453140, 0x1, 0xc002453140, 0x0, 0xc00009c4b0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:540 +0x95 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc00018fec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc002453140, 0x9ac8a0, 0xc002096db0, 0x14, 0xc001cbb440, 0xc002756000, 0x26c2, 0x3000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ea main.(*Proc).loop(0xc001cbb480) /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:260 +0x1188