panic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/net/if_tun.c", line 315 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *133448 58198 0 0x2 0 1K ifconfig 461629 63173 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830ea383) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c1b8,ffffffff830e2ac7,13b,ffffffff83079983) at __assert+0x29 tun_clone_destroy(ffff800001179800) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800030c062d0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff80000116c7d8,80206979,ffff800030c062d0,ffff8000ffff4f50) at ifioctl+0x5c5 sys_ioctl(ffff8000ffff4f50,ffff800030c064b0,ffff800030c06400) at sys_ioctl+0x67c syscall(ffff800030c064b0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030c064b0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70e5cd1e8170, 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/setuid/kernel/sys/net/if_tun.c", line 315 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830ea383) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c1b8,ffffffff830e2ac7,13b,ffffffff83079983) at __assert+0x29 tun_clone_destroy(ffff800001179800) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800030c062d0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff80000116c7d8,80206979,ffff800030c062d0,ffff8000ffff4f50) at ifioctl+0x5c5 sys_ioctl(ffff8000ffff4f50,ffff800030c064b0,ffff800030c06400) at sys_ioctl+0x67c syscall(ffff800030c064b0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030c064b0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70e5cd1e8170, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800030c06080 rbx 0xffff800029b7cd87 rdx 0 rcx 0xffff8000ffff4f50 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe38f03dc85b67ca6 r11 0xd8884e473f3ee520 r12 0xffff800029b7cb88 r13 0 r14 0 r15 0x1 rip 0xffffffff8292aa75 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800030c06070 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) tid=133448 pid=58198 tcnt=1 stat=onproc flags process=2 proc=0 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff5bf8,0xffff8000ffff4540 process=0xffff800030d768d8 user=0xffff800030c01000, vmspace=0xfffffd80509888a8 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 80048 161381 83937 0 2 0x40 syz-executor 21565 291154 31153 0 2 0x40 syz-executor 94302 74542 73491 0 2 0x2 arp *58198 133448 91736 0 7 0x2 ifconfig 17652 156707 61864 0 2 0x100002 sh 91736 51719 67240 0 3 0x10008a sigsusp sh 73491 105293 26360 0 3 0x10008a sigsusp sh 67240 300542 50922 0 3 0x80 wait syz-executor 50922 126745 45879 0 3 0x82 wait syz-executor 20985 99629 93215 0 2 0x2 ifconfig 93215 231245 12594 0 3 0x10008a sigsusp sh 41802 405373 29457 0 2 0 syz-executor 18850 127001 21019 0 2 0 syz-executor 61864 334462 2421 0 3 0x80 wait syz-executor 29457 74990 45879 0 3 0x82 wait syz-executor 2421 302123 45879 0 3 0x82 wait syz-executor 21019 242481 45879 0 3 0x82 wait syz-executor 83937 48508 46373 0 3 0x80 ppwait syz-executor 46373 393201 45879 0 3 0x82 wait syz-executor 89921 209172 5095 0 2 0 syz-executor 26360 163867 3484 0 3 0x80 wait syz-executor 5095 57377 45879 0 3 0x82 wait syz-executor 3484 48469 45879 0 3 0x82 wait syz-executor 31153 496355 73827 0 3 0x80 ppwait syz-executor 73827 366408 45879 0 3 0x82 wait syz-executor 96394 131546 1 0 3 0x80 wait syz-executor 12594 498681 1 0 3 0x80 wait syz-executor 63173 461629 1 0 7 0 syz-executor 74221 289733 85902 32767 2 0x4081010 syz-executor 74221 361507 85902 32767 3 0x4003010 suspend syz-executor 85902 514557 1 32767 3 0x90 wait syz-executor 23421 493958 0 0 3 0x14200 bored sosplice 33695 438272 31005 0 2 0x100082 ndp 31005 98951 36865 0 3 0x10008a sigsusp sh 36865 269914 1 0 3 0x80 wait syz-executor 45879 306324 24103 0 3 0x82 kqread syz-executor 24103 518368 11930 0 3 0x10008a sigsusp ksh 11930 521486 32946 0 3 0x98 kqread sshd-session 32946 110658 52089 0 3 0x92 kqread sshd-session 82673 518731 1 0 3 0x100083 ttyin getty 52089 365543 1 0 3 0x88 kqread sshd 99351 360041 85541 73 3 0x1100090 kqread syslogd 85541 521621 1 0 3 0x100082 sbwait syslogd 69594 199447 1 0 3 0x100080 kqread resolvd 94512 215561 48605 77 2 0x100012 dhcpleased 43017 180403 48605 77 3 0x100092 kqread dhcpleased 48605 121071 1 0 3 0x80 kqread dhcpleased 91932 106307 0 0 3 0x14200 bored smr 72523 367248 0 0 2 0x14200 zerothread 79947 404344 0 0 3 0x14200 aiodoned aiodoned 68316 365239 0 0 3 0x14200 syncer update 95198 332787 0 0 3 0x14200 cleaner cleaner 43853 520434 0 0 2 0x14200 reaper 92819 204551 0 0 3 0x14200 pgdaemon pagedaemon 64843 299332 0 0 3 0x14200 bored viomb 74630 70492 0 0 3 0x40014200 acpi0 acpi0 26533 294945 0 0 3 0x40014200 idle1 11368 430729 0 0 3 0x14200 bored softnet3 92065 102394 0 0 3 0x14200 bored softnet2 7573 163407 0 0 2 0x14200 softnet1 32124 521928 0 0 2 0x14200 softnet0 8101 331586 0 0 3 0x14200 bored systqmp 45212 22235 0 0 3 0x14200 bored systq 78513 7489 0 0 3 0x14200 tmoslp softclockmp 4074 2135 0 0 3 0x40014200 tmoslp softclock 96990 161610 0 0 3 0x40014200 idle0 1 411873 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 58198 (ifconfig) thread 0xffff8000ffff4f50 (133448) exclusive rwlock clonelk r = 0 (0xffffffff83431ae0) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 if_clone_destroy+0x67 #3 ifioctl+0x5c5 #4 sys_ioctl+0x67c #5 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #5 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8356cc88) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 __mp_acquire_count+0x58 #2 mi_switch+0x658 sys/kern/sched_bsd.c:460 #3 sleep_finish+0x219 sys/kern/kern_synch.c:416 #4 rw_enter+0x348 sys/kern/kern_rwlock.c:285 #5 if_clone_destroy+0x67 #6 ifioctl+0x5c5 #7 sys_ioctl+0x67c #8 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #8 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 43853 (reaper) thread 0xffff800029fd8cb0 (520434) exclusive rwlock vmmaplk r = 0 (0xfffffd806c905998) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 vm_map_lock_ln+0x143 sys/uvm/uvm_map.c:5252 #3 uvm_map_teardown+0x5e sys/uvm/uvm_map.c:2466 #4 uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 #5 reaper+0x246 sys/kern/kern_exit.c:480 #6 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10221 10026K 10035K 166960K 12474 0 pcb 17 20K 22K 166960K 25 0 rtable 112 3K 7K 166960K 12709 0 pf 29 16K 16K 166960K 822 0 ifaddr 25 7K 11K 166960K 1580 0 ifgroup 46 2K 2K 166960K 1621 0 sysctl 4 1K 5K 166960K 10 0 counters 62 36K 36K 166960K 844 0 ioctlops 0 0K 2K 166960K 717 0 iov 0 0K 33K 166960K 1374 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1519 95K 96K 166960K 9745 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 207 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 617 0 dirhash 18 3K 4K 166960K 306 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 35 133K 209K 166960K 16431 0 sigio 0 0K 0K 166960K 484 0 proc 72 103K 189K 166960K 12332 0 subproc 169 10K 16K 166960K 6578 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 2814 0 in_multi 40 3K 7K 166960K 4764 0 ether_multi 1 0K 0K 166960K 105 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 283 1261K 1261K 166960K 283 0 exec 0 0K 1K 166960K 7743 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 276 132K 174K 166960K 130725 0 UVM aobj 131 6K 7K 166960K 150 0 pinsyscall 57 114K 154K 166960K 27956 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 837 0 NDP 10 0K 2K 166960K 1170 0 temp 103 6825K 6952K 166960K 125230 0 kqueue 13 20K 36K 166960K 2025 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 2301 0 2297 16 15 1 3 0 8 0 rtentry 112 4416 0 4367 16 14 2 4 0 8 0 unpcb 144 13086 0 13069 97 96 1 10 0 8 0 syncache 336 175 0 175 35 35 0 1 0 8 0 tcpqe 32 89 0 89 32 32 0 1 0 8 0 tcpcb 808 8721 0 8715 186 185 1 16 0 8 0 arp 120 786 0 779 1 0 1 1 0 8 0 ipq 40 69 0 69 6 6 0 1 0 8 0 ipqe 40 741 0 741 6 6 0 1 0 8 0 inpcb 336 20115 0 20104 235 233 2 22 0 8 0 nd6 136 1289 0 1282 3 2 1 2 0 8 0 kcovpl 48 506 0 493 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 17764 0 17542 196 178 18 34 0 8 3 art_table 32 17765 0 17542 10 7 3 5 0 8 0 art_node 16 4415 0 4370 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 611 0 601 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 220 0 195 9 5 4 4 0 8 0 dino2pl 256 18346 0 15670 168 0 168 168 0 8 0 ffsino 272 18346 0 15670 179 0 179 179 0 8 0 nchpl 144 32845 0 30300 95 0 95 95 0 8 0 uvmvnodes 80 9594 0 0 196 0 196 196 0 8 0 vnodes 216 9594 0 0 533 0 533 533 0 8 0 namei 1024 156877 0 156877 37 36 1 2 0 8 1 percpumem 16 436 0 391 1 0 1 1 0 8 0 kstatmem 264 802 0 782 2 0 2 2 0 8 0 scxspl 216 213691 0 213691 56 55 1 8 1 8 1 plimitpl 152 5091 0 5059 3 1 2 2 0 8 0 sigapl 424 15832 0 15763 17 7 10 10 0 8 0 futexpl 64 154147 0 154147 25 25 0 1 0 8 0 knotepl 120 1332 0 0 18 0 18 18 0 8 0 kqueuepl 216 4249 0 4240 44 43 1 5 0 8 0 pipepl 320 3236 0 3194 42 36 6 9 0 8 0 fdescpl 496 15813 0 15766 22 13 9 9 0 8 0 filepl 152 101584 0 101256 126 109 17 22 0 8 0 lockfpl 104 3424 0 3422 2 1 1 2 0 8 0 lockfspl 48 1032 0 1030 1 0 1 1 0 8 0 sessionpl 144 537 0 514 2 0 2 2 0 8 0 pgrppl 48 1317 0 1286 1 0 1 1 0 8 0 ucredpl 104 18588 0 18574 1 0 1 1 0 8 0 zombiepl 144 15766 0 15763 1 0 1 1 0 8 0 processpl 1160 15832 0 15763 8 1 7 7 0 8 0 procpl 648 33168 0 33097 12 4 8 8 0 8 0 srpgc 96 32 0 30 11 10 1 1 0 8 0 sosppl 168 154 0 154 25 25 0 1 0 8 0 sockpl 664 35752 0 35720 324 320 4 24 0 8 0 mcl64k 65536 28 0 0 4 1 3 3 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 599 0 0 32 11 21 32 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 1979 0 0 83 1 82 82 0 8 0 bufpl 280 28764 0 19149 687 0 687 687 0 8 0 anonpl 24 2052455 0 2042151 353 261 92 121 0 185 0 amapchunkpl 152 424867 0 424185 233 199 34 52 0 158 0 amappl16 200 43220 0 42968 301 276 25 38 0 8 0 amappl15 192 15 0 15 5 5 0 1 0 8 0 amappl14 184 1122 0 1111 1 0 1 1 0 8 0 amappl13 176 6 0 5 2 1 1 1 0 8 0 amappl12 168 22686 0 22643 5 2 3 3 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 13 0 11 1 0 1 1 0 8 0 amappl9 144 138 0 137 2 1 1 1 0 8 0 amappl8 136 21 0 19 1 0 1 1 0 8 0 amappl7 128 976 0 964 1 0 1 1 0 8 0 amappl6 120 3979 0 3969 1 0 1 1 0 8 0 amappl5 112 1780 0 1768 1 0 1 1 0 8 0 amappl4 104 1919 0 1902 1 0 1 1 0 8 0 amappl3 96 84262 0 84151 7 2 5 5 0 8 0 amappl2 88 7509 0 7431 4 1 3 3 0 8 0 amappl1 80 110281 0 109657 24 6 18 18 0 8 0 amappl 88 126023 0 125812 10 3 7 7 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 149 0 19 3 0 3 3 0 8 0 uaddrrnd 24 15813 0 15764 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 15813 0 15764 1 0 1 1 0 8 0 vmmpekpl 168 144057 0 143991 5 1 4 5 0 8 0 vmmpepl 168 1025622 0 1023118 341 214 127 141 0 357 1 vmsppl 440 15812 0 15763 20 12 8 8 0 8 0 rwobjpl 56 278801 0 267758 181 20 161 161 0 8 0 pdppl 4096 31633 0 31526 1230 1121 109 139 0 8 2 pvpl 32 55238 0 0 442 3 439 439 0 265 0 pmappl 248 15812 0 15763 7 2 5 5 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2403 0 1808 18 0 18 18 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff8341aff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:590 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:158 __mp_lock(ffffffff8356ca80) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8356ca80) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff8356ca80) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8356ca80) at __mp_lock+0x192 sys/kern/kern_lock.c:144 vn_closefile(fffffd8074927980,ffff8000fffeb6f0) at vn_closefile+0x41 sys/kern/vfs_vnops.c:602 fdrop(fffffd8074927980,ffff8000fffeb6f0) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd8074927980,ffff8000fffeb6f0) at closef+0x192 sys/kern/kern_descrip.c:1258 syscall(ffff80003499e620) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80003499e620) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70d35e3d3280, count: 2 ddb{0}> trace x86_ipi_db(ffffffff8341aff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:590 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:158 __mp_lock(ffffffff8356ca80) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8356ca80) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff8356ca80) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8356ca80) at __mp_lock+0x192 sys/kern/kern_lock.c:144 vn_closefile(fffffd8074927980,ffff8000fffeb6f0) at vn_closefile+0x41 sys/kern/vfs_vnops.c:602 fdrop(fffffd8074927980,ffff8000fffeb6f0) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd8074927980,ffff8000fffeb6f0) at closef+0x192 sys/kern/kern_descrip.c:1258 syscall(ffff80003499e620) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80003499e620) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70d35e3d3280, count: -13 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:437 panic(ffffffff830ea383) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c1b8,ffffffff830e2ac7,13b,ffffffff83079983) at __assert+0x29 tun_clone_destroy(ffff800001179800) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800030c062d0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff80000116c7d8,80206979,ffff800030c062d0,ffff8000ffff4f50) at ifioctl+0x5c5 sys_ioctl(ffff8000ffff4f50,ffff800030c064b0,ffff800030c06400) at sys_ioctl+0x67c syscall(ffff800030c064b0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030c064b0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70e5cd1e8170, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830ea383) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c1b8,ffffffff830e2ac7,13b,ffffffff83079983) at __assert+0x29 tun_clone_destroy(ffff800001179800) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800030c062d0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff80000116c7d8,80206979,ffff800030c062d0,ffff8000ffff4f50) at ifioctl+0x5c5 sys_ioctl(ffff8000ffff4f50,ffff800030c064b0,ffff800030c06400) at sys_ioctl+0x67c syscall(ffff800030c064b0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030c064b0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70e5cd1e8170, count: -9