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 *421336 18232 0 0x2 0 1K ifconfig 444401 2886 77 0x100012 0x1 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(ffff800000e44000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002fe45cf0) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806d6539a0,80206979,ffff80002fe45cf0,ffff800022f12b28) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800022f12b28,ffff80002fe45e00,ffff80002fe45e50) at sys_ioctl+0x4a2 syscall(ffff80002fe45ed0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fe45ed0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbbe0, 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(ffff800000e44000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002fe45cf0) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806d6539a0,80206979,ffff80002fe45cf0,ffff800022f12b28) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800022f12b28,ffff80002fe45e00,ffff80002fe45e50) at sys_ioctl+0x4a2 syscall(ffff80002fe45ed0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fe45ed0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbbe0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002fe45aa0 rbx 0xffff800020d69b8f rdx 0 rcx 0 rax 0xffff800022f12b28 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf2ba850298919ccd r11 0x10e01e50d89b1054 r12 0xffff800020d69990 r13 0 r14 0 r15 0x1 rip 0xffffffff81b420b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002fe45a90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) pid=421336 stat=onproc flags process=2 proc=0 pri=56, usrpri=56, nice=20 forw=0xffffffffffffffff, list=0xffff800022f13098,0xffffffff82ca0df8 process=0xffff8000ffff6a08 user=0xffff80002fe40000, vmspace=0xfffffd806b92f8b0 estcpu=6, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *18232 421336 92471 0 7 0x2 ifconfig 92471 276423 9103 0 3 0x10008a sigsusp sh 9103 158557 30999 0 3 0x82 wait syz-executor.0 87706 281996 30999 0 3 0x82 piperd syz-executor.3 16319 450909 30999 0 3 0x82 piperd syz-executor.4 39690 196176 30999 0 3 0x82 piperd syz-executor.2 71407 90494 30999 0 3 0x82 piperd syz-executor.7 49927 508316 30999 0 3 0x82 piperd syz-executor.6 389 343760 30999 0 3 0x82 piperd syz-executor.5 54096 234378 0 0 3 0x14200 acct acct 85142 66980 30999 0 3 0x82 piperd syz-executor.1 41862 360033 1 0 3 0x100083 ttyin getty 42777 454163 0 0 3 0x14280 nfsidl nfsio 99129 28703 0 0 3 0x14280 nfsidl nfsio 38556 520369 0 0 3 0x14280 nfsidl nfsio 77257 123854 0 0 3 0x14280 nfsidl nfsio 21793 291700 0 0 3 0x14280 nfsidl nfsio 20565 465649 0 0 3 0x14280 nfsidl nfsio 75780 114700 0 0 3 0x14280 nfsidl nfsio 67484 232755 0 0 3 0x14280 nfsidl nfsio 14415 463239 0 0 3 0x14280 nfsidl nfsio 85482 110499 0 0 3 0x14280 nfsidl nfsio 44541 187367 0 0 3 0x14280 nfsidl nfsio 17546 352411 0 0 3 0x14280 nfsidl nfsio 94486 115530 0 0 3 0x14280 nfsidl nfsio 81678 407202 0 0 3 0x14280 nfsidl nfsio 70677 37892 0 0 3 0x14280 nfsidl nfsio 47685 419381 0 0 3 0x14280 nfsidl nfsio 78357 25047 0 0 3 0x14280 nfsidl nfsio 12965 410943 0 0 3 0x14280 nfsidl nfsio 25638 399286 0 0 3 0x14280 nfsidl nfsio 97089 461448 0 0 3 0x14280 nfsidl nfsio 30315 426003 0 0 3 0x14200 bored sosplice 65080 507162 56642 0 3 0x100082 netio ndp 56642 254151 1 0 3 0x10008a sigsusp sh 30999 431607 57755 0 3 0x82 thrsleep syz-fuzzer 30999 159423 57755 0 3 0x4000082 nanoslp syz-fuzzer 30999 481981 57755 0 3 0x4000082 thrsleep syz-fuzzer 30999 197985 57755 0 3 0x4000082 wait syz-fuzzer 30999 91440 57755 0 3 0x4000082 thrsleep syz-fuzzer 30999 509755 57755 0 3 0x4000082 wait syz-fuzzer 30999 213872 57755 0 3 0x4000082 wait syz-fuzzer 30999 259069 57755 0 3 0x4000082 wait syz-fuzzer 30999 401360 57755 0 3 0x4000082 wait syz-fuzzer 30999 151940 57755 0 3 0x4000082 thrsleep syz-fuzzer 30999 477729 57755 0 3 0x4000082 wait syz-fuzzer 30999 378588 57755 0 3 0x4000082 thrsleep syz-fuzzer 30999 503217 57755 0 3 0x4000082 kqread syz-fuzzer 30999 513496 57755 0 3 0x4000082 wait syz-fuzzer 30999 493532 57755 0 3 0x4000082 thrsleep syz-fuzzer 30999 280171 57755 0 3 0x4000082 wait syz-fuzzer 57755 283756 62058 0 3 0x10008a sigsusp ksh 62058 329576 37374 0 3 0x9a kqread sshd 37374 503178 1 0 3 0x88 kqread sshd 73616 226768 52843 74 3 0x1100092 bpf pflogd 52843 405502 1 0 3 0x80 netio pflogd 78552 388636 72014 73 3 0x1100090 kqread syslogd 72014 412697 1 0 3 0x100082 netio syslogd 4665 502189 1 0 3 0x100080 kqread resolvd 2886 444401 11097 77 7 0x100013 dhcpleased 66488 137595 11097 77 3 0x100092 kqread dhcpleased 11097 314444 1 0 3 0x80 kqread dhcpleased 55065 440726 0 0 3 0x14200 bored smr 1874 211367 0 0 3 0x14200 pgzero zerothread 40188 489477 0 0 3 0x14200 aiodoned aiodoned 45028 506968 0 0 3 0x14200 syncer update 99388 265565 0 0 3 0x14200 cleaner cleaner 8875 96880 0 0 3 0x14200 reaper reaper 29519 517799 0 0 3 0x14200 pgdaemon pagedaemon 44630 278398 0 0 3 0x14200 bored viomb 97353 84856 0 0 3 0x40014200 acpi0 acpi0 30772 268021 0 0 3 0x40014200 idle1 38909 396354 0 0 3 0x14200 bored softnet 33130 252771 0 0 3 0x14200 bored softnet 83028 105480 0 0 3 0x14200 bored softnet 87426 260526 0 0 3 0x14200 bored softnet 5653 99902 0 0 3 0x14200 bored systqmp 48317 522618 0 0 3 0x14200 bored systq 99200 36277 0 0 3 0x40014200 bored softclock 33815 167719 0 0 3 0x40014200 idle0 1 514804 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 10247 6507K 7336K 78643K 30190 0 pcb 13 18K 22K 78643K 7901 0 rtable 202 16K 17K 78643K 2919 0 ifaddr 84 27K 28K 78643K 1038 0 sysctl 3 1K 3K 78643K 8 0 counters 58 35K 36K 78643K 1012 0 ioctlops 0 0K 4K 78643K 2321 0 iov 0 0K 28K 78643K 1571 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1486 93K 93K 78643K 9917 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 114 0 VM map 2 1K 1K 78643K 2 0 sem 11 10K 20K 78643K 23 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 81K 78643K 12402 0 sigio 0 0K 0K 78643K 212 0 proc 79 103K 116K 78643K 2370 0 subproc 117 7K 7K 78643K 715 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1166 0 in_multi 74 5K 6K 78643K 898 0 ether_multi 1 0K 0K 78643K 78 0 mrt 1 0K 0K 78643K 66 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 241 1076K 1076K 78643K 241 0 exec 0 0K 1K 78643K 2581 0 pfkey data 0 0K 0K 78643K 36 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 413 95K 112K 78643K 87139 0 UVM aobj 131 4K 4K 78643K 138 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 521 0 NDP 15 0K 1K 78643K 334 0 temp 141 5778K 6802K 78643K 112322 0 kqueue 12 18K 26K 78643K 945 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 1126 0 1122 17 16 1 3 0 8 0 rtentry 112 990 0 909 4 1 3 4 0 8 0 unpcb 144 11745 0 11730 113 109 4 10 0 8 3 syncache 296 37 0 37 11 11 0 1 0 8 0 tcpqe 32 171 0 171 6 6 0 1 0 8 0 tcpcb 776 7988 0 7984 162 158 4 14 0 8 3 arp 120 151 0 134 1 0 1 1 0 8 0 inpcb 368 21167 0 21159 222 214 8 20 0 8 7 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 48 175 0 157 1 0 1 1 0 8 0 pkpcb 40 94 0 94 7 7 0 1 0 8 0 kcovpl 48 55 0 46 1 0 1 1 0 8 0 mppekey 1024 81 0 81 5 5 0 1 0 8 0 ppxss 1256 321 0 321 16 16 0 1 0 8 0 pppxif 1456 189 0 189 13 13 0 1 0 8 0 pffrag 232 26 0 25 4 3 1 1 0 482 0 pffrnode 88 26 0 25 4 3 1 1 0 8 0 pffrent 40 145 0 144 5 4 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 pfanchor 1280 14 0 14 1 1 0 1 0 8 0 pfstitem 24 333 0 315 1 0 1 1 0 8 0 pfstkey 128 333 0 315 2 0 2 2 0 8 0 pfstate 384 333 0 315 9 5 4 7 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 rttmr 136 17 0 17 6 6 0 1 0 8 0 art_heap8 4096 7 0 6 6 5 1 3 0 8 0 art_heap4 256 3938 0 3600 57 34 23 29 0 8 0 art_table 32 3945 0 3606 5 1 4 4 0 8 0 art_node 16 974 0 905 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 3 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 17822 0 16338 94 0 94 94 0 8 0 ffsino 272 17822 0 16338 100 0 100 100 0 8 0 nchpl 144 34418 0 32778 63 0 63 63 0 8 0 rtmask 32 3 0 3 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 121125 0 121125 4 3 1 2 0 8 1 percpumem 16 519 0 477 1 0 1 1 0 8 0 vmpool 696 28 0 28 7 7 0 1 0 8 0 kstatmem 264 436 0 406 15 12 3 3 0 8 0 scsiplug 72 10 0 10 3 3 0 1 0 8 0 scxspl 216 96512 0 96512 27 26 1 8 0 8 1 plimitpl 152 1635 0 1618 1 0 1 1 0 8 0 sigapl 424 12640 0 12574 13 4 9 9 0 8 1 futexpl 64 113598 0 113598 2 1 1 1 0 8 1 knotepl 120 887 0 0 12 0 12 12 0 8 0 kqueuepl 216 2589 0 2581 48 43 5 5 0 8 4 pipepl 320 2812 0 2781 78 75 3 10 0 8 0 fdescpl 496 12600 0 12573 6 1 5 5 0 8 0 filepl 152 94801 0 94545 168 154 14 23 0 8 3 lockfpl 104 3222 0 3220 5 4 1 2 0 8 0 lockfspl 48 1062 0 1060 1 0 1 1 0 8 0 sessionpl 144 72 0 54 1 0 1 1 0 8 0 pgrppl 48 241 0 223 1 0 1 1 0 8 0 ucredpl 104 11511 0 11499 1 0 1 1 0 8 0 zombiepl 144 12574 0 12574 3 2 1 1 0 8 1 processpl 1072 12640 0 12574 6 1 5 5 0 8 0 procpl 696 35327 0 35246 15 5 10 11 0 8 0 srpgc 96 62 0 62 21 21 0 1 0 8 0 sosppl 168 153 0 153 21 21 0 1 0 8 0 sockpl 488 34284 0 34257 658 645 13 45 0 8 9 mcl64k 65536 32 0 0 3 0 3 3 0 8 0 mcl16k 16384 19 0 0 3 1 2 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 38 0 0 3 1 2 2 0 8 0 mcl8k 8192 26 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 561 0 0 61 20 41 61 0 8 0 mtagpl 96 582 0 0 11 1 10 11 0 8 0 mbufpl 256 9016 0 0 552 0 552 552 0 8 0 bufpl 288 21453 0 15125 453 0 453 453 0 8 0 anonpl 24 2671954 0 2656125 344 212 132 189 0 186 0 amapchunkpl 152 249004 0 248290 123 82 41 65 0 158 4 amappl16 200 26836 0 26298 169 137 32 53 0 8 0 amappl15 192 7 0 6 1 0 1 1 0 8 0 amappl14 184 306 0 286 5 4 1 2 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 983 0 974 1 0 1 1 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 95 0 85 1 0 1 1 0 8 0 amappl9 144 1033 0 1033 4 3 1 1 0 8 1 amappl8 136 887 0 720 6 0 6 6 0 8 0 amappl7 128 287 0 258 2 0 2 2 0 8 0 amappl6 120 475 0 450 2 1 1 2 0 8 0 amappl5 112 482 0 472 1 0 1 1 0 8 0 amappl4 104 1082 0 1037 3 1 2 2 0 8 0 amappl3 96 37612 0 37566 3 1 2 2 0 8 0 amappl2 88 13846 0 13758 5 2 3 4 0 8 0 amappl1 80 290567 0 289826 29 10 19 28 0 8 0 amappl 88 85803 0 85606 9 3 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 137 0 7 3 0 3 3 0 8 0 uaddrrnd 24 12629 0 12602 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12629 0 12602 1 0 1 1 0 8 0 vmmpekpl 168 103817 0 103753 4 0 4 4 0 8 0 vmmpepl 168 1171093 0 1168403 310 151 159 194 0 357 2 vmsppl 440 12628 0 12602 6 2 4 4 0 8 0 rwobjpl 56 316344 0 308414 142 26 116 119 0 8 0 pdppl 4096 25265 0 25204 772 699 73 77 0 8 12 pvpl 32 5159724 0 5138188 665 441 224 367 0 265 0 pmappl 248 12628 0 12602 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2360 0 999 40 0 40 40 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 ktrstruct(ffff800021202580,ffffffff82803d15,ffff800021209b80,20) at ktrstruct+0xd6 sys/kern/kern_ktrace.c:307 sys_kevent(ffff800021202580,ffff800021209d40,ffff800021209d90) at sys_kevent+0x550 sys/kern/kern_event.c:985 syscall(ffff800021209e10) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021209e10) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8d50, count: 4 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 ktrstruct(ffff800021202580,ffffffff82803d15,ffff800021209b80,20) at ktrstruct+0xd6 sys/kern/kern_ktrace.c:307 sys_kevent(ffff800021202580,ffff800021209d40,ffff800021209d90) at sys_kevent+0x550 sys/kern/kern_event.c:985 syscall(ffff800021209e10) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021209e10) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8d50, count: -11 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(ffff800000e44000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002fe45cf0) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806d6539a0,80206979,ffff80002fe45cf0,ffff800022f12b28) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800022f12b28,ffff80002fe45e00,ffff80002fe45e50) at sys_ioctl+0x4a2 syscall(ffff80002fe45ed0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fe45ed0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbbe0, 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(ffff800000e44000) at tun_clone_destroy+0x278 sys/net/if_tun.c:315 if_clone_destroy(ffff80002fe45cf0) at if_clone_destroy+0x132 sys/net/if.c:1247 ifioctl(fffffd806d6539a0,80206979,ffff80002fe45cf0,ffff800022f12b28) at ifioctl+0x3b4 sys/net/if.c:1924 sys_ioctl(ffff800022f12b28,ffff80002fe45e00,ffff80002fe45e50) at sys_ioctl+0x4a2 syscall(ffff80002fe45ed0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fe45ed0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbbe0, count: -9