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 *276875 91139 0 0x2 0 1K ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834fa63e) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835360e2,ffffffff8357cd4e,13f,ffffffff83470975) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff80000160a000) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a2fd080) at if_clone_destroy+0x205 sys/net/if.c:1463 ifioctl(ffff800010fdc5f0,80206979,ffff80002a2fd080,ffff80002a2a3cb8) at ifioctl+0x59d sys/net/if.c:2141 sys_ioctl(ffff80002a2a3cb8,ffff80002a2fd260,ffff80002a2fd1b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a2fd260) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2fd260) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x734fb4bfb170, 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(ffffffff834fa63e) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835360e2,ffffffff8357cd4e,13f,ffffffff83470975) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff80000160a000) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a2fd080) at if_clone_destroy+0x205 sys/net/if.c:1463 ifioctl(ffff800010fdc5f0,80206979,ffff80002a2fd080,ffff80002a2a3cb8) at ifioctl+0x59d sys/net/if.c:2141 sys_ioctl(ffff80002a2a3cb8,ffff80002a2fd260,ffff80002a2fd1b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a2fd260) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2fd260) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x734fb4bfb170, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a2fce40 rbx 0xffff80002998ee0f rdx 0 rcx 0xffff80002a2a3cb8 rax 0xffff80002998dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6a536847f8742e0b r11 0xa9d4f24f6fb921a9 r12 0xffff80002998ec10 r13 0 r14 0 r15 0x1 rip 0xffffffff82a75485 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a2fce30 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) tid=276875 pid=91139 tcnt=1 stat=onproc flags process=2 proc=0 runpri=32, usrpri=66, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003afabca8,0xffff80002a2a2570 process=0xffff80002a2b8500 user=0xffff80002a2f8000, vmspace=0xffffee806cdcc5d8 estcpu=16, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 69742 123982 43407 0 3 0x2 0 clonelk ifconfig 52504 296746 26159 0 3 0x2 0 clonelk ifconfig 43407 364210 6586 0 3 0x100002 0x88 sigsusp sh 26159 431597 42945 0 3 0x100002 0x88 sigsusp sh 42945 524228 11681 0 3 0x2 0x80 wait syz-executor 6586 359848 11681 0 3 0x2 0x80 wait syz-executor 95442 357226 2513 0 3 0x2 0 clonelk ifconfig 2513 471828 98437 0 3 0x100002 0x88 sigsusp sh *91139 276875 28151 0 7 0x2 0 ifconfig 28151 234546 55512 0 3 0x100002 0x88 sigsusp sh 98437 153207 11681 0 3 0x2 0x80 wait syz-executor 55512 284080 11681 0 3 0x2 0x80 wait syz-executor 67901 507199 0 0 3 0x14000 0x280 nfsidl nfsio 59036 444582 0 0 3 0x14000 0x280 nfsidl nfsio 71673 121305 0 0 3 0x14000 0x280 nfsidl nfsio 38093 108063 0 0 3 0x14000 0x280 nfsidl nfsio 55842 51364 0 0 3 0x14000 0x280 nfsidl nfsio 88713 87962 0 0 3 0x14000 0x280 nfsidl nfsio 58956 326811 0 0 3 0x14000 0x280 nfsidl nfsio 64202 285681 0 0 3 0x14000 0x280 nfsidl nfsio 27578 218604 0 0 3 0x14000 0x280 nfsidl nfsio 327 367997 0 0 3 0x14000 0x280 nfsidl nfsio 44616 477867 0 0 3 0x14000 0x280 nfsidl nfsio 34207 357796 0 0 3 0x14000 0x280 nfsidl nfsio 61011 259056 0 0 3 0x14000 0x280 nfsidl nfsio 81972 36343 0 0 3 0x14000 0x280 nfsidl nfsio 86306 436061 0 0 3 0x14000 0x280 nfsidl nfsio 68306 439618 0 0 3 0x14000 0x280 nfsidl nfsio 99867 213366 0 0 3 0x14000 0x280 nfsidl nfsio 27793 288767 0 0 3 0x14000 0x280 nfsidl nfsio 72430 406936 0 0 3 0x14000 0x280 nfsidl nfsio 87584 276690 0 0 3 0x14000 0x280 nfsidl nfsio 53434 155689 11681 0 3 0x2 0x80 piperd syz-executor 81027 179543 11681 0 3 0x2 0x80 piperd syz-executor 11681 329290 80271 0 3 0x2 0x80 wait syz-executor 80271 359692 79190 0 3 0x100002 0x88 sigsusp ksh 79190 343984 14672 0 3 0x10 0x88 kqread sshd-session 14672 511713 54601 0 3 0x12 0x80 kqread sshd-session 31696 297616 1 0 3 0x100003 0x80 ttyin getty 54601 75497 1 0 3 0 0x88 kqread sshd 87127 268590 24982 74 3 0x1100012 0x80 bpf pflogd 24982 279123 1 0 3 0 0x80 sbwait pflogd 42229 247979 22524 73 3 0x1100010 0x80 kqread syslogd 22524 93922 1 0 3 0x100002 0x80 sbwait syslogd-parent 70598 7757 1 0 3 0x100000 0x80 kqread resolvd 17855 285577 87071 77 2 0x100012 0x80 dhcpleased 2691 486180 87071 77 3 0x100012 0x80 kqread dhcpleased 87071 65460 1 0 3 0 0x80 kqread dhcpleased 52159 206680 0 0 3 0x14000 0x200 bored smr 48221 385595 0 0 2 0x14000 0x200 zerothread 14196 373452 0 0 3 0x14000 0x200 aiodoned aiodoned 83107 4221 0 0 3 0x14000 0x200 syncer update 43531 135196 0 0 3 0x14000 0x200 cleaner cleaner 36476 129012 0 0 3 0x14000 0x200 reaper reaper 37696 477239 0 0 3 0x14000 0x200 pgdaemon pagedaemon 35492 66789 0 0 3 0x14000 0x200 bored viomb 56909 403458 0 0 3 0x14000 0x40000200 acpi0 acpi0 98331 341287 0 0 3 0x14000 0x40000200 idle1 96720 423073 0 0 3 0x14000 0x200 bored softnet1 12652 261222 0 0 2 0x14000 0x200 softnet0 98949 257136 0 0 3 0x14000 0x200 smrbar systqmp 24209 422313 0 0 3 0x14000 0x200 bored systq 78692 395756 0 0 3 0x14000 0x200 tmoslp softclockmp 54501 306377 0 0 3 0x14000 0x40000200 tmoslp softclock 71722 11000 0 0 3 0x14000 0x40000200 idle0 1 329487 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex pvpl r = 0 (0xffffffff83a64240) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1aa sys/kern/kern_lock.c:-1 #2 pool_cache_put+0x14d pl_enter_try sys/kern/subr_pool.c:109 [inline] #2 pool_cache_put+0x14d pool_list_enter sys/kern/subr_pool.c:1802 [inline] #2 pool_cache_put+0x14d pool_cache_list_free sys/kern/subr_pool.c:1843 [inline] #2 pool_cache_put+0x14d sys/kern/subr_pool.c:1946 #3 pmap_do_remove+0x802 sys/arch/amd64/amd64/pmap.c:-1 #4 uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 #5 uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] #5 uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 #6 exit1+0x71b sys/kern/kern_exit.c:260 #7 sys_exit+0x1a sys/kern/kern_exit.c:-1 #8 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xb17 sys/arch/amd64/amd64/trap.c:804 #9 Xsyscall+0x128 Process 91139 (ifconfig) thread 0xffff80002a2a3cb8 (276875) exclusive rwlock clonelk r = 0 (0xffffffff83964968) #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+0x42c sys/kern/kern_rwlock.c:320 #2 if_clone_destroy+0x93 sys/net/if.c:-1 #3 ifioctl+0x59d sys/net/if.c:2141 #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:804 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a74340) #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:2141 #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:804 #8 Xsyscall+0x128 Process 98949 (systqmp) thread 0xffff800045ffe000 (257136) shared rwlock systqmp r = 0 (0xffffffff839420b8) #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+0x11a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11042 12076K 12178K 166960K 12297 0 pcb 17 12K 12K 166960K 42 0 rtable 101 4K 8K 166960K 1193 0 pf 26 16K 24K 166960K 125 0 ifaddr 23 3K 7K 166960K 168 0 ifgroup 39 1K 2K 166960K 185 0 sysctl 3 1K 9K 166960K 8 0 counters 62 36K 37K 166960K 142 0 ioctlops 0 0K 4K 166960K 1552 0 iov 0 0K 3K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 81K 82K 166960K 1843 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 17 61K 89K 166960K 715 0 sigio 0 0K 0K 166960K 2 0 proc 99 180K 180K 166960K 1388 0 subproc 63 3K 4K 166960K 369 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 17 0 in_multi 41 2K 6K 166960K 408 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 17 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 780 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 189 161K 169K 166960K 6558 0 UVM aobj 9 2K 2K 166960K 9 0 pinsyscall 42 84K 106K 166960K 2599 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 8 0K 2K 166960K 119 0 temp 39 9126K 9190K 166960K 18954 0 kqueue 13 20K 30K 166960K 50 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 130 0 127 2 0 2 2 0 8 1 rtentry 176 419 0 375 6 0 6 6 0 8 2 unpcb 144 104 0 87 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 38 0 32 1 0 1 1 0 8 0 arp 136 74 0 66 1 0 1 1 0 8 0 inpcb 328 280 0 267 2 0 2 2 0 8 0 nd6 152 108 0 99 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 41 0 34 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 6 0 6 1 0 1 1 0 8 1 pffrag 232 5 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 6 0 2 1 0 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 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 40 0 0 1 0 1 1 0 8 0 pfstkey 128 40 0 0 2 0 2 2 0 8 0 pfstate 448 40 0 0 5 0 5 5 0 8 0 pfrule 1360 24 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1694 0 1452 32 5 27 32 0 8 6 art_table 40 1695 0 1452 6 0 6 6 0 8 2 art_node 32 419 0 361 1 0 1 1 0 8 0 semapl 72 7 0 0 1 0 1 1 0 8 0 shmpl 120 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1954 0 413 97 0 97 97 0 8 0 ffsino 296 1954 0 413 119 0 119 119 0 8 0 nchpl 144 2347 0 527 68 0 68 68 0 8 0 vnodes 216 2386 0 0 133 0 133 133 0 8 0 namei 1024 13173 0 13173 4 3 1 3 0 8 1 percpumem 16 87 0 40 1 0 1 1 0 8 0 kstatmem 264 97 0 78 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 7918 0 7918 9 3 6 8 1 8 6 plimitpl 152 79 0 62 1 0 1 1 0 8 0 sigapl 424 973 0 905 8 0 8 8 0 8 0 knotepl 120 365 0 0 12 0 12 12 0 8 0 kqueuepl 224 73 0 64 2 1 1 2 0 8 0 pipepl 344 234 0 207 3 0 3 3 0 8 0 fdescpl 528 937 0 906 3 0 3 3 0 8 0 filepl 160 4559 0 4365 13 1 12 13 0 8 2 lockfpl 104 56 0 54 1 0 1 1 0 8 0 lockfspl 48 25 0 23 1 0 1 1 0 8 0 sessionpl 144 68 0 59 1 0 1 1 0 8 0 pgrppl 48 110 0 93 1 0 1 1 0 8 0 ucredpl 104 1697 0 1684 1 0 1 1 0 8 0 zombiepl 144 907 0 905 1 0 1 1 0 8 0 processpl 1240 973 0 905 6 0 6 6 0 8 0 procpl 664 1273 0 1205 7 0 7 7 0 8 0 sockpl 752 525 0 492 7 0 7 7 0 8 3 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k128 9344 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 122 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 19 0 0 3 0 3 3 0 8 0 mextrefs 64 19 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 241 0 0 16 0 16 16 0 8 0 bufpl 272 2758 0 94 178 0 178 178 0 8 0 anonpl 32 5195 0 0 42 0 42 42 0 247 0 amapchunkpl 152 18029 0 17717 22 1 21 22 0 158 6 amappl16 200 1913 0 1902 5 3 2 5 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 827 0 821 1 0 1 1 0 8 0 amappl13 176 170 0 158 1 0 1 1 0 8 0 amappl12 168 1294 0 1267 2 0 2 2 0 8 0 amappl11 160 14 0 14 1 1 0 1 0 8 0 amappl10 152 69 0 57 1 0 1 1 0 8 0 amappl9 144 283 0 283 1 1 0 1 0 8 0 amappl8 136 214 0 207 1 0 1 1 0 8 0 amappl7 128 239 0 226 1 0 1 1 0 8 0 amappl6 120 292 0 286 1 0 1 1 0 8 0 amappl5 112 253 0 240 1 0 1 1 0 8 0 amappl4 104 370 0 353 1 0 1 1 0 8 0 amappl3 96 3774 0 3687 3 0 3 3 0 8 0 amappl2 88 555 0 497 2 0 2 2 0 8 0 amappl1 80 14481 0 13876 15 1 14 15 0 8 1 amappl 88 5367 0 5253 4 0 4 4 0 92 0 uvmvnodes 80 110 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 937 0 906 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 937 0 906 1 0 1 1 0 8 0 vmmpekpl 168 8888 0 8826 4 0 4 4 0 8 0 vmmpepl 168 69412 0 67749 88 0 88 88 0 357 11 vmsppl 488 936 0 905 6 1 5 5 0 8 0 rwobjpl 80 22019 0 20990 24 1 23 24 0 8 0 pdppl 4096 1882 0 1810 108 34 74 84 0 8 2 pvpl 32 11310 0 0 93 1 92 92 0 265 0 pmappl 256 936 0 905 4 1 3 3 0 8 1 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 478 0 47 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83945ff0) 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(ffffffff83a73b40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a73b40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x14e sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 __mp_lock(ffffffff83a73b40) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a73b40) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 uvn_detach(ffffee806f230698) at uvn_detach+0x28 sys/uvm/uvm_vnode.c:292 uvm_unmap_detach(ffff80002a2b1aa0,0) at uvm_unmap_detach+0x15b sys/uvm/uvm_map.c:1370 uvm_map_teardown(ffffee806cdcc208) at uvm_map_teardown+0x360 sys/uvm/uvm_map.c:2536 exit1(ffff80003afab248,43,0,1) at exit1+0x71b sys/kern/kern_exit.c:260 sys_exit(ffff80003afab248,ffff80002a2b1c70,ffff80002a2b1bc0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 end trace frame: 0xffff80002a2b1c60, count: 0 ddb{0}> trace x86_ipi_db(ffffffff83945ff0) 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(ffffffff83a73b40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a73b40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x14e sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 __mp_lock(ffffffff83a73b40) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a73b40) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 uvn_detach(ffffee806f230698) at uvn_detach+0x28 sys/uvm/uvm_vnode.c:292 uvm_unmap_detach(ffff80002a2b1aa0,0) at uvm_unmap_detach+0x15b sys/uvm/uvm_map.c:1370 uvm_map_teardown(ffffee806cdcc208) at uvm_map_teardown+0x360 sys/uvm/uvm_map.c:2536 exit1(ffff80003afab248,43,0,1) at exit1+0x71b sys/kern/kern_exit.c:260 sys_exit(ffff80003afab248,ffff80002a2b1c70,ffff80002a2b1bc0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a2b1c70) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2b1c70) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e4ad7194990, count: -16 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(ffffffff834fa63e) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835360e2,ffffffff8357cd4e,13f,ffffffff83470975) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff80000160a000) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a2fd080) at if_clone_destroy+0x205 sys/net/if.c:1463 ifioctl(ffff800010fdc5f0,80206979,ffff80002a2fd080,ffff80002a2a3cb8) at ifioctl+0x59d sys/net/if.c:2141 sys_ioctl(ffff80002a2a3cb8,ffff80002a2fd260,ffff80002a2fd1b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a2fd260) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2fd260) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x734fb4bfb170, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834fa63e) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835360e2,ffffffff8357cd4e,13f,ffffffff83470975) at __assert+0x29 sys/kern/subr_prf.c:-1 tun_clone_destroy(ffff80000160a000) at tun_clone_destroy+0x38a if_clone_destroy(ffff80002a2fd080) at if_clone_destroy+0x205 sys/net/if.c:1463 ifioctl(ffff800010fdc5f0,80206979,ffff80002a2fd080,ffff80002a2a3cb8) at ifioctl+0x59d sys/net/if.c:2141 sys_ioctl(ffff80002a2a3cb8,ffff80002a2fd260,ffff80002a2fd1b0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80002a2fd260) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2fd260) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x734fb4bfb170, count: -9