panic: broken type ref goroutine 26 [running]: github.com/google/syzkaller/prog.ArgCommon.Type(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:39 github.com/google/syzkaller/prog.(*ConstArg).Size(0xc00335eae0, 0xc00335eae0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:59 +0xed github.com/google/syzkaller/prog.foreachArgImpl(0x9b1e40, 0xc00334bec0, 0xc003363580, 0xc002c5c428) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:142 +0x2ba github.com/google/syzkaller/prog.foreachArgImpl(0x9b1e80, 0xc003361770, 0xc003363580, 0xc002c5c428) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:156 +0x5e5 github.com/google/syzkaller/prog.ForeachArg(0xc0033632c0, 0xc002c5c428) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:122 +0xdd github.com/google/syzkaller/prog.getCompatibleResources(0xc003363200, 0x8ff16c, 0xb, 0xc001a53320, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:901 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc001a53320, 0xc002e1ba40, 0xcab6a0, 0x0, 0x9b1ec0, 0xc001823e60, 0xc0029f94e0, 0x1, 0xc00309c6a0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:849 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcab6a0, 0xc001a53320, 0xc002e1ba40, 0x0, 0x9b1ec0, 0xc000134a80, 0x26b3f2008, 0x0, 0x1) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:678 +0x27c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8160, 0xcab6a0, 0xc0029f0000, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xd3f2e0, 0xc, 0xc, 0xaaaaaaaaaaaaaa00, 0x38, 0x8, 0xcb8560, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb5c60, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0x4, 0x203000, 0x20, 0x20) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8220, 0xcb5c60, 0x26b3f0000, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xcb5e20, 0x2, 0x2, 0xc001d43b00, 0x0, 0x215665108, 0xc00309cb38, 0x40be26, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb5de0, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0xc002358080, 0xc001c73500, 0xc00309cb68, 0x40c698) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8220, 0xcb5de0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) OpenBSD/amd64 (ci-openbsd-main-8.c.syzkaller.internal) (tty00) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*UnionType).generate(0xcaeaa0, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0xc001d0c4a0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0xbf github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b82e0, 0xcaeaa0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xcb4fa0, 0x2, 0x2, 0xcb4c00, 0x0, 0x9b1e40, 0xc001d900a0, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb4f60, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0xc001d90100, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8220, 0xcb4f60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xd3e5a0, 0x9, 0x9, 0xaaaaaaaaaaaaaa00, 0x38, 0xc00309d0f0, 0x40c698, 0x10, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb4fe0, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0xc00185d050, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8220, 0xcb4fe0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xcb3d60, 0x2, 0x2, 0xc001a0b100, 0x0, 0xc00309d3f8, 0x7917a7, 0xcb65a0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb3d20, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0xc00185d000, 0x0, 0x203000, 0x203000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8220, 0xcb3d20, 0x9b0000, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*UnionType).generate(0xcae860, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0x2, 0x203000, 0x10, 0x10) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0xbf github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b82e0, 0xcae860, 0x26b3f0000, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xcaa220, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb3de0, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0xc001a53e20, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8220, 0xcb3de0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xccda40, 0x4, 0x4, 0xc00309d900, 0xc00309db08, 0x76c7c1, 0xc001a0af08, 0xcb2ca0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb3da0, 0xc001a53320, 0xc002e1ba40, 0x0, 0xd78600, 0x0, 0xc00309db88, 0xc001a0af08, 0xcb2ca0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:789 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b8220, 0xcb3da0, 0xc003090000, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*PtrType).generate(0xcad860, 0xc001a53320, 0xc002e1ba40, 0x0, 0x9b1dc0, 0xc00185cf40, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:806 +0x123 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001a53320, 0xc002e1ba40, 0x9b80a0, 0xcad860, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:667 +0x450 github.com/google/syzkaller/prog.(*randGen).generateArg(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:617 github.com/google/syzkaller/prog.(*randGen).generateArgs(0xc001a53320, 0xc002e1ba40, 0xcb2ca0, 0x2, 0x2, 0x49ff00, 0xc002536400, 0x16f, 0x16f, 0x101e, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:605 +0x116 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc001a53320, 0xc002e1ba40, 0xd31660, 0x161, 0xc002e1ba40, 0xc0029f94d0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:560 +0xd5 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc001a53320, 0xc002e1ba40, 0xc001a0aec0, 0x1, 0xc001a0aec0, 0x0, 0xc002e1ba40) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:549 +0x95 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc002c5dec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc001a0aec0, 0x9ab4c0, 0xc0022c3bc0, 0x14, 0xc0020b2900, 0xc0025a8000, 0x273e, 0x3000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ea main.(*Proc).loop(0xc0020b2980) /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:258 +0x1155 login: