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 *438713 23673 0 0x2 0 1K ifconfig 383820 63093 77 0x100012 0x1 0 dhcpleased db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834d1dab) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350f089,ffffffff83557d45,13f,ffffffff8344c2f7) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001624800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80003c3c4040) at if_clone_destroy+0x205 sys/net/if.c:1479 ifioctl(ffff8000016265f8,80206979,ffff80003c3c4040,ffff800045fead18) at ifioctl+0x59d sys/net/if.c:2160 sys_ioctl(ffff800045fead18,ffff80003c3c4220,ffff80003c3c4170) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c3c4220) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3c4220) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c38a96efe40, 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(ffffffff834d1dab) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350f089,ffffffff83557d45,13f,ffffffff8344c2f7) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001624800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80003c3c4040) at if_clone_destroy+0x205 sys/net/if.c:1479 ifioctl(ffff8000016265f8,80206979,ffff80003c3c4040,ffff800045fead18) at ifioctl+0x59d sys/net/if.c:2160 sys_ioctl(ffff800045fead18,ffff80003c3c4220,ffff80003c3c4170) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c3c4220) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3c4220) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c38a96efe40, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c3c3df0 rbx 0xffff80002999ee0f rdx 0 rcx 0xffff800045fead18 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9382b63ba3c5b16 r11 0xaefe7c535f44ecf9 r12 0xffff80002999ec10 r13 0 r14 0 r15 0x1 rip 0xffffffff81aa9055 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c3c3de0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) tid=438713 pid=23673 tcnt=1 stat=onproc flags process=2 proc=0 runpri=32, usrpri=57, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045feba10,0xffff80002a22b4e8 process=0xffff800045fefa38 user=0xffff80003c3bf000, vmspace=0xfffffc000f995d78 estcpu=7, cpticks=2, pctcpu=0.1, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND *23673 438713 45569 0 7 0x2 0 ifconfig 45569 339083 91866 0 3 0x100002 0x88 sigsusp sh 79078 53575 74399 60929 3 0x400010 0x80 nanoslp syz-executor 79078 50133 74399 60929 3 0x400010 0x4000080 piperd syz-executor 79078 431522 74399 60929 3 0x400010 0x4000080 fsleep syz-executor 79078 73329 74399 60929 3 0x400010 0x4000080 fsleep syz-executor 91866 230768 34633 0 3 0x2 0x80 wait syz-executor 43379 470913 50794 0 3 0 0x80 nanoslp syz-executor 43379 452266 50794 0 3 0 0x4000080 fifor syz-executor 43379 214773 50794 0 3 0 0x4000080 fsleep syz-executor 84569 187145 34633 0 3 0x2 0x80 piperd syz-executor 73077 117238 34633 0 3 0x2 0x80 piperd syz-executor 41486 364751 34633 0 3 0x2 0x80 piperd syz-executor 74050 10383 34633 0 3 0x2 0x80 piperd syz-executor 50794 278679 34633 0 3 0x2 0x80 nanoslp syz-executor 74399 75689 34633 0 3 0x2 0x80 nanoslp syz-executor 34633 421838 52344 0 3 0x2 0x80 wait syz-executor 52344 231873 30458 0 3 0x100002 0x88 sigsusp ksh 30458 316113 95322 0 3 0x10 0x88 kqread sshd-session 95322 423408 28521 0 3 0x12 0x80 kqread sshd-session 26562 133664 1 0 3 0x100003 0x80 ttyin getty 28521 89995 1 0 3 0 0x88 kqread sshd 63709 462335 18298 74 3 0x1100012 0x80 bpf pflogd 18298 519799 1 0 3 0 0x80 sbwait pflogd 87670 242075 83442 73 3 0x1100010 0x80 kqread syslogd 83442 457872 1 0 3 0x100002 0x80 sbwait syslogd 17113 303990 1 0 3 0x100000 0x80 kqread resolvd 63093 383820 72222 77 7 0x100012 0x1 dhcpleased 16715 203538 72222 77 3 0x100012 0x80 kqread dhcpleased 72222 336588 1 0 3 0 0x80 kqread dhcpleased 24150 114262 0 0 3 0x14000 0x200 bored smr 63724 348878 0 0 3 0x14000 0x200 pgzero zerothread 94597 359332 0 0 3 0x14000 0x200 aiodoned aiodoned 32223 228154 0 0 3 0x14000 0x200 syncer update 13591 234100 0 0 3 0x14000 0x200 cleaner cleaner 73240 270807 0 0 3 0x14000 0x200 reaper reaper 8346 250871 0 0 3 0x14000 0x200 pgdaemon pagedaemon 41228 452305 0 0 3 0x14000 0x200 bored viomb 39561 510491 0 0 3 0x14000 0x40000200 acpi0 acpi0 55663 239125 0 0 3 0x14000 0x40000200 idle1 96794 363848 0 0 3 0x14000 0x200 bored softnet1 75298 90317 0 0 3 0x14000 0x200 bored softnet0 59053 446713 0 0 3 0x14000 0x200 smrbar systqmp 17872 393344 0 0 3 0x14000 0x200 bored systq 47546 86712 0 0 3 0x14000 0x200 tmoslp softclockmp 52485 513476 0 0 3 0x14000 0x40000200 tmoslp softclock 14827 109815 0 0 3 0x14000 0x40000200 idle0 1 312778 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 23673 (ifconfig) thread 0xffff800045fead18 (438713) exclusive rwlock clonelk r = 0 (0xffffffff8392eb68) #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:2160 #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 (0xffffffff83b1d300) #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:2160 #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 59053 (systqmp) thread 0xffff800045ffe7c8 (446713) shared rwlock systqmp r = 0 (0xffffffff839f00f8) #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 11049 12082K 12214K 166960K 12195 0 pcb 17 12K 12K 166960K 23 0 rtable 193 5K 7K 166960K 358 0 pf 33 17K 18K 166960K 48 0 ifaddr 38 6K 7K 166960K 46 0 ifgroup 51 2K 2K 166960K 59 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 37K 166960K 72 0 ioctlops 0 0K 4K 166960K 1486 0 iov 1 1K 13K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1289 81K 81K 166960K 1379 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 14 49K 93K 166960K 154 0 sigio 0 0K 0K 166960K 2 0 proc 77 131K 196K 166960K 559 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 5 0 in_multi 77 5K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 395 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 203 175K 185K 166960K 3348 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 39 78K 104K 166960K 1344 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 25 1K 2K 166960K 29 0 temp 40 9119K 9150K 166960K 4743 0 kqueue 13 20K 22K 166960K 27 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 36 0 33 1 0 1 1 0 8 0 rtentry 176 111 0 23 5 0 5 5 0 8 0 unpcb 144 52 0 33 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 10 0 5 1 0 1 1 0 8 0 arp 136 18 0 4 1 0 1 1 0 8 0 inpcb 328 85 0 75 2 0 2 2 0 8 1 nd6 152 24 0 6 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 pfstscr 40 1 0 1 1 0 1 1 0 8 1 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 32 0 0 1 0 1 1 0 8 0 pfstkey 128 34 0 2 2 0 2 2 0 8 0 pfstate 448 33 0 1 4 0 4 4 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 453 0 44 29 0 29 29 0 8 1 art_table 40 454 0 44 5 0 5 5 0 8 0 art_node 32 111 0 21 1 0 1 1 0 8 0 semapl 72 2 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1595 0 125 93 0 93 93 0 8 0 ffsino 296 1595 0 125 114 0 114 114 0 8 0 nchpl 144 1812 0 112 64 0 64 64 0 8 0 vnodes 216 1696 0 0 95 0 95 95 0 8 0 namei 1024 6511 0 6511 3 1 2 2 0 8 2 percpumem 16 52 0 2 1 0 1 1 0 8 0 kstatmem 264 29 0 4 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6269 0 6269 3 1 2 2 1 8 2 plimitpl 152 34 0 16 1 0 1 1 0 8 0 sigapl 424 478 0 434 7 0 7 7 0 8 1 knotepl 120 299 0 0 10 0 10 10 0 8 0 kqueuepl 224 25 0 15 1 0 1 1 0 8 0 pipepl 344 135 0 107 3 0 3 3 0 8 0 fdescpl 528 462 0 434 3 0 3 3 0 8 0 filepl 160 1770 0 1556 10 0 10 10 0 8 0 lockfpl 104 16 0 14 1 0 1 1 0 8 0 lockfspl 48 9 0 7 1 0 1 1 0 8 0 sessionpl 144 28 0 19 1 0 1 1 0 8 0 pgrppl 48 37 0 20 1 0 1 1 0 8 0 ucredpl 104 98 0 84 1 0 1 1 0 8 0 zombiepl 144 435 0 434 1 0 1 1 0 8 0 processpl 1240 478 0 434 5 0 5 5 0 8 1 procpl 664 510 0 461 5 0 5 5 0 8 0 sockpl 752 174 0 142 4 0 4 4 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl9k128 9344 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 122 0 0 16 0 16 16 0 8 0 mcl2k 2048 15 0 0 2 0 2 2 0 8 0 mextrefs 64 13 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 176 0 0 11 0 11 11 0 8 0 bufpl 272 2327 0 105 149 0 149 149 0 8 0 anonpl 32 3834 0 0 31 0 31 31 0 247 0 amapchunkpl 152 9011 0 8640 19 0 19 19 0 158 0 amappl16 200 1890 0 1875 5 0 5 5 0 8 4 amappl15 192 14 0 14 1 0 1 1 0 8 1 amappl14 184 443 0 441 1 0 1 1 0 8 0 amappl13 176 143 0 130 1 0 1 1 0 8 0 amappl12 168 726 0 700 2 0 2 2 0 8 0 amappl11 160 4 0 3 1 0 1 1 0 8 0 amappl10 152 63 0 49 1 0 1 1 0 8 0 amappl9 144 319 0 319 1 0 1 1 0 8 1 amappl8 136 109 0 106 1 0 1 1 0 8 0 amappl7 128 157 0 143 1 0 1 1 0 8 0 amappl6 120 160 0 157 1 0 1 1 0 8 0 amappl5 112 102 0 92 1 0 1 1 0 8 0 amappl4 104 310 0 291 1 0 1 1 0 8 0 amappl3 96 1536 0 1461 4 1 3 3 0 8 0 amappl2 88 583 0 514 2 0 2 2 0 8 0 amappl1 80 10615 0 10021 15 0 15 15 0 8 1 amappl 88 2597 0 2467 4 0 4 4 0 92 0 uvmvnodes 80 100 0 0 3 0 3 3 0 8 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 462 0 434 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 462 0 434 1 0 1 1 0 8 0 vmmpekpl 168 5935 0 5892 3 0 3 3 0 8 0 vmmpepl 168 39833 0 38154 87 0 87 87 0 357 4 vmsppl 488 461 0 434 5 0 5 5 0 8 1 rwobjpl 80 14949 0 13958 24 0 24 24 0 8 1 pdppl 4096 931 0 868 101 16 85 85 0 8 22 pvpl 32 9259 0 0 75 0 75 75 0 265 0 pmappl 256 461 0 434 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 424 0 20 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff839afff0) 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(ffffffff83b1cb00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83b1cb00) 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 __mp_lock(ffffffff83b1cb00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83b1cb00) at __mp_lock+0x192 sys/kern/kern_lock.c:173 ktrsyscall(ffff80002a22cd08,79,18,ffff80002a25c740) at ktrsyscall+0x2c7 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a22cd08,79,18,ffff80002a25c740) at ktrsyscall+0x2c7 sys/kern/kern_ktrace.c:183 syscall(ffff80002a25c740) at syscall+0x305 mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a25c740) at syscall+0x305 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77dc1b0e0380, count: 4 ddb{0}> trace x86_ipi_db(ffffffff839afff0) 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(ffffffff83b1cb00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83b1cb00) 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 __mp_lock(ffffffff83b1cb00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83b1cb00) at __mp_lock+0x192 sys/kern/kern_lock.c:173 ktrsyscall(ffff80002a22cd08,79,18,ffff80002a25c740) at ktrsyscall+0x2c7 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a22cd08,79,18,ffff80002a25c740) at ktrsyscall+0x2c7 sys/kern/kern_ktrace.c:183 syscall(ffff80002a25c740) at syscall+0x305 mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a25c740) at syscall+0x305 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77dc1b0e0380, count: -11 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(ffffffff834d1dab) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350f089,ffffffff83557d45,13f,ffffffff8344c2f7) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001624800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80003c3c4040) at if_clone_destroy+0x205 sys/net/if.c:1479 ifioctl(ffff8000016265f8,80206979,ffff80003c3c4040,ffff800045fead18) at ifioctl+0x59d sys/net/if.c:2160 sys_ioctl(ffff800045fead18,ffff80003c3c4220,ffff80003c3c4170) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c3c4220) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3c4220) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c38a96efe40, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834d1dab) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8350f089,ffffffff83557d45,13f,ffffffff8344c2f7) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff800001624800) at tun_clone_destroy+0x38a if_clone_destroy(ffff80003c3c4040) at if_clone_destroy+0x205 sys/net/if.c:1479 ifioctl(ffff8000016265f8,80206979,ffff80003c3c4040,ffff800045fead18) at ifioctl+0x59d sys/net/if.c:2160 sys_ioctl(ffff800045fead18,ffff80003c3c4220,ffff80003c3c4170) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c3c4220) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3c4220) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c38a96efe40, count: -9