panic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if_tun.c", line 319 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *134461 81647 0 0x2 0 1K ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834c1ffe) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350285d,ffffffff8354bde7,13f,ffffffff834409e3) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001616800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a325f80) at if_clone_destroy+0x205 sys/net/if.c:1480 ifioctl(ffff800010fdd1b0,80206979,ffff80002a325f80,ffff8000383a2020) at ifioctl+0x59d sys/net/if.c:2161 sys_ioctl(ffff8000383a2020,ffff80002a326160,ffff80002a3260b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a326160) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a326160) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c36dd006290, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if_tun.c", line 319 ddb{1}> show kasan No such command ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834c1ffe) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350285d,ffffffff8354bde7,13f,ffffffff834409e3) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001616800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a325f80) at if_clone_destroy+0x205 sys/net/if.c:1480 ifioctl(ffff800010fdd1b0,80206979,ffff80002a325f80,ffff8000383a2020) at ifioctl+0x59d sys/net/if.c:2161 sys_ioctl(ffff8000383a2020,ffff80002a326160,ffff80002a3260b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a326160) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a326160) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c36dd006290, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a325d30 rbx 0xffff80002999ee0f rdx 0 rcx 0xffff8000383a2020 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf38a3afcc816a5c2 r11 0x4618a17d4ee7aed2 r12 0xffff80002999ec10 r13 0 r14 0 r15 0x1 rip 0xffffffff82cbc215 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a325d20 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) tid=134461 pid=81647 tcnt=1 stat=onproc flags process=2 proc=0 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000383a3ca8,0xffff8000383a3788 process=0xffff800045fe5d00 user=0xffff80002a321000, vmspace=0xfffff7806cf203e8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 12801 23958 76454 0 3 0x2 0 clonelk ifconfig 76454 253819 57337 0 3 0x100002 0x88 sigsusp sh 57337 91594 95110 0 3 0x2 0x80 wait syz-executor 82198 143544 97522 0 3 0x2 0 clonelk ifconfig *81647 134461 27761 0 7 0x2 0 ifconfig 97522 130606 13275 0 3 0x100002 0x88 sigsusp sh 27761 105256 63728 0 3 0x100002 0x88 sigsusp sh 63728 151508 95110 0 3 0x2 0x80 wait syz-executor 13275 213500 95110 0 3 0x2 0x80 wait syz-executor 63121 147862 35351 0 3 0 0x80 nanoslp syz-executor 63121 396469 35351 0 3 0 0x4000080 fifow syz-executor 63121 261981 35351 0 3 0 0x4000080 fsleep syz-executor 86586 122371 95110 0 2 0x2 0 syz-executor 35351 121574 95110 0 3 0x2 0x80 nanoslp syz-executor 98758 409609 95110 0 3 0x2 0x80 piperd syz-executor 45357 120782 95110 0 3 0x2 0x80 piperd syz-executor 95110 30614 4161 0 3 0x2 0x80 wait syz-executor 4161 519946 9543 0 3 0x100002 0x88 sigsusp ksh 9543 282799 8406 0 3 0x10 0x88 kqread sshd-session 8406 412722 18423 0 3 0x12 0x80 kqread sshd-session 71145 391912 1 0 3 0x100003 0x80 ttyin getty 18423 517810 1 0 3 0 0x88 kqread sshd 41113 143488 84994 74 3 0x1100012 0x80 bpf pflogd 84994 359318 1 0 3 0 0x80 sbwait pflogd 19347 469395 99124 73 3 0x1100010 0x80 kqread syslogd 99124 311434 1 0 3 0x100002 0x80 sbwait syslogd 18248 283084 1 0 3 0x100000 0x80 kqread resolvd 28979 205978 2589 77 2 0x100012 0x80 dhcpleased 52728 62179 2589 77 3 0x100012 0x80 kqread dhcpleased 2589 502458 1 0 3 0 0x80 kqread dhcpleased 41459 113040 0 0 3 0x14000 0x200 bored smr 13961 451925 0 0 2 0x14000 0x200 zerothread 29676 449455 0 0 3 0x14000 0x200 aiodoned aiodoned 50244 310580 0 0 3 0x14000 0x200 syncer update 50623 202556 0 0 3 0x14000 0x200 cleaner cleaner 35078 383185 0 0 3 0x14000 0x200 reaper reaper 48539 67117 0 0 3 0x14000 0x200 pgdaemon pagedaemon 77798 335494 0 0 3 0x14000 0x200 bored viomb 40878 275570 0 0 3 0x14000 0x40000200 acpi0 acpi0 86449 420776 0 0 3 0x14000 0x40000200 idle1 88714 72937 0 0 2 0x14000 0x200 softnet1 3328 138332 0 0 3 0x14000 0x200 bored softnet0 21608 75634 0 0 3 0x14000 0x200 smrbar systqmp 64817 174826 0 0 3 0x14000 0x200 bored systq 6243 17742 0 0 3 0x14000 0x200 tmoslp softclockmp 39492 257482 0 0 3 0x14000 0x40000200 tmoslp softclock 3155 37640 0 0 3 0x14000 0x40000200 idle0 1 28084 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 81647 (ifconfig) thread 0xffff8000383a2020 (134461) exclusive rwlock clonelk r = 0 (0xffffffff83939518) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 if_clone_destroy+0x93 sys/net/if.c:-1 #3 ifioctl+0x59d sys/net/if.c:2161 #4 sys_ioctl+0x674 sys/kern/sys_generic.c:-1 #5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83b12380) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2d8 sys/kern/kern_synch.c:369 #3 rw_do_enter_write+0x1dc sys/kern/kern_rwlock.c:298 #4 if_clone_destroy+0x93 sys/net/if.c:-1 #5 ifioctl+0x59d sys/net/if.c:2161 #6 sys_ioctl+0x674 sys/kern/sys_generic.c:-1 #7 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #7 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #8 Xsyscall+0x128 Process 21608 (systqmp) thread 0xffff800045ffe298 (75634) shared rwlock systqmp r = 0 (0xffffffff83916d58) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11082 12088K 12191K 166960K 12409 0 pcb 17 12K 12K 166960K 38 0 rtable 113 12K 15K 166960K 581 0 pf 31 17K 21K 166960K 76 0 ifaddr 23 3K 8K 166960K 83 0 ifgroup 47 2K 3K 166960K 109 0 sysctl 2 1K 9K 166960K 6 0 counters 66 36K 38K 166960K 100 0 ioctlops 0 0K 4K 166960K 1519 0 iov 0 0K 16K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1302 82K 82K 166960K 1557 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 27 1K 2K 166960K 76 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 228K 166960K 372 0 proc 92 164K 180K 166960K 796 0 subproc 63 3K 4K 166960K 180 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 20 0 in_multi 33 2K 6K 166960K 184 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 490 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 191 153K 169K 166960K 4592 0 UVM aobj 7 2K 2K 166960K 7 0 pinsyscall 41 82K 106K 166960K 1717 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 10 0K 2K 166960K 55 0 temp 33 9117K 9138K 166960K 8636 0 kqueue 13 20K 25K 166960K 50 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 47 0 44 1 0 1 1 0 8 0 rtentry 176 190 0 146 6 0 6 6 0 8 1 unpcb 144 98 0 79 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 38 0 34 2 0 2 2 0 8 1 arp 136 32 0 26 1 0 1 1 0 8 0 inpcb 328 262 0 252 7 0 7 7 0 8 6 nd6 152 45 0 39 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 20 0 13 1 0 1 1 0 8 0 ppxss 1192 2 0 2 1 0 1 1 0 8 1 pppxif 1576 2 0 2 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 1 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 42 0 2 1 0 1 1 0 8 0 pfstkey 128 42 0 2 2 0 2 2 0 8 0 pfstate 448 40 0 1 5 0 5 5 0 8 0 pfrule 1360 21 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 775 0 496 32 0 32 32 0 8 6 art_table 40 776 0 496 6 0 6 6 0 8 0 art_node 32 190 0 140 1 0 1 1 0 8 0 semapl 72 73 0 48 1 0 1 1 0 8 0 shmpl 120 4 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1758 0 271 94 0 94 94 0 8 0 ffsino 296 1758 0 271 115 0 115 115 0 8 0 nchpl 144 2072 0 328 65 0 65 65 0 8 0 vnodes 216 1996 0 0 111 0 111 111 0 8 0 namei 1024 8232 0 8232 4 2 2 3 0 8 2 percpumem 16 66 0 17 1 0 1 1 0 8 0 kstatmem 264 55 0 30 3 0 3 3 0 8 1 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 6903 0 6903 4 3 1 3 1 8 1 plimitpl 152 78 0 61 1 0 1 1 0 8 0 sigapl 424 652 0 605 7 0 7 7 0 8 1 knotepl 120 308 0 0 10 0 10 10 0 8 0 kqueuepl 224 43 0 34 1 0 1 1 0 8 0 pipepl 344 170 0 143 4 0 4 4 0 8 0 fdescpl 528 636 0 606 3 0 3 3 0 8 0 filepl 160 2525 0 2330 12 0 12 12 0 8 3 lockfpl 104 31 0 29 1 0 1 1 0 8 0 lockfspl 48 16 0 14 1 0 1 1 0 8 0 sessionpl 144 38 0 29 1 0 1 1 0 8 0 pgrppl 48 60 0 43 1 0 1 1 0 8 0 ucredpl 104 305 0 291 1 0 1 1 0 8 0 zombiepl 144 606 0 605 1 0 1 1 0 8 0 processpl 1232 652 0 605 5 0 5 5 0 8 0 procpl 664 828 0 779 6 0 6 6 0 8 1 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 752 411 0 379 10 0 10 10 0 8 6 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 119 0 0 15 0 15 15 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mextrefs 64 17 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 181 0 0 12 0 12 12 0 8 0 bufpl 272 2481 0 105 159 0 159 159 0 8 0 anonpl 32 7462 0 0 61 0 61 61 0 247 0 amapchunkpl 152 12911 0 12566 23 0 23 23 0 158 5 amappl16 200 2448 0 2435 14 3 11 14 0 8 8 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 526 0 522 1 0 1 1 0 8 0 amappl13 176 138 0 126 1 0 1 1 0 8 0 amappl12 168 916 0 890 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 67 0 53 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 1 0 1 0 8 0 amappl8 136 134 0 128 1 0 1 1 0 8 0 amappl7 128 163 0 150 1 0 1 1 0 8 0 amappl6 120 235 0 227 1 0 1 1 0 8 0 amappl5 112 100 0 90 1 0 1 1 0 8 0 amappl4 104 314 0 295 1 0 1 1 0 8 0 amappl3 96 2287 0 2214 3 0 3 3 0 8 0 amappl2 88 715 0 643 2 0 2 2 0 8 0 amappl1 80 11736 0 11139 14 0 14 14 0 8 0 amappl 88 3727 0 3609 4 0 4 4 0 92 0 uvmvnodes 80 102 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 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 72 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 636 0 606 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 636 0 606 1 0 1 1 0 8 0 vmmpekpl 168 7168 0 7115 3 0 3 3 0 8 0 vmmpepl 168 50239 0 48586 92 0 92 92 0 357 15 vmsppl 488 635 0 605 5 0 5 5 0 8 1 rwobjpl 80 17845 0 16839 26 0 26 26 0 8 1 pdppl 4096 1279 0 1210 113 42 71 87 0 8 2 pvpl 32 14677 0 0 119 0 119 119 0 265 0 pmappl 256 635 0 605 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 455 0 47 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff839bbff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83b11b80) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83b11b80) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 exit1(ffff80002a22afa8,43,0,1) at exit1+0x720 sys/kern/kern_exit.c:260 sys_exit(ffff80002a22afa8,ffff800031388ee0,ffff800031388e30) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800031388ee0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800031388ee0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ab6477ef3a0, count: 3 ddb{0}> trace x86_ipi_db(ffffffff839bbff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83b11b80) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83b11b80) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 exit1(ffff80002a22afa8,43,0,1) at exit1+0x720 sys/kern/kern_exit.c:260 sys_exit(ffff80002a22afa8,ffff800031388ee0,ffff800031388e30) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800031388ee0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800031388ee0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ab6477ef3a0, count: -12 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834c1ffe) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350285d,ffffffff8354bde7,13f,ffffffff834409e3) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001616800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a325f80) at if_clone_destroy+0x205 sys/net/if.c:1480 ifioctl(ffff800010fdd1b0,80206979,ffff80002a325f80,ffff8000383a2020) at ifioctl+0x59d sys/net/if.c:2161 sys_ioctl(ffff8000383a2020,ffff80002a326160,ffff80002a3260b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a326160) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a326160) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c36dd006290, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834c1ffe) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350285d,ffffffff8354bde7,13f,ffffffff834409e3) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001616800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a325f80) at if_clone_destroy+0x205 sys/net/if.c:1480 ifioctl(ffff800010fdd1b0,80206979,ffff80002a325f80,ffff8000383a2020) at ifioctl+0x59d sys/net/if.c:2161 sys_ioctl(ffff8000383a2020,ffff80002a326160,ffff80002a3260b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a326160) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a326160) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c36dd006290, count: -9