panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x789c69] goroutine 26 [running]: github.com/google/syzkaller/prog.(*ConstArg).Size(0xc0026a4020, 0xc0026a4020) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:50 +0x29 github.com/google/syzkaller/prog.foreachArgImpl(0x9a74c0, 0xc00269ab40, 0xc002696b88, 0xc00269ab10, 0x0, 0xc00014c600, 0xc002614820) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:137 +0x1dc github.com/google/syzkaller/prog.foreachArgImpl(0x9a7500, 0xc00269ab10, 0xc002696b88, 0x0, 0x0, 0x302030303020200, 0xc002614820) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:151 +0x3a6 github.com/google/syzkaller/prog.ForeachArg(0xc002696b80, 0xc002614820) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:120 +0x9e github.com/google/syzkaller/prog.getCompatibleResources(0xc0026967c0, 0x8f0202, 0x3, 0xc002476ba0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:901 +0xb9 github.com/google/syzkaller/prog.resourceCentric(0xca9f20, 0xc0023eb220, 0xc002476ba0, 0x9a7501, 0xc0025a3a80, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:849 +0xf8 github.com/google/syzkaller/prog.(*ResourceType).generate(0xca9f20, 0xc002476ba0, 0xc0023eb220, 0x9a7540, 0xc0025a3a80, 0xc000138380, 0x288d18008, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:681 +0x920 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002476ba0, 0xc0023eb220, 0x9ae600, 0xca9f20, 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.(*ArrayType).generate(0xcbc5e0, 0xc002476ba0, 0xc0023eb220, 0x100, 0x80, 0x203000, 0x203000, 0x203000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:805 +0x16e github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002476ba0, 0xc0023eb220, 0x9adf40, 0xcbc5e0, 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.(*PtrType).generate(0xca9ec0, 0xc002476ba0, 0xc0023eb220, 0x9a7440, 0xc0025b4fe0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:829 +0x95 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002476ba0, 0xc0023eb220, 0x9ae540, 0xca9ec0, 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(0xc002476ba0, 0xc0023eb220, 0xc9a240, 0x2, 0x2, 0xc00014d088, 0x4eeea3, 0xc0024b0000, 0x122b2cd77d68ef2d, 0xc00014d0b0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:611 +0x107 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc002476ba0, 0xc0023eb220, 0xce12c0, 0x8, 0x9, 0xc002799800) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:555 +0xc6 OpenBSD/amd64 (ci-openbsd-main-6.c.syzkaller.internal) (tty00) github.com/google/syzkaller/prog.(*randGen).createResource(0xc002476ba0, 0xc0023eb220, 0xcb1720, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:388 +0x54b github.com/google/syzkaller/prog.(*ResourceType).generate(0xcb1720, 0xc002476ba0, 0xc0023eb220, 0x9a7540, 0xc0025a39c0, 0xc002c2dd28, 0x1, 0x1) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:706 +0x5e8 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002476ba0, 0xc0023eb220, 0x9ae600, 0xcb1720, 0xc002c2dd00, 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(0xc002476ba0, 0xc0023eb220, 0xd45920, 0xb, 0xb, 0x0, 0x30, 0x0, 0x0, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:611 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xca18c0, 0xc002476ba0, 0xc0023eb220, 0x8, 0xd787c0, 0x0, 0x17, 0xb0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:813 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002476ba0, 0xc0023eb220, 0x9ae6c0, 0xca18c0, 0x203000, 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(0xc002476ba0, 0xc0023eb220, 0xd459e0, 0xb, 0xb, 0x0, 0x78, 0x0, 0x0, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:611 +0x107 github.com/google/syzkaller/prog.(*StructType).generate(0xca0300, 0xc002476ba0, 0xc0023eb220, 0x8, 0xd787c0, 0x203000, 0x203000, 0xc002482300) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:813 +0x76 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002476ba0, 0xc0023eb220, 0x9ae6c0, 0xca0300, 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.(*PtrType).generate(0xcb1c60, 0xc002476ba0, 0xc0023eb220, 0x9a7440, 0xc0024d1580, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:829 +0x95 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002476ba0, 0xc0023eb220, 0x9ae540, 0xcb1c60, 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(0xc002476ba0, 0xc0023eb220, 0xca02c0, 0x3, 0x3, 0xc00014dd58, 0xde542a37, 0xe01b2a1344f99504, 0xc00014dd90, 0x789b3e, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:611 +0x107 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc002476ba0, 0xc0023eb220, 0xce7da0, 0xd9, 0xc0023eb220, 0xc002798d80) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:555 +0xc6 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc002476ba0, 0xc0023eb220, 0xc002441c00, 0xd, 0xc002441c00, 0x0, 0xc0023eb220) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:547 +0xb2 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc00014dec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:137 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc002441c00, 0x9a1d40, 0xc002077ad0, 0x1e, 0xc001fc9f80, 0xc002378000, 0x1ec1, 0x2400) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:42 +0x29b main.(*Proc).loop(0xc002073980) /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 login: