panic: broken type ref goroutine 25 [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(0xc0037551f0, 0xc0037551f0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:59 +0xed github.com/google/syzkaller/prog.foreachArgImpl(0x9b2be0, 0xc003752ee0, 0xc003757dc0, 0xc000430688) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:142 +0x2ba github.com/google/syzkaller/prog.foreachArgImpl(0x9b2be0, 0xc003752ea0, 0xc003757dc0, 0xc000430688) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2c20, 0xc003759530, 0xc003757dc0, 0xc000430688) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:156 +0x5e5 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2be0, 0xc003752e80, 0xc003757dc0, 0xc000430688) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2c20, 0xc0037594d0, 0xc003757dc0, 0xc000430688) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:156 +0x5e5 github.com/google/syzkaller/prog.ForeachArg(0xc003757c00, 0xc000430688) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:122 +0xdd github.com/google/syzkaller/prog.getCompatibleResources(0xc003757ac0, 0x900149, 0xb, 0xc002dcb180, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:892 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc002dcb180, 0xc001b0fc70, 0xcac6a0, 0x0, 0x0, 0x0, 0xc001dc5ce0, 0xc000430890, 0x792cb9) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:840 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcac6a0, 0xc002dcb180, 0xc001b0fc70, 0x0, 0x9b2c60, 0xc001dfee10, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:669 +0x27c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8f00, 0xcac6a0, 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(0xc002dcb180, 0xc001b0fc70, 0xd402e0, 0xc, 0xc, 0xaaaaaaaaaaaaaa00, 0x38, 0x8, 0x40c698, 0x203000, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb6c60, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0x10, 0x20, 0x20, 0x20) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8fc0, 0xcb6c60, 0xc000b80000, 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(0xc002dcb180, 0xc001b0fc70, 0xcb6e20, 0x2, 0x2, 0x0, 0x0, 0x203000, 0x4, 0xcc9e40, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb6de0, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0x10, 0x20, 0xc002dcbd80, 0xc000431a00) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8fc0, 0xcb6de0, 0xc000e90000, 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(0xcaf9e0, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0xc002dcbd80, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:788 +0xbf github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b9080, 0xcaf9e0, 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(0xc002dcb180, 0xc001b0fc70, 0xcb5c60, 0x2, 0x2, 0xaaaaaaaaaaaaaa00, 0x38, 0xc0004310f0, 0x40c698, 0x10, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb5c20, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0xc001dc5960, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8fc0, 0xcb5c20, 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(0xc002dcb180, 0xc001b0fc70, 0xcb4ce0, 0x2, 0x2, 0xc001e1eb00, 0x0, 0xc0004313f8, 0x791647, 0xcb75a0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb4ca0, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0x40c698, 0x8, 0x203000, 0x203000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8fc0, 0xcb4ca0, 0x9b0000, 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(0xcaf860, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0x2, 0x203000, 0x10, 0x10) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:788 +0xbf github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b9080, 0xcaf860, 0x22b2b0000, 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(0xc002dcb180, 0xc001b0fc70, 0xcab220, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 OpenBSD/amd64 (ci-openbsd-main-4.c.syzkaller.internal) (tty00) github.com/google/syzkaller/prog.(*StructType).generate(0xcb4de0, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0xc002dcb3c0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8fc0, 0xcb4de0, 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(0xc002dcb180, 0xc001b0fc70, 0xccea40, 0x4, 0x4, 0xc000431900, 0xc000431b08, 0x76c7c1, 0xc001e1e008, 0xcc0ee0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb4da0, 0xc002dcb180, 0xc001b0fc70, 0x0, 0xd79600, 0x0, 0xc000431b88, 0xc001e1e008, 0xcc0ee0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8fc0, 0xcb4da0, 0xc000430000, 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.(*PtrType).generate(0xcae860, 0xc002dcb180, 0xc001b0fc70, 0x0, 0x9b2b60, 0xc001dc58a0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:797 +0x123 github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002dcb180, 0xc001b0fc70, 0x9b8e40, 0xcae860, 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(0xc002dcb180, 0xc001b0fc70, 0xcb3ca0, 0x2, 0x2, 0x49ff00, 0xc002804c00, 0x16f, 0x16f, 0x28f8, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc002dcb180, 0xc001b0fc70, 0xd32660, 0x161, 0xc001b0fc70, 0xc001e1e880) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:551 +0xd5 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc002dcb180, 0xc001b0fc70, 0xc001e05e40, 0x2, 0xc001e05e40, 0xc001e05f00, 0xc001b0fc70) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:540 +0x95 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc000431ec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc001e05e40, 0x9ac260, 0xc0021bbf20, 0x14, 0xc00217aac0, 0xc00236a000, 0x276b, 0x3000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ea main.(*Proc).loop(0xc00217ab00) /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 login: