panic: broken type ref goroutine 35 [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(0xc0020ea350, 0xc0020ea350) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:59 +0xed github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d80, 0xc00271ad60, 0xc0020e7dc0, 0xc0019c3908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:142 +0x2ba github.com/google/syzkaller/prog.foreachArgImpl(0x9b2e40, 0xc00271ad40, 0xc0020e7dc0, 0xc0019c3908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:159 +0x62d github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d80, 0xc00271ad20, 0xc0020e7dc0, 0xc0019c3908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2dc0, 0xc0020eca80, 0xc0020e7dc0, 0xc0019c3908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:156 +0x5e5 github.com/google/syzkaller/prog.ForeachArg(0xc0020e7b00, 0xc0019c3908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:122 +0xdd github.com/google/syzkaller/prog.getCompatibleResources(0xc0020e7ac0, 0x8fb507, 0x7, 0xc001c89aa0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:892 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc001c89aa0, 0xc00197c4b0, 0xcac580, 0x0, 0xc0019c3b08, 0x42dfd1, 0x926730, 0xc0019c3b18, 0x40) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:840 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcac580, 0xc001c89aa0, 0xc00197c4b0, 0x0, 0x887e00, 0x0, 0xc001a9fac0, 0x10, 0x10) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:669 +0x27c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc001c89aa0, 0xc00197c4b0, 0x9b90a0, 0xcac580, 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(0xc001c89aa0, 0xc00197c4b0, 0xcab040, 0x1, 0x1, 0xc0029a7000, 0x16f, 0x16f, 0x23ae, 0x137, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc001c89aa0, 0xc00197c4b0, 0xd30280, 0x137, 0xc00197c4b0, 0xc001a9f380) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:551 +0xd5 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc001c89aa0, 0xc00197c4b0, 0xc001a9e5c0, 0x7, 0xc001a9e5c0, 0xc001a9eb00, 0xc00197c4b0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:540 +0x95 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc0019c3ec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc001a9e5c0, 0x9ac400, 0xc00269c480, 0x14, 0xc0024b69c0, 0xc0027de000, 0x2668, 0x3000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ea main.(*Proc).loop(0xc0024b6a40) /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 OpenBSD/amd64 (ci-openbsd-multicore-7.c.syzkaller.internal) (tty00) login: kernel: protection fault trap, code=0 Stopped at in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace in_delmulti(fbeffffff7ffffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000b31400) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000b66800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000b66800) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000b66800) at tun_clone_destroy+0x1f2 sys/net/if_tun.c:329 tun_dev_close(5d01,7) at tun_dev_close+0x160 sys/net/if_tun.c:480 spec_close(ffff800021f139b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8075ac0348,7,fffffd807f7bf780,ffff800020e36768) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8066df0578,ffff800020e36768) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8066df0578,ffff800020e36768) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8066df0578,ffff800020e36768) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8066df0578,ffff800020e36768) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e36768) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e36768,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020e36768,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020e36768,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020e36768) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800021f13e30) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800021f13e30) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3a60, count: -17 ddb{0}> show registers rdi 0x2 rsi 0 rbp 0xffff800021f13780 rbx 0 rdx 0xffff800020e36768 rcx 0 rax 0 r8 0xffffffff81482863 rt_ifa_purge+0x153 r9 0x5 r10 0x3 r11 0x2e49f0b15763f793 r12 0 r13 0x3 r14 0xfbeffffff7ffffff r15 0x1 rip 0xffffffff8159770d in_delmulti+0x8d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800021f13720 ss 0x10 in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{0}> show proc PROC (syz-executor.1) pid=422346 stat=onproc flags process=a proc=2000 pri=32, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020e36eb8,0xffff800020e37138 process=0xffff800020dfd358 user=0xffff800021f0e000, vmspace=0xfffffd806e8f1008 estcpu=36, cpticks=2, pctcpu=0.11 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1390 425639 40651 0 3 0x80 nanosleep syz-executor.0 1390 182958 40651 0 3 0x4000080 msgwait syz-executor.0 1390 273250 40651 0 3 0x4000080 msgwait syz-executor.0 1390 210043 40651 0 3 0x4000080 fsleep syz-executor.0 5070 444967 0 0 3 0x14200 acct acct 40247 195482 0 0 3 0x14200 bored sosplice 40651 190979 1 0 3 0x82 nanosleep syz-executor.0 97401 139261 59321 0 7 0x100002 ksh 59321 190737 89192 0 3 0x92 select sshd 79450 434078 1 0 3 0x100083 ttyin getty 89192 11558 1 0 3 0x80 select sshd 77422 90131 76869 74 3 0x100092 bpf pflogd 76869 499105 1 0 3 0x80 netio pflogd 2903 9484 44944 73 3 0x100090 kqread syslogd 44944 171769 1 0 3 0x100082 netio syslogd 18512 18859 1 77 2 0x100090 dhclient 99306 116918 1 0 3 0x80 poll dhclient 13340 62224 0 0 3 0x14200 bored smr 59961 271664 0 0 3 0x14200 pgzero zerothread 69474 35622 0 0 3 0x14200 aiodoned aiodoned 66344 288089 0 0 3 0x14200 syncer update 39718 170328 0 0 3 0x14200 cleaner cleaner 74013 382632 0 0 3 0x14200 reaper reaper 261 496169 0 0 3 0x14200 pgdaemon pagedaemon 70826 371968 0 0 3 0x14200 bored crynlk 57464 434136 0 0 3 0x14200 bored crypto 94222 5713 0 0 3 0x40014200 acpi0 acpi0 49687 418229 0 0 3 0x40014200 idle1 97882 321273 0 0 3 0x14200 bored softnet 6576 111954 0 0 2 0x14200 systqmp 82113 340598 0 0 3 0x14200 bored systq 24493 521450 0 0 3 0x40014200 bored softclock 87490 220007 0 0 3 0x40014200 idle0 1 208811 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9527 6428K 6938K 78643K 11178 0 pcb 13 8K 8K 78643K 487 0 rtable 113 7K 8K 78643K 426 0 ifaddr 78 15K 16K 78643K 161 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1643 0 iov 0 0K 32K 78643K 66 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1421 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 112 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 12K 25K 78643K 482 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 95K 78643K 513 0 subproc 23 1K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 28 0 in_multi 48 2K 2K 78643K 114 0 ether_multi 1 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 266 0 pfkey data 0 0K 1K 78643K 2 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 81 52K 71K 78643K 2556 0 UVM aobj 18 4K 4K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 54 0 NDP 13 0K 0K 78643K 32 0 temp 108 3865K 3929K 78643K 12874 0 kqueue 2 2K 9K 78643K 26 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 37 0 35 1 0 1 1 0 8 0 rtentry 112 66 0 28 2 0 2 2 0 8 0 unpcb 120 384 0 374 1 0 1 1 0 8 0 syncache 264 13 0 13 3 2 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 544 168 0 164 1 0 1 1 0 8 0 inpcb 296 1112 0 1106 2 0 2 2 0 8 1 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 3 0 3 1 0 1 1 0 8 1 nd6 48 16 0 11 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 ppxss 1128 2 0 2 1 0 1 1 0 8 1 pffrag 232 3 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 2 1 0 1 1 0 8 0 pffrent 40 8 0 7 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 39 0 32 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 16 0 5 1 0 1 1 0 8 0 pfstkey 112 16 0 5 1 0 1 1 0 8 0 pfstate 328 16 0 5 2 0 2 2 0 8 0 pfrule 1360 35 0 21 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 275 0 86 13 1 12 13 0 8 0 art_table 32 276 0 86 2 0 2 2 0 8 0 art_node 16 65 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 6 1 0 1 1 0 8 0 semapl 112 110 0 100 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2073 0 673 89 0 89 89 0 8 0 ffsino 272 2073 0 673 94 0 94 94 0 8 0 nchpl 144 2930 0 1335 60 0 60 60 0 8 0 uvmvnodes 72 2244 0 0 41 0 41 41 0 8 0 vnodes 208 2244 0 0 119 0 119 119 0 8 0 namei 1024 8172 0 8172 1 0 1 1 0 8 1 percpumem 16 42 0 10 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 15 0 8 1 0 1 1 0 8 0 scxspl 192 9036 0 9036 11 8 3 7 0 8 3 plimitpl 152 57 0 48 1 0 1 1 0 8 0 sigapl 424 696 0 664 4 0 4 4 0 8 0 futexpl 56 7557 0 7556 1 0 1 1 0 8 0 knotepl 112 97 0 92 1 0 1 1 0 8 0 kqueuepl 144 87 0 84 1 0 1 1 0 8 0 pipelkpl 48 126 0 117 1 0 1 1 0 8 0 pipepl 120 252 0 240 1 0 1 1 0 8 0 fdescpl 496 679 0 664 3 0 3 3 0 8 0 filepl 152 4290 0 4207 5 0 5 5 0 8 0 lockfpl 104 84 0 83 1 0 1 1 0 8 0 lockfspl 48 32 0 31 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 427 0 418 1 0 1 1 0 8 0 zombiepl 144 665 0 664 1 0 1 1 0 8 0 processpl 984 696 0 664 5 0 5 5 0 8 0 procpl 624 1723 0 1688 4 0 4 4 0 8 0 sosppl 128 12 0 12 3 2 1 1 0 8 1 sockpl 400 1541 0 1523 5 1 4 4 0 8 2 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 154 0 0 19 0 19 19 0 8 0 mtagpl 96 29 0 0 1 0 1 1 0 8 0 mbufpl 256 275 0 0 16 0 16 16 0 8 0 bufpl 280 4324 0 134 300 0 300 300 0 8 0 anonpl 16 75588 0 74184 80 16 64 79 0 124 43 amapchunkpl 152 4121 0 4075 21 2 19 19 0 158 15 amappl16 192 2706 0 2683 54 10 44 54 0 8 37 amappl15 184 228 0 226 1 0 1 1 0 8 0 amappl14 176 236 0 231 1 0 1 1 0 8 0 amappl13 168 37 0 34 1 0 1 1 0 8 0 amappl12 160 212 0 210 2 1 1 1 0 8 0 amappl11 152 209 0 194 1 0 1 1 0 8 0 amappl10 144 18 0 16 1 0 1 1 0 8 0 amappl9 136 388 0 386 1 0 1 1 0 8 0 amappl8 128 374 0 371 2 0 2 2 0 8 0 amappl7 120 125 0 117 1 0 1 1 0 8 0 amappl6 112 182 0 181 1 0 1 1 0 8 0 amappl5 104 416 0 398 1 0 1 1 0 8 0 amappl4 96 655 0 628 1 0 1 1 0 8 0 amappl3 88 130 0 125 1 0 1 1 0 8 0 amappl2 80 4713 0 4644 2 0 2 2 0 8 0 amappl1 72 24994 0 24542 23 13 10 18 0 8 0 amappl 80 1991 0 1961 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 19 0 2 1 0 1 1 0 8 0 uaddrrnd 24 682 0 664 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 682 0 664 1 0 1 1 0 8 0 vmmpekpl 168 8771 0 8730 2 0 2 2 0 8 0 vmmpepl 168 90415 0 89321 141 16 125 126 0 357 65 vmsppl 368 681 0 664 2 0 2 2 0 8 0 pdppl 4096 1371 0 1331 6 0 6 6 0 8 0 pvpl 32 242175 0 238730 188 21 167 188 0 265 102 pmappl 232 681 0 664 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 264 0 5 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace in_delmulti(fbeffffff7ffffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000b31400) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000b66800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000b66800) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000b66800) at tun_clone_destroy+0x1f2 sys/net/if_tun.c:329 tun_dev_close(5d01,7) at tun_dev_close+0x160 sys/net/if_tun.c:480 spec_close(ffff800021f139b0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8075ac0348,7,fffffd807f7bf780,ffff800020e36768) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8066df0578,ffff800020e36768) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8066df0578,ffff800020e36768) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8066df0578,ffff800020e36768) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8066df0578,ffff800020e36768) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e36768) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e36768,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020e36768,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020e36768,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020e36768) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800021f13e30) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800021f13e30) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3a60, count: -17 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82911d90) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82911d90) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff800020e79e10,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800020e79e10) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffe4270, count: -7