panic: broken type ref goroutine 36 [running]: github.com/google/syzkaller/prog.ArgCommon.Type(...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/prog.go:39 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d60, 0xc002a92d20, 0xc002139ec0, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:135 +0x81d github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d60, 0xc002a92c40, 0xc002139ec0, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d60, 0xc002a92c00, 0xc002139ec0, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2e20, 0xc002a92be0, 0xc002139ec0, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:159 +0x62d github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d60, 0xc002a92bc0, 0xc002139ec0, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2d60, 0xc002a92b00, 0xc002139ec0, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:141 +0x2a3 github.com/google/syzkaller/prog.foreachArgImpl(0x9b2da0, 0xc00213e960, 0xc002139ec0, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:156 +0x5e5 github.com/google/syzkaller/prog.ForeachArg(0xc002139c80, 0xc000c77278) /syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:122 +0xdd github.com/google/syzkaller/prog.getCompatibleResources(0xc002139a00, 0x9001f2, 0xb, 0xc002c6b8e0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:892 +0xb9 github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc002c6b8e0, 0xc0021814f0, 0xcac6c0, 0x0, 0x0, 0x0, 0xc001801430, 0xc000c77480, 0x792cc9) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:840 +0xfe github.com/google/syzkaller/prog.(*ResourceType).generate(0xcac6c0, 0xc002c6b8e0, 0xc0021814f0, 0x0, 0x9b2ce0, 0xc001801430, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:669 +0x27c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002c6b8e0, 0xc0021814f0, 0x9b9080, 0xcac6c0, 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(0xc002c6b8e0, 0xc0021814f0, 0xd40300, 0xc, 0xc, 0xaaaaaaaaaaaaaa00, 0x38, 0x8, 0x0, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb6c80, 0xc002c6b8e0, 0xc0021814f0, 0x0, 0xd79620, 0x0, 0x0, 0x20, 0x20) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002c6b8e0, 0xc0021814f0, 0x9b9140, 0xcb6c80, 0x420000, 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(0xc002c6b8e0, 0xc0021814f0, 0xcb6e40, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:596 +0x116 github.com/google/syzkaller/prog.(*StructType).generate(0xcb6e00, 0xc002c6b8e0, 0xc0021814f0, 0x0, 0xd79620, 0x0, 0x0, 0x0, 0x0) /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:780 +0x7c github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc002c6b8e0, 0xc0021814f0, 0x9b9140, 0xcb6e00, 0xd70000, 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).mutate(0xcafa00, 0xc002c6b8e0, 0xc0021814f0, 0x9b2e20, 0xc002c6b7e0, 0xc002c6b708, 0xcb5c80, 0x2, 0x2, 0xc0018dc300, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:457 +0x178 github.com/google/syzkaller/prog.(*Target).mutateArg(0xc0000776c0, 0xc002c6b8e0, 0xc0021814f0, 0x9b2e20, 0xc002c6b7e0, 0xc002c6b708, 0xcb5c80, 0x2, 0x2, 0xc0018dc300, ...) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:229 +0xe3 github.com/google/syzkaller/prog.(*mutator).mutateArg(0xc000c77e18, 0xa) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:182 +0x288 github.com/google/syzkaller/prog.(*Prog).Mutate(0xc001952300, 0x9ac3e0, 0xc002ba8000, 0x14, 0xc0013b7900, 0xc002ac6000, 0x26b5, 0x3000) /syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:47 +0x32c main.(*Proc).smashInput(0xc002b9a1c0, 0xc002a692e0) /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:213 +0x131 main.(*Proc).loop(0xc002b9a1c0) /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:78 +0x16b created by main.main /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:260 +0x1188 OpenBSD/amd64 (ci-openbsd-multicore-0.c.syzkaller.internal) (tty00) login: kernel: protection 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 the kernel did not panic ddb{1}> trace in_delmulti(effffffffffffffd) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000aa2500) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000ac6000) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000ac6000) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000ac6000) at tun_clone_destroy+0x1f2 sys/net/if_tun.c:329 tun_dev_close(5d00,7) at tun_dev_close+0x160 sys/net/if_tun.c:480 spec_close(ffff800020ed7030) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e55d5b8,7,fffffd807f7bf960,ffff800020dddad8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8067ff7d30,ffff800020dddad8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067ff7d30,ffff800020dddad8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067ff7d30,ffff800020dddad8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067ff7d30,ffff800020dddad8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020dddad8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020dddad8,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020dddad8,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020dddad8,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020dddad8) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020ed74b0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020ed74b0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd06d0, count: -17 ddb{1}> show registers rdi 0x2 rsi 0 rbp 0xffff800020ed6e00 rbx 0 rdx 0xffff800020dddad8 rcx 0 rax 0 r8 0xffffffff81fa4843 rt_ifa_purge+0x153 r9 0x5 r10 0x3 r11 0xa427cecc39ad5888 r12 0 r13 0x3 r14 0xeffffffffffffffd r15 0x1 rip 0xffffffff8128e20d in_delmulti+0x8d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020ed6da0 ss 0x10 in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{1}> show proc PROC (syz-executor.0) pid=461093 stat=onproc flags process=a proc=2000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020e41870,0xffff800020e089e8 process=0xffff800020e39b00 user=0xffff800020ed2000, vmspace=0xfffffd807efff450 estcpu=27, cpticks=0, pctcpu=0.79 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 95669 181439 1 0 3 0x100083 ttyin getty 40557 489126 0 0 3 0x14200 acct acct 82327 225005 0 0 3 0x14280 nfsidl nfsio 33378 228355 0 0 3 0x14280 nfsidl nfsio 52354 115262 0 0 3 0x14280 nfsidl nfsio 93029 275199 0 0 3 0x14280 nfsidl nfsio 49796 125535 0 0 3 0x14280 nfsidl nfsio 53519 363523 0 0 3 0x14280 nfsidl nfsio 44265 224623 0 0 3 0x14280 nfsidl nfsio 99795 369361 0 0 3 0x14280 nfsidl nfsio 99866 47569 0 0 3 0x14280 nfsidl nfsio 12379 206264 0 0 3 0x14280 nfsidl nfsio 92106 451612 0 0 3 0x14280 nfsidl nfsio 60139 147694 0 0 3 0x14280 nfsidl nfsio 20230 483747 0 0 3 0x14280 nfsidl nfsio 3677 96842 0 0 3 0x14280 nfsidl nfsio 58340 202994 0 0 3 0x14280 nfsidl nfsio 34086 390542 0 0 3 0x14280 nfsidl nfsio 29936 118179 0 0 3 0x14280 nfsidl nfsio 72603 236060 0 0 3 0x14280 nfsidl nfsio 29933 379367 0 0 3 0x14280 nfsidl nfsio 57172 97097 0 0 3 0x14280 nfsidl nfsio 51766 199678 0 0 3 0x14200 bored sosplice 22196 261685 69753 0 7 0x12 sshd 69753 69487 1 0 3 0x80 select sshd 60213 245485 25500 74 3 0x100092 bpf pflogd 25500 88019 1 0 3 0x80 netio pflogd 25563 335806 89 73 3 0x100090 kqread syslogd 89 218058 1 0 3 0x100082 netio syslogd 26819 278190 1 77 3 0x100090 poll dhclient 94338 291435 1 0 3 0x80 poll dhclient 78477 101009 0 0 3 0x14200 bored smr 11947 294969 0 0 2 0x14200 zerothread 23676 67462 0 0 3 0x14200 aiodoned aiodoned 77228 150693 0 0 3 0x14200 syncer update 81490 317544 0 0 3 0x14200 cleaner cleaner 69017 280314 0 0 3 0x14200 reaper reaper 45076 157371 0 0 3 0x14200 pgdaemon pagedaemon 49514 267745 0 0 3 0x14200 bored crynlk 13156 457035 0 0 3 0x14200 bored crypto 66631 438724 0 0 3 0x40014200 acpi0 acpi0 72998 32941 0 0 3 0x40014200 idle1 5954 449747 0 0 3 0x14200 bored softnet 11999 52028 0 0 2 0x14200 systqmp 54516 389775 0 0 3 0x14200 bored systq 59402 482823 0 0 3 0x40014200 bored softclock 69045 387336 0 0 3 0x40014200 idle0 1 435304 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 9521 6417K 7062K 78643K 12063 0 pcb 13 8K 8K 78643K 124 0 rtable 102 7K 10K 78643K 571 0 ifaddr 84 17K 18K 78643K 202 0 counters 41 33K 34K 78643K 69 0 ioctlops 0 0K 4K 78643K 1597 0 iov 0 0K 16K 78643K 101 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1682 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 16 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 152 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 2 4K 25K 78643K 860 0 sigio 0 0K 0K 78643K 7 0 proc 61 63K 95K 78643K 576 0 subproc 7 0K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 144 0 in_multi 56 2K 3K 78643K 216 0 ether_multi 1 0K 0K 78643K 14 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 272 0 pfkey data 0 0K 0K 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 75 92K 106K 78643K 3736 0 UVM aobj 18 2K 2K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 68 0 NDP 12 0K 0K 78643K 42 0 temp 100 3867K 3934K 78643K 13311 0 kqueue 2 2K 8K 78643K 21 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 12 0 9 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 49 0 47 1 0 1 1 0 8 0 rtentry 112 108 0 76 2 0 2 2 0 8 0 unpcb 120 1616 0 1606 3 1 2 2 0 8 1 syncache 264 7 0 7 2 2 0 1 0 8 0 tcpqe 32 810 0 810 1 1 0 1 0 8 0 tcpcb 544 524 0 521 1 0 1 1 0 8 0 inpcb 296 1436 0 1430 3 1 2 2 0 8 1 rttmr 72 3 0 3 3 3 0 1 0 8 0 nd6 48 34 0 29 1 0 1 1 0 8 0 pkpcb 40 14 0 14 2 2 0 1 0 8 0 pffrag 232 3 0 3 2 2 0 1 0 482 0 pffrnode 88 3 0 3 2 2 0 1 0 8 0 pffrent 40 94 0 94 2 2 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 50 0 40 3 2 1 2 0 8 0 pfstitem 24 42 0 14 1 0 1 1 0 8 0 pfstkey 112 43 0 15 2 0 2 2 0 8 0 pfstate 328 41 0 14 4 0 4 4 0 8 0 pfrule 1360 39 0 26 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 466 0 295 15 3 12 15 0 8 0 art_table 32 467 0 295 2 0 2 2 0 8 0 art_node 16 107 0 74 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 149 0 139 1 0 1 1 0 8 0 shmpl 112 31 0 16 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2586 0 1184 89 0 89 89 0 8 0 ffsino 272 2586 0 1184 96 1 95 95 0 8 0 nchpl 144 3883 0 2288 60 0 60 60 0 8 0 uvmvnodes 72 2999 0 0 55 0 55 55 0 8 0 vnodes 208 2999 0 0 158 0 158 158 0 8 0 namei 1024 10953 0 10953 2 1 1 1 0 8 1 percpumem 16 45 0 14 1 0 1 1 0 8 0 vcpupl 1984 9 0 0 2 0 2 2 0 8 0 vmpool 560 22 0 13 1 0 1 1 0 8 0 pfiaddrpl 120 16 0 8 2 1 1 1 0 8 0 scxspl 192 12501 0 12501 13 12 1 7 0 8 1 plimitpl 152 46 0 40 1 0 1 1 0 8 0 sigapl 424 1093 0 1044 7 0 7 7 0 8 0 futexpl 56 12693 0 12693 1 0 1 1 0 8 1 knotepl 112 102 0 97 1 0 1 1 0 8 0 kqueuepl 144 62 0 58 1 0 1 1 0 8 0 pipelkpl 48 179 0 176 1 0 1 1 0 8 0 pipepl 120 358 0 354 1 0 1 1 0 8 0 fdescpl 496 1056 0 1044 3 0 3 3 0 8 0 filepl 152 6901 0 6848 8 3 5 6 0 8 1 lockfpl 104 395 0 394 1 0 1 1 0 8 0 lockfspl 48 164 0 163 1 0 1 1 0 8 0 sessionpl 112 22 0 13 1 0 1 1 0 8 0 pgrppl 48 26 0 17 1 0 1 1 0 8 0 ucredpl 96 516 0 507 1 0 1 1 0 8 0 zombiepl 144 1045 0 1044 3 2 1 1 0 8 0 processpl 984 1093 0 1044 8 1 7 7 0 8 0 procpl 624 2817 0 2768 6 0 6 6 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 400 3117 0 3099 11 6 5 6 0 8 3 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 223 0 0 27 0 27 27 0 8 0 mtagpl 96 94 0 0 3 0 3 3 0 8 0 mbufpl 256 592 0 0 36 0 36 36 0 8 0 mbufpl: pool(0xffffffff8290b140:mbufpl): free list modified: page 0xfffffd8068afd000; item ordinal 5; addr 0xfffffd8068afdd00 (p 0xfffffd807aac0000); offset 0x0=0x3135250000000000 bufpl 280 5468 0 137 381 0 381 381 0 8 0 anonpl 16 112038 0 110820 80 15 65 79 0 124 47 amapchunkpl 152 7015 0 6978 25 12 13 19 0 158 9 amappl16 192 4762 0 4748 57 12 45 54 0 8 39 amappl15 184 228 0 228 2 1 1 1 0 8 1 amappl14 176 200 0 197 1 0 1 1 0 8 0 amappl13 168 42 0 41 1 0 1 1 0 8 0 amappl12 160 188 0 188 1 0 1 1 0 8 1 amappl11 152 293 0 278 1 0 1 1 0 8 0 amappl10 144 17 0 15 1 0 1 1 0 8 0 amappl9 136 381 0 380 1 0 1 1 0 8 0 amappl8 128 398 0 397 3 1 2 2 0 8 1 amappl7 120 140 0 131 1 0 1 1 0 8 0 amappl6 112 29 0 29 1 0 1 1 0 8 1 amappl5 104 870 0 853 1 0 1 1 0 8 0 amappl4 96 636 0 608 1 0 1 1 0 8 0 amappl3 88 241 0 236 1 0 1 1 0 8 0 amappl2 80 7690 0 7636 2 0 2 2 0 8 0 amappl1 72 32587 0 32200 23 13 10 18 0 8 0 amappl 80 3107 0 3080 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 32 0 15 1 0 1 1 0 8 0 uaddrrnd 24 1078 0 1057 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1078 0 1057 1 0 1 1 0 8 0 vmmpekpl 168 11325 0 11289 3 0 3 3 0 8 0 vmmpepl 168 133064 0 132213 154 44 110 122 0 357 52 vmsppl 368 1077 0 1057 4 1 3 3 0 8 0 pdppl 4096 2163 0 2123 9 2 7 7 0 8 0 pvpl 32 336289 0 333259 195 31 164 189 0 265 122 pmappl 232 1077 0 1057 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 311 0 17 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82741ff0) 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(ffffffff828f7e70) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0x127 sys/kern/kern_lock.c:147 syscall(ffff800020e63430) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800020e63430) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde6d0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{1}> trace in_delmulti(effffffffffffffd) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000aa2500) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000ac6000) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000ac6000) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000ac6000) at tun_clone_destroy+0x1f2 sys/net/if_tun.c:329 tun_dev_close(5d00,7) at tun_dev_close+0x160 sys/net/if_tun.c:480 spec_close(ffff800020ed7030) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e55d5b8,7,fffffd807f7bf960,ffff800020dddad8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8067ff7d30,ffff800020dddad8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067ff7d30,ffff800020dddad8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067ff7d30,ffff800020dddad8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067ff7d30,ffff800020dddad8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020dddad8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020dddad8,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020dddad8,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020dddad8,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020dddad8) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020ed74b0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020ed74b0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd06d0, count: -17