l./file0./file2./file1./file0 κΟ./file0./file2./file1./file0 κΟpanic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if_tun.c", line 306 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *261155 41245 0 0 0x4000000 1K syz-executor.3 97636 58890 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8257512d) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff825e9d23,ffffffff826334c9,132,ffffffff825fde72) at __assert+0x25 sys/kern/subr_prf.c:161 tun_clone_destroy(ffff800000bf5800) at tun_clone_destroy+0x278 sys/net/if_tun.c:306 if_clone_destroy(ffff800024abac20) at if_clone_destroy+0x132 sys/net/if.c:1218 soo_ioctl(fffffd80673057d0,80206979,ffff800024abac20,ffff800022c69a40) at soo_ioctl+0x26c sys_ioctl(ffff800022c69a40,ffff800024abad38,ffff800024abad90) at sys_ioctl+0x4a2 syscall(ffff800024abae00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024abae00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43365737630, 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 306 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8257512d) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff825e9d23,ffffffff826334c9,132,ffffffff825fde72) at __assert+0x25 sys/kern/subr_prf.c:161 tun_clone_destroy(ffff800000bf5800) at tun_clone_destroy+0x278 sys/net/if_tun.c:306 if_clone_destroy(ffff800024abac20) at if_clone_destroy+0x132 sys/net/if.c:1218 soo_ioctl(fffffd80673057d0,80206979,ffff800024abac20,ffff800022c69a40) at soo_ioctl+0x26c sys_ioctl(ffff800022c69a40,ffff800024abad38,ffff800024abad90) at sys_ioctl+0x4a2 syscall(ffff800024abae00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024abae00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43365737630, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800024abaa30 rbx 0xffff800020ce9bff rdx 0xffff800000b99f80 rcx 0 rax 0xffff800022c69a40 r8 0x101010101010101 r9 0x8080808080808080 r10 0xad87dd001a00e201 r11 0x36ecae3856cd73f9 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81678418 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024abaa20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.3) pid=261155 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800022c68d20,0xffff8000ffff4010 process=0xffff80002952d0b8 user=0xffff800024ab5000, vmspace=0xfffffd80674b3188 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 14317 324465 83900 0 2 0 syz-executor.4 14317 514145 83900 0 2 0x4000000 syz-executor.4 41245 159860 74739 0 2 0 syz-executor.3 *41245 261155 74739 0 7 0x4000000 syz-executor.3 85927 452551 96615 0 2 0 syz-executor.5 95748 404155 35938 0 2 0 syz-executor.7 61442 161473 38152 0 3 0x80 nanoslp syz-executor.1 61442 324000 38152 0 3 0x4000080 netcon syz-executor.1 61442 279979 38152 0 3 0x4000080 fsleep syz-executor.1 94367 471845 69310 0 2 0 syz-executor.2 94367 219312 69310 0 3 0x4000080 fsleep syz-executor.2 83900 155582 78357 0 3 0x82 nanoslp syz-executor.4 69310 494574 78357 0 3 0x82 nanoslp syz-executor.2 96615 416568 78357 0 3 0x82 nanoslp syz-executor.5 32746 24763 0 0 3 0x14200 acct acct 34615 314793 78357 0 3 0x82 nanoslp syz-executor.0 74739 346656 78357 0 3 0x82 nanoslp syz-executor.3 38152 267548 78357 0 3 0x82 nanoslp syz-executor.1 827 262662 78357 0 3 0x82 piperd syz-executor.6 35938 272477 78357 0 3 0x82 nanoslp syz-executor.7 60087 490013 0 0 3 0x14280 nfsidl nfsio 72223 287770 0 0 3 0x14280 nfsidl nfsio 91914 239625 0 0 3 0x14280 nfsidl nfsio 21536 246836 0 0 3 0x14280 nfsidl nfsio 59900 483960 0 0 3 0x14280 nfsidl nfsio 25919 74255 0 0 3 0x14280 nfsidl nfsio 36758 405303 0 0 3 0x14280 nfsidl nfsio 6442 212328 0 0 3 0x14280 nfsidl nfsio 79838 162039 0 0 3 0x14280 nfsidl nfsio 38216 209949 0 0 3 0x14280 nfsidl nfsio 83621 333869 0 0 3 0x14280 nfsidl nfsio 73208 54736 0 0 3 0x14280 nfsidl nfsio 12496 46101 0 0 3 0x14280 nfsidl nfsio 96171 112891 0 0 3 0x14280 nfsidl nfsio 40245 489255 0 0 3 0x14280 nfsidl nfsio 93938 472829 0 0 3 0x14280 nfsidl nfsio 6426 198221 0 0 3 0x14280 nfsidl nfsio 21051 324340 0 0 3 0x14280 nfsidl nfsio 15529 30296 0 0 3 0x14280 nfsidl nfsio 86429 64979 0 0 3 0x14280 nfsidl nfsio 45108 509316 0 0 3 0x14200 bored sosplice 8867 246309 1 0 3 0x100083 ttyin getty 78357 429171 63658 0 3 0x82 kqread syz-fuzzer 78357 383790 63658 0 3 0x4000082 thrsleep syz-fuzzer 78357 372620 63658 0 3 0x4000082 thrsleep syz-fuzzer 78357 67531 63658 0 3 0x4000082 thrsleep syz-fuzzer 78357 80723 63658 0 3 0x4000082 thrsleep syz-fuzzer 78357 164805 63658 0 3 0x4000082 thrsleep syz-fuzzer 78357 274904 63658 0 3 0x4000082 thrsleep syz-fuzzer 78357 64661 63658 0 3 0x4000082 thrsleep syz-fuzzer 78357 239083 63658 0 3 0x4000082 thrsleep syz-fuzzer 63658 411696 51313 0 3 0x10008a sigsusp ksh 51313 416252 94606 0 3 0x9a kqread sshd 94606 402462 1 0 3 0x88 kqread sshd 9056 316912 99514 74 3 0x1100092 bpf pflogd 99514 142772 1 0 3 0x80 netio pflogd 6163 508277 6046 73 3 0x1100090 kqread syslogd 6046 303354 1 0 3 0x100082 netio syslogd 71529 479194 1 0 3 0x100080 kqread resolvd 98719 283711 95795 77 3 0x100092 kqread dhcpleased 66125 462782 95795 77 3 0x100092 kqread dhcpleased 95795 219610 1 0 3 0x80 kqread dhcpleased 97351 494723 0 0 3 0x14200 bored smr 71121 91469 0 0 2 0x14200 zerothread 39600 401231 0 0 3 0x14200 aiodoned aiodoned 51255 30492 0 0 3 0x14200 syncer update 27703 274402 0 0 3 0x14200 cleaner cleaner 58890 97636 0 0 7 0x14200 reaper 5101 264265 0 0 3 0x14200 pgdaemon pagedaemon 67916 121689 0 0 3 0x14200 bored viomb 16576 343187 0 0 3 0x40014200 acpi0 acpi0 62773 443856 0 0 3 0x40014200 idle1 48198 294929 0 0 3 0x14200 bored softnet 37228 476139 0 0 3 0x14200 bored systqmp 24724 257753 0 0 3 0x14200 bored systq 1790 519994 0 0 3 0x40014200 bored softclock 13043 260415 0 0 3 0x40014200 idle0 1 105686 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &uvm.pageqlock r = 0 (0xffffffff82b724c8) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_anfree_list+0xa4 sys/uvm/uvm_anon.c:104 #4 amap_wipeout+0x1b1 sys/uvm/uvm_amap.c:504 #5 uvm_unmap_detach+0x7d sys/uvm/uvm_map.c:1599 #6 uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 #7 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 #8 reaper+0x18b sys/kern/kern_exit.c:457 #9 proc_trampoline+0x1c Process 41245 (syz-executor.3) thread 0xffff800022c69a40 (261155) exclusive rwlock clonelk r = 0 (0xffffffff82979a90) #0 witness_lock+0x44d #1 if_clone_destroy+0x49 #2 soo_ioctl+0x26c #3 sys_ioctl+0x4a2 #4 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829b7970) #0 witness_lock+0x44d #1 soo_ioctl+0x25a sys/kern/sys_socket.c:136 #2 sys_ioctl+0x4a2 #3 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #4 Xsyscall+0x128 Process 58890 (reaper) thread 0xffff8000210f97a0 (97636) uvm_fault(0xfffffd80674b3188, 0x1, 0, 1) -> e kernel: page fault trap, code=0 Faulted in DDB; continuing... ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10221 6589K 7109K 78643K 30695 0 pcb 13 24K 26K 78643K 1891 0 rtable 180 14K 21K 78643K 2206 0 ifaddr 96 21K 24K 78643K 980 0 sysctl 2 0K 0K 78643K 2 0 counters 58 35K 36K 78643K 286 0 ioctlops 0 0K 8K 78643K 3346 0 iov 0 0K 28K 78643K 12679 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1404 88K 88K 78643K 8553 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 111 0 VM map 2 1K 1K 78643K 2 0 sem 10 0K 0K 78643K 13 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 89K 78643K 11298 0 sigio 0 0K 0K 78643K 237 0 proc 70 87K 124K 78643K 1830 0 subproc 104 6K 6K 78643K 476 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 6409 0 in_multi 76 5K 6K 78643K 804 0 ether_multi 1 0K 0K 78643K 116 0 mrt 3 0K 0K 78643K 49 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 187 837K 837K 78643K 187 0 exec 0 0K 2K 78643K 2743 0 tdb 3 0K 0K 78643K 3 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 460 549K 553K 78643K 145732 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 634 0 NDP 15 0K 2K 78643K 223 0 temp 161 4735K 4818K 78643K 102237 0 kqueue 12 18K 28K 78643K 603 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 786 0 783 13 12 1 3 0 8 0 rtentry 112 661 0 588 4 1 3 4 0 8 0 unpcb 136 6476 0 6461 63 60 3 10 0 8 2 syncache 296 21 0 21 6 6 0 1 0 8 0 tcpqe 32 5 0 5 1 1 0 1 0 8 0 tcpcb 736 6325 0 6281 174 169 5 24 0 8 0 arp 120 106 0 94 1 0 1 1 0 8 0 inpcb 304 12716 0 12704 191 185 6 21 0 8 5 rttmr 72 16 0 16 5 5 0 1 0 8 0 nd6 48 145 0 125 1 0 1 1 0 8 0 pkpcb 40 58 0 58 6 6 0 1 0 8 0 kcovpl 48 36 0 28 1 0 1 1 0 8 0 ppxss 1248 37 0 37 8 7 1 1 0 8 1 pfstscr 40 69 0 69 2 2 0 1 0 8 0 pffrag 232 33 0 33 3 3 0 1 0 482 0 pffrnode 88 32 0 32 3 3 0 1 0 8 0 pffrent 40 338 0 338 3 3 0 1 0 8 0 pfosfp 40 1463 0 1039 5 0 5 5 0 8 0 pfosfpen 112 1463 0 748 21 0 21 21 0 8 0 pfrke_plain 168 6 0 6 1 1 0 1 0 8 0 pfrktable 1344 152 0 152 9 9 0 2 0 8 0 pftag 88 5 0 0 1 0 1 1 0 8 0 pfstitem 24 75 0 73 1 0 1 1 0 8 0 pfstkey 112 315 0 313 1 0 1 1 0 8 0 pfstate 320 194 0 192 3 2 1 3 0 8 0 pfrule 1360 589 0 579 8 6 2 5 0 8 0 art_heap8 4096 4 0 3 4 3 1 3 0 8 0 art_heap4 256 2884 0 2584 45 24 21 30 0 8 0 art_table 32 2888 0 2587 4 0 4 4 0 8 0 art_node 16 620 0 557 1 0 1 1 0 8 0 sysvmsgpl 40 109 0 76 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 16838 0 15353 93 0 93 93 0 8 0 ffsino 272 16838 0 15353 100 0 100 100 0 8 0 nchpl 144 33845 0 32217 63 0 63 63 0 8 0 rtmask 32 12 0 12 1 1 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 126199 0 126199 10 9 1 2 0 8 1 percpumem 16 155 0 114 1 0 1 1 0 8 0 vcpupl 2048 70 0 0 9 0 9 9 0 8 0 vmpool 560 99 0 29 6 1 5 5 0 8 0 pfiaddrpl 120 57 0 57 7 7 0 1 0 8 0 scsiplug 72 6 0 6 2 2 0 1 0 8 0 scxspl 216 98018 0 98018 21 20 1 8 0 8 1 plimitpl 152 1631 0 1616 1 0 1 1 0 8 0 sigapl 424 11572 0 11506 8 0 8 8 0 8 0 futexpl 64 102167 0 102165 6 5 1 1 0 8 0 knotepl 120 418 0 0 6 1 5 6 0 8 0 kqueuepl 216 2257 0 2248 46 45 1 5 0 8 0 pipepl 336 1860 0 1832 64 61 3 8 0 8 0 fdescpl 496 11531 0 11502 5 1 4 5 0 8 0 filepl 152 89916 0 89671 148 135 13 26 0 8 2 lockfpl 104 2741 0 2739 7 6 1 3 0 8 0 lockfspl 48 821 0 819 1 0 1 1 0 8 0 sessionpl 144 53 0 36 1 0 1 1 0 8 0 pgrppl 48 136 0 119 1 0 1 1 0 8 0 ucredpl 96 12260 0 12243 1 0 1 1 0 8 0 zombiepl 144 11507 0 11506 3 2 1 1 0 8 0 processpl 1064 11572 0 11506 5 0 5 5 0 8 0 procpl 672 33489 0 33410 29 20 9 9 0 8 1 srpgc 96 38 0 38 8 8 0 1 0 8 0 sosppl 168 68 0 68 12 12 0 1 0 8 0 sockpl 480 20049 0 20019 468 456 12 58 0 8 8 mcl64k 65536 46 0 0 5 2 3 3 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 1 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 278 0 0 20 3 17 20 0 8 0 mtagpl 96 772 0 0 12 0 12 12 0 8 0 mbufpl 256 34684 0 0 2138 0 2138 2138 0 8 0 bufpl 288 22707 0 16372 453 0 453 453 0 8 0 anonpl 24 3338212 0 3316445 342 179 163 188 0 186 5 amapchunkpl 152 356914 0 356034 83 42 41 55 0 158 1 amappl16 200 34198 0 33389 160 108 52 56 0 8 4 amappl15 192 3331 0 3323 1 0 1 1 0 8 0 amappl14 184 4029 0 4019 1 0 1 1 0 8 0 amappl13 176 1682 0 1681 1 0 1 1 0 8 0 amappl12 168 1789 0 1781 3 2 1 1 0 8 0 amappl11 160 182 0 168 1 0 1 1 0 8 0 amappl10 152 955 0 951 1 0 1 1 0 8 0 amappl9 144 898 0 894 1 0 1 1 0 8 0 amappl8 136 1821 0 1709 4 0 4 4 0 8 0 amappl7 128 660 0 647 1 0 1 1 0 8 0 amappl6 120 722 0 691 3 1 2 2 0 8 0 amappl5 112 9372 0 9353 1 0 1 1 0 8 0 amappl4 104 3354 0 3318 2 0 2 2 0 8 0 amappl3 96 2828 0 2812 1 0 1 1 0 8 0 amappl2 88 4353 0 4297 3 1 2 3 0 8 0 amappl1 80 215648 0 215067 19 5 14 19 0 8 0 amappl 88 144409 0 144112 8 0 8 8 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 11630 0 11531 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11630 0 11531 1 0 1 1 0 8 0 vmmpekpl 168 89802 0 89729 5 1 4 4 0 8 0 vmmpepl 168 1060671 0 1057681 334 187 147 177 0 357 1 vmsppl 368 11629 0 11530 11 1 10 10 0 8 0 rwobjpl 56 266861 0 258919 126 9 117 117 0 8 0 pdppl 4096 23267 0 23130 512 373 139 139 0 8 2 pvpl 32 5537924 0 5514675 590 356 234 289 0 265 16 pmappl 248 11629 0 11530 8 1 7 7 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 3663 0 655 87 0 87 87 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82974ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff829b7768) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829b7768) at __mp_lock+0x129 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211353e0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd80674b3d08) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd80674b3d08) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000210f97a0) at reaper+0x18b sys/kern/kern_exit.c:457 end trace frame: 0x0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff82974ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff829b7768) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829b7768) at __mp_lock+0x129 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211353e0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd80674b3d08) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd80674b3d08) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000210f97a0) at reaper+0x18b sys/kern/kern_exit.c:457 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8257512d) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff825e9d23,ffffffff826334c9,132,ffffffff825fde72) at __assert+0x25 sys/kern/subr_prf.c:161 tun_clone_destroy(ffff800000bf5800) at tun_clone_destroy+0x278 sys/net/if_tun.c:306 if_clone_destroy(ffff800024abac20) at if_clone_destroy+0x132 sys/net/if.c:1218 soo_ioctl(fffffd80673057d0,80206979,ffff800024abac20,ffff800022c69a40) at soo_ioctl+0x26c sys_ioctl(ffff800022c69a40,ffff800024abad38,ffff800024abad90) at sys_ioctl+0x4a2 syscall(ffff800024abae00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024abae00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43365737630, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8257512d) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff825e9d23,ffffffff826334c9,132,ffffffff825fde72) at __assert+0x25 sys/kern/subr_prf.c:161 tun_clone_destroy(ffff800000bf5800) at tun_clone_destroy+0x278 sys/net/if_tun.c:306 if_clone_destroy(ffff800024abac20) at if_clone_destroy+0x132 sys/net/if.c:1218 soo_ioctl(fffffd80673057d0,80206979,ffff800024abac20,ffff800022c69a40) at soo_ioctl+0x26c sys_ioctl(ffff800022c69a40,ffff800024abad38,ffff800024abad90) at sys_ioctl+0x4a2 syscall(ffff800024abae00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024abae00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x43365737630, count: -9