panic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if_tun.c", line 315 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *143190 1915 0 0x2 0 1K ifconfig 324274 24561 77 0x100012 0 0 dhcpleased db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82751deb) at panic+0x177 sys/kern/subr_prf.c:198 __assert(ffffffff827cd2be,ffffffff82818b32,13b,ffffffff827e01fc) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d22000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002e643c80) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806e31f018,80206979,ffff80002e643c80,ffff800021242598) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800021242598,ffff80002e643d90,ffff80002e643de0) at sys_ioctl+0x4a2 syscall(ffff80002e643e60) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e643e60) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea200, 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 315 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82751deb) at panic+0x177 sys/kern/subr_prf.c:198 __assert(ffffffff827cd2be,ffffffff82818b32,13b,ffffffff827e01fc) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d22000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002e643c80) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806e31f018,80206979,ffff80002e643c80,ffff800021242598) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800021242598,ffff80002e643d90,ffff80002e643de0) at sys_ioctl+0x4a2 syscall(ffff80002e643e60) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e643e60) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea200, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e643a30 rbx 0xffff800020d69b8f rdx 0 rcx 0 rax 0xffff800021242598 r8 0x101010101010101 r9 0x8080808080808080 r10 0x61ff464faf41308f r11 0x967e1c6f21bf9d1d r12 0xffff800020d69990 r13 0 r14 0 r15 0x1 rip 0xffffffff81b420b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e643a20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) pid=143190 stat=onproc flags process=2 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021242b08,0xffffffff82ca0df8 process=0xffff8000ffff7260 user=0xffff80002e63e000, vmspace=0xfffffd806ba426f8 estcpu=0, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND * 1915 143190 23597 0 7 0x2 ifconfig 23597 48114 24710 0 3 0x10008a sigsusp sh 24710 408851 35992 0 3 0x82 wait syz-executor.0 64170 302970 35992 0 3 0x82 piperd syz-executor.5 41998 161644 35992 0 3 0x82 piperd syz-executor.2 99866 207508 35992 0 3 0x82 piperd syz-executor.4 70756 210611 35992 0 3 0x82 piperd syz-executor.3 8716 169149 35992 0 3 0x82 piperd syz-executor.6 15542 379723 1 0 3 0x100083 ttyin getty 19539 503588 35992 0 3 0x82 piperd syz-executor.1 71406 12886 35992 0 3 0x82 piperd syz-executor.7 10486 55528 0 0 3 0x14200 bored sosplice 83407 219857 0 0 3 0x14280 nfsidl nfsio 77392 183518 0 0 3 0x14280 nfsidl nfsio 56241 332720 0 0 3 0x14280 nfsidl nfsio 16376 272679 0 0 3 0x14280 nfsidl nfsio 30379 352317 0 0 3 0x14280 nfsidl nfsio 82201 130917 0 0 3 0x14280 nfsidl nfsio 64468 352858 0 0 3 0x14280 nfsidl nfsio 19482 440328 0 0 3 0x14280 nfsidl nfsio 32731 445014 0 0 3 0x14280 nfsidl nfsio 76192 111607 0 0 3 0x14280 nfsidl nfsio 68265 227774 0 0 3 0x14280 nfsidl nfsio 63429 53521 0 0 3 0x14280 nfsidl nfsio 15182 361135 0 0 3 0x14280 nfsidl nfsio 6225 364610 0 0 3 0x14280 nfsidl nfsio 47314 424032 0 0 3 0x14280 nfsidl nfsio 5846 347609 0 0 3 0x14280 nfsidl nfsio 89022 1150 0 0 3 0x14280 nfsidl nfsio 650 341621 0 0 3 0x14280 nfsidl nfsio 54725 162165 0 0 3 0x14280 nfsidl nfsio 61814 162540 0 0 3 0x14280 nfsidl nfsio 35992 75546 46663 0 3 0x82 thrsleep syz-fuzzer 35992 178170 46663 0 3 0x4000082 nanoslp syz-fuzzer 35992 102891 46663 0 3 0x4000082 wait syz-fuzzer 35992 56773 46663 0 3 0x4000082 thrsleep syz-fuzzer 35992 344283 46663 0 3 0x4000082 thrsleep syz-fuzzer 35992 366233 46663 0 3 0x4000082 wait syz-fuzzer 35992 93765 46663 0 3 0x4000082 kqread syz-fuzzer 35992 64333 46663 0 3 0x4000082 thrsleep syz-fuzzer 35992 60247 46663 0 3 0x4000082 wait syz-fuzzer 35992 506786 46663 0 3 0x4000082 wait syz-fuzzer 35992 359135 46663 0 3 0x4000082 thrsleep syz-fuzzer 35992 424570 46663 0 3 0x4000082 wait syz-fuzzer 35992 481305 46663 0 3 0x4000082 thrsleep syz-fuzzer 35992 39559 46663 0 3 0x4000082 wait syz-fuzzer 35992 343097 46663 0 3 0x4000082 wait syz-fuzzer 35992 234366 46663 0 3 0x4000082 wait syz-fuzzer 46663 61466 44848 0 3 0x10008a sigsusp ksh 44848 231088 93860 0 3 0x9a kqread sshd 93860 488321 1 0 3 0x88 kqread sshd 63712 352961 83742 74 3 0x1100092 bpf pflogd 83742 143913 1 0 3 0x80 netio pflogd 99636 284121 74295 73 3 0x1100090 kqread syslogd 74295 118603 1 0 3 0x100082 netio syslogd 41000 423191 1 0 3 0x100080 kqread resolvd 24561 324274 23596 77 7 0x100012 dhcpleased 37064 454095 23596 77 3 0x100092 kqread dhcpleased 23596 121857 1 0 3 0x80 kqread dhcpleased 86301 436352 0 0 3 0x14200 bored smr 80111 92626 0 0 3 0x14200 pgzero zerothread 39720 512483 0 0 3 0x14200 aiodoned aiodoned 68387 173409 0 0 3 0x14200 syncer update 29092 476390 0 0 3 0x14200 cleaner cleaner 25419 308227 0 0 3 0x14200 reaper reaper 51632 325248 0 0 3 0x14200 pgdaemon pagedaemon 10432 248204 0 0 3 0x14200 bored viomb 5863 400601 0 0 3 0x40014200 acpi0 acpi0 70916 268627 0 0 3 0x40014200 idle1 1760 65341 0 0 3 0x14200 bored softnet 69762 195420 0 0 3 0x14200 bored softnet 15951 6266 0 0 3 0x14200 bored softnet 64150 222072 0 0 3 0x14200 bored softnet 60861 486631 0 0 3 0x14200 bored systqmp 36030 227601 0 0 3 0x14200 bored systq 81765 72371 0 0 3 0x40014200 bored softclock 86425 465708 0 0 3 0x40014200 idle0 1 363173 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 1915 (ifconfig) thread 0xffff800021242598 (143190) exclusive rwlock clonelk r = 0 (0xffffffff82b495e0) #0 witness_lock+0x44d #1 if_clone_destroy+0x49 #2 ifioctl+0x3b4 sys/net/if.c:1924 #3 sys_ioctl+0x4a2 #4 syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] #4 syscall+0x606 sys/arch/amd64/amd64/trap.c:625 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82db6228) #0 witness_lock+0x44d #1 ifioctl+0x3ac sys/net/if.c:1924 #2 sys_ioctl+0x4a2 #3 syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] #3 syscall+0x606 sys/arch/amd64/amd64/trap.c:625 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10234 6513K 6968K 78643K 17623 0 pcb 13 20K 24K 78643K 4736 0 rtable 208 16K 17K 78643K 1170 0 ifaddr 84 26K 27K 78643K 532 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 36K 78643K 574 0 ioctlops 0 0K 4K 78643K 1856 0 iov 0 0K 24K 78643K 475 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1390 87K 87K 78643K 4009 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 23 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 89K 78643K 4623 0 sigio 0 0K 0K 78643K 23 0 proc 77 103K 128K 78643K 1278 0 subproc 104 6K 6K 78643K 351 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 333 0 in_multi 87 5K 7K 78643K 407 0 ether_multi 1 0K 0K 78643K 17 0 mrt 1 0K 0K 78643K 57 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 169 758K 758K 78643K 169 0 exec 0 0K 1K 78643K 1452 0 pfkey data 0 0K 0K 78643K 6 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 8 62K 64K 78643K 10 0 UVM amap 329 93K 100K 78643K 33564 0 UVM aobj 108 5K 7K 78643K 119 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 160 0 NDP 15 0K 1K 78643K 170 0 temp 142 5778K 6802K 78643K 85119 0 kqueue 12 18K 26K 78643K 363 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 354 0 351 5 4 1 3 0 8 0 rtentry 112 390 0 302 4 0 4 4 0 8 0 unpcb 144 5208 0 5193 51 45 6 10 0 8 5 syncache 296 10 0 10 2 2 0 1 0 8 0 tcpqe 32 404 0 404 3 3 0 2 0 8 0 tcpcb 776 4871 0 4867 61 53 8 14 0 8 7 arp 120 58 0 42 1 0 1 1 0 8 0 inpcb 368 12024 0 12016 100 91 9 17 0 8 8 nd6 48 86 0 65 1 0 1 1 0 8 0 pkpcb 40 16 0 16 5 5 0 1 0 8 0 kcovpl 48 27 0 19 1 0 1 1 0 8 0 mppekey 1024 3 0 3 2 2 0 1 0 8 0 ppxss 1256 181 0 181 7 6 1 1 0 8 1 pppxif 1456 83 0 83 7 6 1 1 0 8 1 pfstscr 40 9 0 9 3 3 0 1 0 8 0 pffrag 232 20 0 17 2 1 1 1 0 482 0 pffrnode 88 20 0 17 2 1 1 1 0 8 0 pffrent 40 109 0 106 2 1 1 1 0 8 0 pfosfp 40 1431 0 1007 5 0 5 5 0 8 0 pfosfpen 112 1431 0 716 21 0 21 21 0 8 0 pfanchor 1280 838 2 326 45 2 43 43 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 61 0 59 1 0 1 1 0 8 0 pfstkey 128 79 0 77 1 0 1 1 0 8 0 pfstate 384 70 0 68 6 5 1 6 0 8 0 pfrule 1344 21 0 20 2 1 1 2 0 8 0 rttmr 136 18 0 18 3 3 0 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 1941 0 1540 35 9 26 30 0 8 0 art_table 32 1943 0 1541 4 0 4 4 0 8 0 art_node 16 389 0 312 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 116 0 11 4 0 4 4 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7421 0 5964 92 0 92 92 0 8 0 ffsino 272 7421 0 5964 98 0 98 98 0 8 0 nchpl 144 13575 0 11938 63 0 63 63 0 8 0 rtmask 32 6 0 6 1 1 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 49928 0 49928 2 1 1 2 0 8 1 percpumem 16 300 0 257 1 0 1 1 0 8 0 vmpool 696 18 0 18 4 4 0 1 0 8 0 kstatmem 264 232 0 202 5 2 3 3 0 8 1 scxspl 216 38683 0 38683 13 12 1 8 0 8 1 plimitpl 152 446 0 430 1 0 1 1 0 8 0 sigapl 424 4927 0 4864 9 1 8 8 0 8 0 futexpl 64 44364 0 44364 1 0 1 1 0 8 1 knotepl 120 461 0 0 12 0 12 12 0 8 0 kqueuepl 216 915 0 907 19 18 1 5 0 8 0 pipepl 320 1329 0 1301 28 25 3 9 0 8 0 fdescpl 496 4888 0 4863 5 1 4 5 0 8 0 filepl 152 40255 0 40017 64 45 19 21 0 8 8 lockfpl 104 1143 0 1141 4 2 2 2 0 8 1 lockfspl 48 289 0 287 1 0 1 1 0 8 0 sessionpl 144 46 0 29 1 0 1 1 0 8 0 pgrppl 48 104 0 87 1 0 1 1 0 8 0 ucredpl 104 3473 0 3460 1 0 1 1 0 8 0 zombiepl 144 4864 0 4864 1 0 1 1 0 8 1 processpl 1072 4927 0 4864 5 0 5 5 0 8 0 procpl 696 13107 0 13029 16 6 10 10 0 8 1 srpgc 96 22 0 22 4 4 0 1 0 8 0 sosppl 168 51 0 51 8 8 0 1 0 8 0 sockpl 488 17692 0 17666 319 306 13 34 0 8 9 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 1 mcl4k 4096 20 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 400 0 0 49 1 48 49 0 8 0 mtagpl 96 334 0 0 7 0 7 7 0 8 0 mbufpl 256 1087 0 0 66 0 66 66 0 8 0 bufpl 288 10362 0 4040 452 0 452 452 0 8 0 anonpl 24 994630 0 979754 169 44 125 142 0 186 1 amapchunkpl 152 100265 0 99571 69 34 35 49 0 158 1 amappl16 200 9878 0 9344 64 34 30 42 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 231 0 216 2 1 1 2 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 666 0 660 1 0 1 1 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 52 0 41 1 0 1 1 0 8 0 amappl9 144 985 0 984 2 1 1 1 0 8 0 amappl8 136 377 0 295 4 0 4 4 0 8 0 amappl7 128 222 0 194 2 0 2 2 0 8 0 amappl6 120 285 0 271 2 1 1 2 0 8 0 amappl5 112 265 0 254 1 0 1 1 0 8 0 amappl4 104 758 0 725 2 1 1 2 0 8 0 amappl3 96 14115 0 14072 2 0 2 2 0 8 0 amappl2 88 5489 0 5408 4 2 2 4 0 8 0 amappl1 80 113840 0 113153 29 11 18 28 0 8 0 amappl 88 32763 0 32573 7 1 6 6 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 118 0 11 2 0 2 2 0 8 0 uaddrrnd 24 4906 0 4881 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4906 0 4881 1 0 1 1 0 8 0 vmmpekpl 168 43312 0 43244 4 0 4 4 0 8 0 vmmpepl 168 458928 0 456469 270 88 182 182 0 357 44 vmsppl 440 4905 0 4881 6 2 4 5 0 8 0 rwobjpl 56 127336 0 119596 119 7 112 114 0 8 0 pdppl 4096 9819 0 9762 287 222 65 83 0 8 8 pvpl 32 1976644 0 1956417 367 157 210 362 0 265 0 pmappl 248 4905 0 4881 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1208 0 335 26 0 26 26 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82b24ff0) 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(ffffffff82db6020) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82db6020) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82db6020) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82db6020) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff800021209500) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021209500) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc48b0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff82b24ff0) 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(ffffffff82db6020) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82db6020) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82db6020) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82db6020) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff800021209500) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021209500) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc48b0, count: -9 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:437 panic(ffffffff82751deb) at panic+0x177 sys/kern/subr_prf.c:198 __assert(ffffffff827cd2be,ffffffff82818b32,13b,ffffffff827e01fc) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d22000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002e643c80) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806e31f018,80206979,ffff80002e643c80,ffff800021242598) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800021242598,ffff80002e643d90,ffff80002e643de0) at sys_ioctl+0x4a2 syscall(ffff80002e643e60) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e643e60) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea200, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82751deb) at panic+0x177 sys/kern/subr_prf.c:198 __assert(ffffffff827cd2be,ffffffff82818b32,13b,ffffffff827e01fc) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d22000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002e643c80) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806e31f018,80206979,ffff80002e643c80,ffff800021242598) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800021242598,ffff80002e643d90,ffff80002e643de0) at sys_ioctl+0x4a2 syscall(ffff80002e643e60) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e643e60) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea200, count: -9