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 423943 39386 32767 0x10 0 0 syz-executor *329473 1546 0 0x2 0 1K ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e302a) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c812,ffffffff830e5d93,13b,ffffffff8307c8ef) at __assert+0x29 tun_clone_destroy(ffff800001595000) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800033bf9ec0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff8000016f9228,80206979,ffff800033bf9ec0,ffff800034b9aaa8) at ifioctl+0x5c5 sys_ioctl(ffff800034b9aaa8,ffff800033bfa0a0,ffff800033bf9ff0) at sys_ioctl+0x67c syscall(ffff800033bfa0a0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800033bfa0a0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75116e288fb0, 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(ffffffff830e302a) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c812,ffffffff830e5d93,13b,ffffffff8307c8ef) at __assert+0x29 tun_clone_destroy(ffff800001595000) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800033bf9ec0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff8000016f9228,80206979,ffff800033bf9ec0,ffff800034b9aaa8) at ifioctl+0x5c5 sys_ioctl(ffff800034b9aaa8,ffff800033bfa0a0,ffff800033bf9ff0) at sys_ioctl+0x67c syscall(ffff800033bfa0a0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800033bfa0a0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75116e288fb0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800033bf9c70 rbx 0xffff800029b7cdcf rdx 0 rcx 0xffff800034b9aaa8 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x88144c564507f850 r11 0x1af1a661bfbb80b5 r12 0xffff800029b7cbd0 r13 0 r14 0 r15 0x1 rip 0xffffffff81f08875 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800033bf9c60 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) tid=329473 pid=1546 tcnt=1 stat=onproc flags process=2 proc=0 runpri=53, usrpri=53, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800034b9bc60,0xffff800034b9b4d8 process=0xffff8000371f1b38 user=0xffff800033bf5000, vmspace=0xfffffd807ae1cc20 estcpu=3, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39386 423943 30296 32767 7 0x10 syz-executor 39386 268940 30296 32767 3 0x4000010 biowait syz-executor 39050 47190 96102 32767 2 0x10 syz-executor 39050 412131 96102 32767 3 0x4000090 kqpoll syz-executor 39050 58343 96102 32767 2 0x4000010 syz-executor * 1546 329473 74422 0 7 0x2 ifconfig 74422 439825 9624 0 3 0x10008a sigsusp sh 9624 501820 69722 0 3 0x80 wait syz-executor 60542 365313 31963 32767 3 0x90 nanoslp syz-executor 60542 17907 31963 32767 3 0x4000090 kqread syz-executor 60542 186115 31963 32767 3 0x4000090 fsleep syz-executor 4099 313893 3478 32767 2 0x10 syz-executor 4099 311030 3478 32767 3 0x4000090 fsleep syz-executor 65140 222424 32099 0 2 0x100002 arp 32099 400228 97403 0 3 0x10008a sigsusp sh 69722 315895 55204 0 3 0x82 wait syz-executor 86250 309722 75265 0 2 0x2 ndp 31504 350653 48159 0 2 0x100082 ndp 75265 62680 50677 0 3 0x10008a sigsusp sh 48159 109493 46648 0 3 0x10008a sigsusp sh 80900 155495 25009 0 2 0x100002 sh 3478 90244 19964 32767 3 0x90 nanoslp syz-executor 96102 491744 23847 32767 3 0x90 nanoslp syz-executor 30296 230773 29232 32767 3 0x90 nanoslp syz-executor 31963 394406 66858 32767 3 0x90 nanoslp syz-executor 25009 398114 32663 0 3 0x80 wait syz-executor 23847 202655 55204 0 3 0x82 wait syz-executor 19964 453595 55204 0 3 0x82 wait syz-executor 32663 103007 55204 0 3 0x82 wait syz-executor 29232 76156 55204 0 3 0x82 wait syz-executor 66858 267077 55204 0 3 0x82 wait syz-executor 46648 453423 66547 0 3 0x80 wait syz-executor 66547 445263 55204 0 3 0x82 wait syz-executor 97403 394894 67776 0 3 0x80 wait syz-executor 67776 486199 55204 0 3 0x82 wait syz-executor 50677 462367 1 0 3 0x80 wait syz-executor 53818 292357 25058 32767 3 0x3010 suspend syz-executor 53818 466412 25058 32767 2 0x4081010 syz-executor 25058 132130 1 32767 3 0x90 wait syz-executor 87698 86559 13229 0 2 0x100082 arp 13229 266866 14128 0 3 0x10008a sigsusp sh 14128 251336 1 0 3 0x80 wait syz-executor 94492 133216 0 0 3 0x14200 bored sosplice 55204 126340 57542 0 3 0x82 kqread syz-executor 57542 194994 23433 0 3 0x10008a sigsusp ksh 23433 478780 48398 0 3 0x98 kqread sshd-session 48398 320665 66119 0 3 0x92 kqread sshd-session 56509 161103 1 0 3 0x100083 ttyin getty 66119 102367 1 0 3 0x88 kqread sshd 64694 245367 14411 73 3 0x1100090 kqread syslogd 14411 461950 1 0 3 0x100082 sbwait syslogd 8177 458570 1 0 3 0x100080 kqread resolvd 76596 436321 82271 77 2 0x100092 dhcpleased 35994 69025 82271 77 3 0x100092 kqread dhcpleased 82271 242190 1 0 3 0x80 kqread dhcpleased 78750 168399 0 0 3 0x14200 bored smr 49818 445121 0 0 2 0x14200 zerothread 44507 143965 0 0 3 0x14200 aiodoned aiodoned 46707 230778 0 0 3 0x14200 syncer update 13681 48405 0 0 3 0x14200 cleaner cleaner 17331 198536 0 0 3 0x14200 reaper reaper 65041 370144 0 0 3 0x14200 pgdaemon pagedaemon 39481 216404 0 0 3 0x14200 bored viomb 90900 405 0 0 3 0x40014200 acpi0 acpi0 14233 187999 0 0 3 0x40014200 idle1 98040 260460 0 0 3 0x14200 bored softnet3 41970 204673 0 0 3 0x14200 bored softnet2 52964 508639 0 0 3 0x14200 bored softnet1 17897 453527 0 0 3 0x14200 bored softnet0 67225 297199 0 0 3 0x14200 bored systqmp 34198 277019 0 0 3 0x14200 bored systq 33661 521421 0 0 3 0x14200 tmoslp softclockmp 64105 64941 0 0 3 0x40014200 tmoslp softclock 24751 79850 0 0 3 0x40014200 idle0 1 94682 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 39386 (syz-executor) thread 0xffff800034b8fca8 (268940) exclusive rrwlock inode r = 0 (0xfffffd8066a7b5f0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:169 #5 ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1230 #6 ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 #8 VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 #9 domkdirat+0x179 sys/kern/vfs_syscalls.c:3099 #10 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #10 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8056e4aa28) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3084 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 1546 (ifconfig) thread 0xffff800034b9aaa8 (329473) exclusive rwlock clonelk r = 0 (0xffffffff83425010) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 if_clone_destroy+0x67 #2 ifioctl+0x5c5 #3 sys_ioctl+0x67c #4 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #4 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83541f98) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 ifioctl+0x5b4 sys/net/if.c:2061 #2 sys_ioctl+0x67c #3 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #3 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10244 14127K 14131K 166960K 14777 0 pcb 17 24K 28K 166960K 27 0 rtable 206 5K 7K 166960K 41571 0 pf 31 16K 16K 166960K 2348 0 ifaddr 39 22K 31K 166960K 4637 0 ifgroup 50 2K 2K 166960K 4669 0 sysctl 4 1K 5K 166960K 89 0 counters 64 36K 36K 166960K 2366 0 ioctlops 0 0K 2K 166960K 3080 0 iov 0 0K 36K 166960K 8807 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1533 96K 96K 166960K 31462 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 1677 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 3636 0 dirhash 24 4K 5K 166960K 2118 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 37 141K 213K 166960K 89853 0 sigio 0 0K 0K 166960K 3650 0 proc 65 91K 201K 166960K 41432 0 subproc 143 8K 17K 166960K 16016 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 23068 0 in_multi 87 6K 7K 166960K 16597 0 ether_multi 1 0K 0K 166960K 648 0 mrt 1 0K 0K 166960K 20 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 403 1791K 1791K 166960K 403 0 exec 0 0K 1K 166960K 32275 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 305 101K 182K 166960K 794780 0 UVM aobj 131 6K 8K 166960K 150 0 pinsyscall 61 122K 164K 166960K 125786 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 6627 0 NDP 22 1K 2K 166960K 3454 0 temp 87 6824K 6952K 166960K 647511 0 kqueue 13 20K 37K 166960K 15532 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 13868 0 13862 93 92 1 4 0 8 0 rtentry 112 13611 0 13515 17 14 3 4 0 8 0 unpcb 144 93062 0 93047 355 354 1 10 0 8 0 syncache 336 1753 0 1753 60 59 1 1 0 8 1 tcpqe 32 684 0 684 85 85 0 1 0 8 0 tcpcb 808 62542 0 62511 488 479 9 27 0 8 0 arp 120 2364 0 2346 1 0 1 1 0 8 0 ipq 40 719 0 719 10 10 0 1 0 8 0 ipqe 40 16599 0 16599 10 10 0 1 0 8 0 inpcb 336 138577 0 138541 501 489 12 28 0 8 0 ip6q 72 41 0 41 23 23 0 1 0 8 0 ip6af 40 81 0 81 23 23 0 1 0 8 0 nd6 136 4321 0 4302 19 18 1 2 0 8 0 kcovpl 48 1232 0 1221 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 55454 0 55043 268 242 26 33 0 8 0 art_table 32 55455 0 55043 21 17 4 5 0 8 0 art_node 16 13609 0 13520 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3595 0 3585 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 1449 0 1411 36 31 5 6 0 8 0 dino2pl 256 119780 0 113796 375 0 375 375 0 8 0 ffsino 272 119780 0 113796 399 0 399 399 0 8 0 nchpl 144 223512 0 220290 123 3 120 120 0 8 0 uvmvnodes 80 12510 0 0 256 0 256 256 0 8 0 vnodes 216 12510 0 0 695 0 695 695 0 8 0 namei 1024 932400 0 932399 55 54 1 2 0 8 0 percpumem 16 1197 0 1151 1 0 1 1 0 8 0 kstatmem 264 2324 0 2302 3 1 2 2 0 8 0 scxspl 216 800639 0 800638 196 195 1 8 1 8 0 plimitpl 152 29812 0 29784 2 0 2 2 0 8 0 sigapl 424 88717 0 88648 18 8 10 10 0 8 1 futexpl 64 1116708 0 1116706 27 26 1 1 0 8 0 knotepl 120 3327 0 0 25 0 25 25 0 8 0 kqueuepl 216 33033 0 33022 278 277 1 12 0 8 0 pipepl 320 18594 0 18558 205 199 6 17 0 8 0 fdescpl 496 88698 0 88649 28 19 9 9 0 8 0 filepl 152 660359 0 660063 395 377 18 24 0 8 0 lockfpl 104 28110 0 28107 18 17 1 2 0 8 0 lockfspl 48 7845 0 7842 1 0 1 1 0 8 0 sessionpl 144 2194 0 2175 2 0 2 2 0 8 0 pgrppl 48 5364 0 5337 1 0 1 1 0 8 0 ucredpl 104 127734 0 127718 1 0 1 1 0 8 0 zombiepl 144 88650 0 88648 1 0 1 1 0 8 0 processpl 1160 88717 0 88648 9 2 7 7 0 8 0 procpl 648 215113 0 215037 27 19 8 8 0 8 0 srpgc 96 51 0 49 22 21 1 1 0 8 0 sosppl 168 1125 0 1121 26 25 1 1 0 8 0 sockpl 664 247827 0 247768 778 765 13 31 0 8 0 mcl64k 65536 112 0 0 4 1 3 3 0 8 0 mcl16k 16384 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 66 0 0 7 4 3 6 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 34 0 0 3 0 3 3 0 8 0 mcl2k 2048 1290 0 0 29 10 19 29 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 10266 0 0 556 1 555 555 0 8 0 bufpl 280 159986 0 147475 894 0 894 894 0 8 0 anonpl 24 10472632 0 10451104 858 699 159 187 0 185 0 amapchunkpl 152 2596338 0 2595472 680 640 40 56 0 158 0 amappl16 200 239686 0 238845 1026 969 57 75 0 8 0 amappl15 192 23 0 23 17 17 0 1 0 8 0 amappl14 184 4490 0 4477 1 0 1 1 0 8 0 amappl13 176 75 0 74 12 11 1 1 0 8 0 amappl12 168 108607 0 108557 16 13 3 3 0 8 0 amappl11 160 53 0 42 1 0 1 1 0 8 0 amappl10 152 18 0 17 2 1 1 1 0 8 0 amappl9 144 159 0 158 2 1 1 1 0 8 0 amappl8 136 21 0 19 1 0 1 1 0 8 0 amappl7 128 3486 0 3472 1 0 1 1 0 8 0 amappl6 120 11625 0 11615 1 0 1 1 0 8 0 amappl5 112 5747 0 5735 1 0 1 1 0 8 0 amappl4 104 7944 0 7924 1 0 1 1 0 8 0 amappl3 96 536822 0 536684 7 2 5 5 0 8 0 amappl2 88 28792 0 28712 6 3 3 3 0 8 0 amappl1 80 607669 0 607008 59 42 17 24 0 8 0 amappl 88 773685 0 773446 11 4 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 88698 0 88649 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 88698 0 88649 1 0 1 1 0 8 0 vmmpekpl 168 791209 0 791128 6 1 5 5 0 8 0 vmmpepl 168 5865077 0 5861881 1199 967 232 285 0 357 55 vmsppl 440 88697 0 88649 19 11 8 8 0 8 0 rwobjpl 56 1497146 0 1482566 307 96 211 211 0 8 0 pdppl 4096 177403 0 177298 2684 2563 121 143 0 8 16 pvpl 32 45971 0 0 348 1 347 347 0 265 0 pmappl 248 88697 0 88649 8 3 5 5 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 5470 0 3935 45 0 45 45 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff834c6ff0) 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+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff83541d90) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83541d90) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff80002a08cda0,ffff800000079f80) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x7f78726803c0, count: 8 ddb{0}> trace x86_ipi_db(ffffffff834c6ff0) 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+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff83541d90) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83541d90) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff80002a08cda0,ffff800000079f80) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x7f78726803c0, count: -7 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(ffffffff830e302a) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c812,ffffffff830e5d93,13b,ffffffff8307c8ef) at __assert+0x29 tun_clone_destroy(ffff800001595000) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800033bf9ec0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff8000016f9228,80206979,ffff800033bf9ec0,ffff800034b9aaa8) at ifioctl+0x5c5 sys_ioctl(ffff800034b9aaa8,ffff800033bfa0a0,ffff800033bf9ff0) at sys_ioctl+0x67c syscall(ffff800033bfa0a0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800033bfa0a0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75116e288fb0, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e302a) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309c812,ffffffff830e5d93,13b,ffffffff8307c8ef) at __assert+0x29 tun_clone_destroy(ffff800001595000) at tun_clone_destroy+0x38a sys/net/if_tun.c:315 if_clone_destroy(ffff800033bf9ec0) at if_clone_destroy+0x1d7 sys/net/if.c:1384 ifioctl(ffff8000016f9228,80206979,ffff800033bf9ec0,ffff800034b9aaa8) at ifioctl+0x5c5 sys_ioctl(ffff800034b9aaa8,ffff800033bfa0a0,ffff800033bf9ff0) at sys_ioctl+0x67c syscall(ffff800033bfa0a0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800033bfa0a0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75116e288fb0, count: -9