panic: broken type ref goroutine 38 [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(0xc0033666e0, 0xc0033666e0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:59 +0xed github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d80, 0xc0033597a0, 0xc003369240, 0xc0024af908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:142 +0x2ba github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d80, 0xc003359780, 0xc003369240, 0xc0024af908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d80, 0xc003359760, 0xc003369240, 0xc0024af908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2dc0, 0xc00336ac60, 0xc003369240, 0xc0024af908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:156 +0x5e5 github.com/google/syzkaller/prog.ForeachArg(0xc003368c00, 0xc0024af908) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:122 +0xdd github.com/google/syzkaller/prog.getCompatibleResources(0xc003368a40, 0x8fb507, 0x7, 0xc0019a2e80, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:892 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc0019a2e80, 0xc001e5e550, 0xcac580, 0x0, 0xc0024afb08, 0x42dfd1, 0x926730, 0xc0024afb18, 0x40) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:840 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcac580, 0xc0019a2e80, 0xc001e5e550, 0x0, 0x887e00, 0x0, 0xc001f10240, 0x10, 0x10) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:669 +0x27c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc0019a2e80, 0xc001e5e550, 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(0xc0019a2e80, 0xc001e5e550, 0xcab040, 0x1, 0x1, 0xc001ff1400, 0x16f, 0x16f, 0x2729, 0x137, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc0019a2e80, 0xc001e5e550, 0xd30280, 0x137, 0xc001e5e550, 0xc00251ef00) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:551 +0xd5 github.com/google/syzkaller/prog.(*randGen).generateCall(0xc0019a2e80, 0xc001e5e550, 0xc001e51400, 0x0, 0xc001e51400, 0xc001e51480, 0xc001e5e550) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:540 +0x95 github.com/google/syzkaller/prog.(*mutator).insertCall(0xc0024afec0, 0x14) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:141 +0xf2 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc001e51400, 0x9ac400, 0xc002da6210, 0x14, 0xc002db0080, 0xc002b52000, 0x2738, 0x3000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:45 +0x2ea main.(*Proc).loop(0xc002db0100) /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-4.c.syzkaller.internal) (tty00) login: uvm_fault(0xffffffff82851588, 0xffffffffffff000b, 0, 1) -> e kernel: page fault trap, code=0 Stopped at in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel page fault uvm_fault(0xffffffff82851588, 0xffffffffffff000b, 0, 1) -> e in_delmulti(fffffffffffeffff) at in_delmulti+0x8d sys/netinet/in.c:914 end trace frame: 0xffff800023102b80, count: 0 ddb{1}> trace in_delmulti(fffffffffffeffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000b59500) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000af1800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000af1800) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000af1800) 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(ffff800023102d60) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ed3c008,7,fffffd807f7bf900,ffff800020e09ae8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd806665ddc8,ffff800020e09ae8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806665ddc8,ffff800020e09ae8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806665ddc8,ffff800020e09ae8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806665ddc8,ffff800020e09ae8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e09ae8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e09ae8,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020e09ae8,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020e09ae8,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020e09ae8) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff8000231031e0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000231031e0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6590, count: -17 ddb{1}> show registers rdi 0x2 rsi 0 rbp 0xffff800023102b30 rbx 0 rdx 0xffff800020e09ae8 rcx 0 rax 0 r8 0xffffffff81760ba3 rt_ifa_purge+0x153 r9 0x5 r10 0x3 r11 0xe901a4b95351a95e r12 0 r13 0x3 r14 0xfffffffffffeffff r15 0x1 rip 0xffffffff81b3d60d in_delmulti+0x8d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800023102ad0 ss 0x10 in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{1}> show proc PROC (syz-executor.1) pid=410558 stat=onproc flags process=a proc=2000 pri=32, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd5f8,0xffff800020e08ec8 process=0xffff800020df1720 user=0xffff8000230fe000, vmspace=0xfffffd807f0008a0 estcpu=20, cpticks=2, pctcpu=0.7 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33439 387882 0 0 3 0x14200 bored sosplice 57219 276923 1 0 2 0x82 syz-executor.0 31571 503396 57424 0 3 0x10008a pause ksh 57424 468293 25577 0 3 0x92 select sshd 40672 288854 1 0 3 0x100083 ttyin getty 25577 305353 1 0 3 0x80 select sshd 40090 307844 54551 74 3 0x100092 bpf pflogd 54551 68916 1 0 3 0x80 netio pflogd 39325 497077 67553 73 3 0x100090 kqread syslogd 67553 196290 1 0 3 0x100082 netio syslogd 95846 50975 1 77 2 0x100090 dhclient 31862 103892 1 0 3 0x80 poll dhclient 74638 250566 0 0 3 0x14200 bored smr 94556 288349 0 0 2 0x14200 zerothread 60655 285704 0 0 3 0x14200 aiodoned aiodoned 50518 486107 0 0 3 0x14200 syncer update 75020 25178 0 0 3 0x14200 cleaner cleaner 2359 247763 0 0 7 0x14200 reaper 37198 374305 0 0 3 0x14200 pgdaemon pagedaemon 3421 221564 0 0 3 0x14200 bored crynlk 30040 257940 0 0 3 0x14200 bored crypto 67106 37038 0 0 3 0x40014200 acpi0 acpi0 57563 274896 0 0 3 0x40014200 idle1 65579 171875 0 0 3 0x14200 bored softnet 3426 18396 0 0 2 0x14200 systqmp 24237 493274 0 0 3 0x14200 bored systq 41802 168675 0 0 3 0x40014200 bored softclock 47542 245232 0 0 3 0x40014200 idle0 1 502982 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9502 6410K 7185K 78643K 11207 0 pcb 13 8K 8K 78643K 33 0 rtable 94 3K 4K 78643K 246 0 ifaddr 68 14K 14K 78643K 96 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1487 0 iov 0 0K 16K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1380 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 32 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 3 8K 25K 78643K 186 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 95K 78643K 445 0 subproc 23 1K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 4 0 in_multi 48 2K 2K 78643K 84 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 213 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 86 20K 23K 78643K 1504 0 UVM aobj 7 2K 2K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 16 0 NDP 10 0K 0K 78643K 21 0 temp 91 3857K 3921K 78643K 2639 0 kqueue 2 2K 12K 78643K 11 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 53 0 16 2 0 2 2 0 8 0 unpcb 120 137 0 127 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 547 0 547 1 1 0 1 0 8 0 tcpcb 544 46 0 43 1 0 1 1 0 8 0 inpcb 296 171 0 165 2 0 2 2 0 8 1 nd6 48 12 0 8 1 0 1 1 0 8 0 pffrag 232 3 0 3 1 1 0 1 0 482 0 pffrnode 88 3 0 3 1 1 0 1 0 8 0 pffrent 40 6 0 6 1 1 0 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 1 0 0 1 0 1 1 0 8 0 pfstitem 24 28 0 3 1 0 1 1 0 8 0 pfstkey 112 28 0 3 1 0 1 1 0 8 0 pfstate 328 28 0 3 3 0 3 3 0 8 0 pfrule 1360 23 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 16 12 0 12 12 0 8 0 art_table 32 189 0 16 2 0 2 2 0 8 0 art_node 16 52 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 14 1 0 1 1 0 8 0 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 12 0 7 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1659 0 256 89 1 88 89 0 8 0 ffsino 272 1659 0 256 95 1 94 94 0 8 0 nchpl 144 2110 0 502 60 0 60 60 0 8 0 uvmvnodes 72 1840 0 0 34 0 34 34 0 8 0 vnodes 208 1840 0 0 97 0 97 97 0 8 0 namei 1024 5709 0 5709 2 1 1 1 0 8 1 percpumem 16 35 0 3 1 0 1 1 0 8 0 scxspl 192 6165 0 6165 8 5 3 7 0 8 3 plimitpl 152 29 0 21 1 0 1 1 0 8 0 sigapl 424 402 0 372 4 0 4 4 0 8 0 futexpl 56 2712 0 2712 1 0 1 1 0 8 1 knotepl 112 69 0 64 1 0 1 1 0 8 0 kqueuepl 144 24 0 23 1 0 1 1 0 8 0 pipelkpl 48 93 0 84 1 0 1 1 0 8 0 pipepl 120 186 0 174 1 0 1 1 0 8 0 fdescpl 496 386 0 372 3 0 3 3 0 8 0 filepl 152 2098 0 2020 6 1 5 5 0 8 1 lockfpl 104 41 0 40 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 184 0 175 1 0 1 1 0 8 0 zombiepl 144 373 0 371 2 1 1 1 0 8 0 processpl 984 402 0 371 6 1 5 5 0 8 0 procpl 624 734 0 703 4 0 4 4 0 8 0 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 400 335 0 317 5 2 3 4 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 171 0 0 21 0 21 21 0 8 0 mtagpl 96 83 0 0 3 0 3 3 0 8 0 mbufpl 256 264 0 0 16 0 16 16 0 8 0 bufpl 280 3561 0 135 245 0 245 245 0 8 0 anonpl 16 48706 0 43860 68 1 67 67 0 124 1 amapchunkpl 152 1877 0 1801 8 1 7 8 0 158 0 amappl16 192 1477 0 1268 44 0 44 44 0 8 21 amappl15 184 3 0 2 1 0 1 1 0 8 0 amappl14 176 101 0 97 1 0 1 1 0 8 0 amappl13 168 183 0 178 1 0 1 1 0 8 0 amappl12 160 89 0 87 1 0 1 1 0 8 0 amappl11 152 58 0 43 1 0 1 1 0 8 0 amappl10 144 20 0 17 1 0 1 1 0 8 0 amappl9 136 383 0 381 1 0 1 1 0 8 0 amappl8 128 354 0 337 2 0 2 2 0 8 0 amappl7 120 118 0 107 1 0 1 1 0 8 0 amappl6 112 26 0 23 1 0 1 1 0 8 0 amappl5 104 139 0 124 1 0 1 1 0 8 0 amappl4 96 653 0 622 2 1 1 2 0 8 0 amappl3 88 255 0 248 1 0 1 1 0 8 0 amappl2 80 2135 0 2076 2 0 2 2 0 8 0 amappl1 72 18322 0 17901 23 13 10 18 0 8 0 amappl 80 985 0 954 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 13 0 7 1 0 1 1 0 8 0 uaddrrnd 24 386 0 372 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 386 0 372 1 0 1 1 0 8 0 vmmpekpl 168 7028 0 6994 2 0 2 2 0 8 0 vmmpepl 168 53812 0 52630 122 13 109 117 0 357 32 vmsppl 368 385 0 371 2 0 2 2 0 8 0 pdppl 4096 779 0 742 7 1 6 6 0 8 0 pvpl 32 168791 0 165649 162 0 162 162 0 265 109 pmappl 232 385 0 371 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 266 0 9 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff826eaff0) 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(ffffffff828c2938) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c2938) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828c2938) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c2938) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_pause() at uvm_pause+0x5b sys/uvm/uvm_glue.c:438 uvm_unmap_detach(ffff800020dcf9a0,1) at uvm_unmap_detach+0x13a sys/uvm/uvm_map.c:1585 uvm_map_teardown(fffffd806e8f6cf8) at uvm_map_teardown+0x25c sys/uvm/uvm_map.c:2757 uvmspace_free(fffffd806e8f6cf8) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff800020e387c8) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff800020d89ad0) at reaper+0x189 sys/kern/kern_exit.c:456 end trace frame: 0x0, count: -13 ddb{0}> machine ddbcpu 1 Stopped at in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{1}> trace in_delmulti(fffffffffffeffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000b59500) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000af1800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000af1800) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000af1800) 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(ffff800023102d60) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ed3c008,7,fffffd807f7bf900,ffff800020e09ae8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd806665ddc8,ffff800020e09ae8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806665ddc8,ffff800020e09ae8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806665ddc8,ffff800020e09ae8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806665ddc8,ffff800020e09ae8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e09ae8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e09ae8,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020e09ae8,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020e09ae8,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020e09ae8) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff8000231031e0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000231031e0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6590, count: -17