panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x76c3b4] goroutine 25 [running]: github.com/google/syzkaller/prog.ForeachArg(0xc001722e00, 0xc000a80380) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:120 +0x64 github.com/google/syzkaller/prog.getCompatibleResources(0xc001722b80, 0x9015b6, 0xb, 0xc002ced040, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:892 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc002ced040, 0xc001306a50, 0xcafba0, 0x0, 0x9b4840, 0xc0013bff50, 0xc002e42e40, 0x1, 0xc000a805f8) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:840 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcafba0, 0xc002ced040, 0xc001306a50, 0x0, 0x9b4840, 0xc00003e380, 0x226ee0008, 0x0, 0x1) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:669 +0x27c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bac00, 0xcafba0, 0xc002e40000, 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(0xc002ced040, 0xc001306a50, 0xd46f20, 0xc, 0xc, 0xaaaaaaaaaaaaaa00, 0x38, 0x8, 0xcbe360, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcbc500, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0x6, 0x203000, 0x20, 0x20) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bace0, 0xcbc500, 0x226ee0000, 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(0xc002ced040, 0xc001306a50, 0xcb7ca0, 0x2, 0x2, 0x0, 0x888ea0, 0xc000a80ac0, 0xc000a80a90, 0x40be26, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcbc6e0, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0xc001414040, 0xc000083500, 0xc000a80ac0, 0x40c698) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bace0, 0xcbc6e0, 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.(*UnionType).generate(0xcb7820, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0xc002966660, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:788 +0xbf github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9badc0, 0xcb7820, 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(0xc002ced040, 0xc001306a50, 0xcb77e0, 0x2, 0x2, 0xcbb400, 0x0, 0x9b47c0, 0xc002ced700, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcbb600, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0xc002ced760, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bace0, 0xcbb600, 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(0xc002ced040, 0xc001306a50, 0xd461e0, 0x9, 0x9, 0xaaaaaaaaaaaaaa00, 0x38, 0xc002c99048, 0x40c698, 0x10, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcbb660, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0xc00134dba0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bace0, 0xcbb660, 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(0xc002ced040, 0xc001306a50, 0xcb7420, 0x2, 0x2, 0x0, 0x5, 0xc002c992a8, 0x40c698, 0x10, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb9e00, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0xc00134db80, 0x8, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bace0, 0xcb9e00, 0x4e0000, 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.(*UnionType).generate(0xcb7320, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0x0, 0x203000, 0x10, 0x10) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:788 +0xbf github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9badc0, 0xcb7320, 0x226ee0000, 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(0xc002ced040, 0xc001306a50, 0xcae3c0, 0x1, 0x1, 0xcd0600, 0x0, 0x9b4780, 0xc0013bf950, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb9ec0, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0xc002ced620, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bace0, 0xcb9ec0, 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(0xc002ced040, 0xc001306a50, 0xcd48a0, 0x4, 0x4, 0xc002c99800, 0xc002c99a60, 0x76c881, 0xc0013dd008, 0xcc9ac0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb9e60, 0xc002ced040, 0xc001306a50, 0x0, 0xd806c0, 0x0, 0xc002c99ae0, 0xc0013dd008, 0xcc9ac0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bace0, 0xcb9e60, 0xc002c90000, 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 OpenBSD/amd64 (ci-openbsd-main-1.c.syzkaller.internal) (tty00) github.com/google/syzkaller/prog.(*PtrType).generate(0xcb5ea0, 0xc002ced040, 0xc001306a50, 0x0, 0x9b4740, 0xc00134db20, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0x123 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002ced040, 0xc001306a50, 0x9bab20, 0xcb5ea0, 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(0xc002ced040, 0xc001306a50, 0xcb3d20, 0x2, 0x2, 0xc0030dec00, 0x180, 0x180, 0x1627, 0x172, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc002ced040, 0xc001306a50, 0xd39420, 0x172, 0xc001306a50, 0xc002f52500) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:551 +0xd5 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc002ced040, 0xc001306a50, 0xc0013dce40, 0x7, 0xc0013dce40, 0xc0013dd180, 0xc001306a50) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:540 +0x95 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc000a81e18, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc0013dce40, 0x9ade40, 0xc0000f7560, 0x14, 0xc002b0ecc0, 0xc002cb8000, 0x2704, 0x3000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ea main.(*Proc).smashInput(0xc002b0e240, 0xc002f35600) /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:213 +0x131 main.(*Proc).loop(0xc002b0e240) /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:78 +0x16b created by main.main /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:260 +0x1188 login: