panic: free: size too large 100 > 16 (0xffff800000c40740) type rtable Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff835040b8) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40740,5,64) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff6006ce45438) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001616c00,400004,ffff800001616c78,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d in_ifscrub sys/netinet/in.c:-1 [inline] in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d sys/netinet/in.c:751 in_ifdetach(ffff80000160b800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3ecb50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c3ecc10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6007d3dd978,7,fffff600097fd680,ffff80002a22a548) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 end trace frame: 0xffff80003c3ecd30, count: 0 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: free: size too large 100 > 16 (0xffff800000c40740) type rtable 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(ffffffff835040b8) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40740,5,64) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff6006ce45438) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001616c00,400004,ffff800001616c78,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d in_ifscrub sys/netinet/in.c:-1 [inline] in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d sys/netinet/in.c:751 in_ifdetach(ffff80000160b800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3ecb50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c3ecc10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6007d3dd978,7,fffff600097fd680,ffff80002a22a548) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff6006d4cf7a0,ffff80002a22a548) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006d4cf7a0,ffff80002a22a548) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a22a548) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a22a548,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a22a548,ffff80003c3ecf80,ffff80003c3eced0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c3ecf80) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3ecf80) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a1c47dc77f0, count: -21 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c3ec6b0 rbx 0xffff80002999ee0f rdx 0 rcx 0xffff80002a22a548 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8ce37a3103d81956 r11 0x282406982158328a r12 0xffff80002999ec10 r13 0 r14 0 r15 0x1 rip 0xffffffff83200c75 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c3ec6a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=346504 pid=17042 tcnt=0 stat=onproc flags process=a proc=2000 runpri=32, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff800045fe8a80,0xffff80002a22a028 process=0xffff800045fe0eb0 user=0xffff80003c3e8000, vmspace=0xfffff60066daab90 estcpu=28, cpticks=4, pctcpu=0.4, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 92967 334243 53968 0 3 0x2 0 clonelk ifconfig 53968 309510 59690 0 3 0x100002 0x88 sigsusp sh 59690 493343 14402 0 3 0x2 0x80 wait syz-executor 37044 350161 10675 0 3 0x2 0 clonelk ifconfig 10675 405813 60928 0 3 0x100002 0x88 sigsusp sh 60928 38725 14402 0 3 0x2 0x80 wait syz-executor 15537 125223 69916 0 3 0x2 0 clonelk ifconfig 69916 12495 20767 0 3 0x100002 0x88 sigsusp sh 20767 201986 14402 0 3 0x2 0x80 wait syz-executor 97745 358887 14402 0 3 0x2 0x80 piperd syz-executor 27360 271710 14402 0 3 0x2 0x80 piperd syz-executor 65844 245163 0 0 3 0x14000 0x280 nfsidl nfsio 96745 258626 0 0 3 0x14000 0x280 nfsidl nfsio 29210 158015 0 0 3 0x14000 0x280 nfsidl nfsio 71940 56922 0 0 3 0x14000 0x280 nfsidl nfsio 56196 228339 0 0 3 0x14000 0x280 nfsidl nfsio 46221 273004 0 0 3 0x14000 0x280 nfsidl nfsio 59088 158829 0 0 3 0x14000 0x280 nfsidl nfsio 76237 157447 0 0 3 0x14000 0x280 nfsidl nfsio 95711 234266 0 0 3 0x14000 0x280 nfsidl nfsio 96772 92798 0 0 3 0x14000 0x280 nfsidl nfsio 7005 422889 0 0 3 0x14000 0x280 nfsidl nfsio 32145 320689 0 0 3 0x14000 0x280 nfsidl nfsio 10330 74826 0 0 3 0x14000 0x280 nfsidl nfsio 60857 185316 0 0 3 0x14000 0x280 nfsidl nfsio 76839 367188 0 0 3 0x14000 0x280 nfsidl nfsio 67750 404016 0 0 3 0x14000 0x280 nfsidl nfsio 1279 407833 0 0 3 0x14000 0x280 nfsidl nfsio 59180 277045 0 0 3 0x14000 0x280 nfsidl nfsio 64472 140912 0 0 3 0x14000 0x280 nfsidl nfsio 30892 188399 0 0 3 0x14000 0x280 nfsidl nfsio 51021 375391 0 0 3 0x14000 0x200 acct acct 14402 468259 93320 0 3 0x2 0x80 wait syz-executor 93320 80083 77602 0 3 0x100002 0x88 sigsusp ksh 77602 251442 44570 0 3 0x10 0x88 kqread sshd-session 44570 36177 7819 0 3 0x12 0x80 kqread sshd-session 75395 467793 1 0 3 0x100003 0x80 ttyin getty 7819 428415 1 0 3 0 0x88 kqread sshd 38630 422041 16818 74 3 0x1100012 0x80 bpf pflogd 16818 367781 1 0 3 0 0x80 sbwait pflogd 18363 303432 42411 73 3 0x1100010 0x80 kqread syslogd 42411 397667 1 0 3 0x100002 0x80 sbwait syslogd 12004 84530 1 0 3 0x100000 0x80 kqread resolvd 19698 250647 22304 77 3 0x100012 0x80 kqread dhcpleased 4451 319196 22304 77 3 0x100012 0x80 kqread dhcpleased 22304 275321 1 0 3 0 0x80 kqread dhcpleased 98811 414969 0 0 3 0x14000 0x200 bored smr 408 258274 0 0 3 0x14000 0x200 pgzero zerothread 2361 368843 0 0 3 0x14000 0x200 aiodoned aiodoned 19426 130899 0 0 3 0x14000 0x200 syncer update 77568 112487 0 0 3 0x14000 0x200 cleaner cleaner 93843 74707 0 0 3 0x14000 0x200 reaper reaper 13641 37807 0 0 3 0x14000 0x200 pgdaemon pagedaemon 69448 218779 0 0 3 0x14000 0x200 bored viomb 72013 257303 0 0 3 0x14000 0x40000200 acpi0 acpi0 84665 115041 0 0 3 0x14000 0x40000200 idle1 89320 302456 0 0 3 0x14000 0x200 bored softnet1 15980 252301 0 0 3 0x14000 0x200 bored softnet0 98606 370519 0 0 3 0x14000 0x200 smrbar systqmp 84801 296644 0 0 3 0x14000 0x200 bored systq 37968 500276 0 0 3 0x14000 0x200 tmoslp softclockmp 83652 216588 0 0 3 0x14000 0x40000200 tmoslp softclock 87819 436499 0 0 7 0x14000 0x40000200 idle0 1 357068 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex /syzkaller/managers/multicore/kernel/sys/kern/kern_malloc.c:96 r = 0 (0xffffffff838e9cf8) #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+0x4b4 sys/kern/kern_lock.c:487 #2 free+0x9f sys/kern/kern_malloc.c:393 #3 rtfree+0x367 sys/net/route.c:646 #4 rt_ifa_del+0x45f sys/net/route.c:-1 #5 in_purgeaddr+0x19d in_ifscrub sys/netinet/in.c:-1 [inline] #5 in_purgeaddr+0x19d sys/netinet/in.c:751 #6 in_ifdetach+0x7e sys/netinet/in.c:1015 #7 if_detach+0x2fe sys/net/if.c:1311 #8 tun_clone_destroy+0x2ce sys/net/if_tun.c:343 #9 if_clone_destroy+0x205 sys/net/if.c:1479 #10 tun_dev_close+0x1d9 sys/net/if_tun.c:526 #11 spec_close+0x417 sys/kern/spec_vnops.c:-1 #12 VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 #13 vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] #13 vn_closefile+0x12b sys/kern/vfs_vnops.c:621 #14 fdrop+0x121 sys/kern/kern_descrip.c:1281 #15 closef+0x192 sys/kern/kern_descrip.c:1265 #16 fdfree+0x116 sys/kern/kern_descrip.c:1196 #17 exit1+0x595 sys/kern/kern_exit.c:215 #18 sys_exit+0x1a sys/kern/kern_exit.c:-1 Process 98606 (systqmp) thread 0xffff800045ffe298 (370519) shared rwlock systqmp r = 0 (0xffffffff839ed2b8) #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 11047 12085K 12296K 166960K 12423 0 pcb 17 12K 12K 166960K 38 0 rtable 163 7K 9K 166960K 1972 0 pf 27 16K 23K 166960K 185 0 ifaddr 27 5K 7K 166960K 273 0 ifgroup 39 1K 2K 166960K 287 0 sysctl 3 1K 9K 166960K 7 0 counters 62 36K 37K 166960K 218 0 ioctlops 0 0K 4K 166960K 1907 0 iov 0 0K 16K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1299 82K 82K 166960K 2030 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 13 1K 1K 166960K 20 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 93K 166960K 1130 0 sigio 0 0K 0K 166960K 2 0 proc 93 164K 180K 166960K 2089 0 subproc 63 3K 4K 166960K 576 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 18 0 in_multi 55 3K 6K 166960K 689 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 25 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 1098 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 178 152K 170K 166960K 8974 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 40 80K 107K 166960K 3676 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 6 0 NDP 8 0K 2K 166960K 197 0 temp 31 9118K 9138K 166960K 15893 0 kqueue 13 20K 28K 166960K 67 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 149 0 146 1 0 1 1 0 8 0 rtentry 176 696 0 630 6 1 5 6 0 8 0 unpcb 144 121 0 104 1 0 1 1 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 40 0 36 1 0 1 1 0 8 0 arp 136 124 0 114 1 0 1 1 0 8 0 inpcb 328 458 0 448 8 6 2 7 0 8 1 nd6 152 184 0 172 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 64 0 57 1 0 1 1 0 8 0 ppxss 1192 21 0 21 2 1 1 1 0 8 1 pfstscr 40 1 0 0 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 pfstitem 24 46 0 7 1 0 1 1 0 8 0 pfstkey 128 46 0 7 2 0 2 2 0 8 0 pfstate 448 45 0 7 5 0 5 5 0 8 0 pfrule 1360 23 0 18 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2826 0 2544 34 7 27 32 0 8 5 art_table 40 2828 0 2544 6 1 5 6 0 8 0 art_node 32 696 0 626 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 72 18 0 7 1 0 1 1 0 8 0 shmpl 120 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2055 0 453 101 0 101 101 0 8 0 ffsino 296 2055 0 453 124 0 124 124 0 8 0 nchpl 144 2505 0 566 72 0 72 72 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 vnodes 216 2712 0 0 151 0 151 151 0 8 0 namei 1024 15051 0 15051 5 4 1 3 0 8 1 percpumem 16 125 0 78 1 0 1 1 0 8 0 kstatmem 264 153 0 134 3 1 2 3 0 8 0 scxspl 216 8877 0 8877 6 5 1 3 1 8 1 plimitpl 152 158 0 141 1 0 1 1 0 8 0 sigapl 424 1356 0 1289 9 1 8 9 0 8 0 knotepl 120 420 0 0 13 0 13 13 0 8 0 kqueuepl 224 89 0 80 1 0 1 1 0 8 0 pipepl 344 303 0 276 4 0 4 4 0 8 0 fdescpl 528 1319 0 1290 3 0 3 3 0 8 0 filepl 160 4563 0 4370 14 3 11 13 0 8 2 lockfpl 104 90 0 88 1 0 1 1 0 8 0 lockfspl 48 45 0 43 1 0 1 1 0 8 0 sessionpl 144 91 0 82 1 0 1 1 0 8 0 pgrppl 48 157 0 140 1 0 1 1 0 8 0 ucredpl 104 1541 0 1528 1 0 1 1 0 8 0 zombiepl 144 1292 0 1289 1 0 1 1 0 8 0 processpl 1240 1356 0 1289 6 0 6 6 0 8 0 procpl 664 1843 0 1776 9 0 9 9 0 8 2 sockpl 752 733 0 703 10 6 4 10 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 138 0 0 18 0 18 18 0 8 0 mcl2k 2048 20 0 0 3 0 3 3 0 8 0 mextrefs 64 19 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 222 0 0 14 0 14 14 0 8 0 bufpl 272 3027 0 105 195 0 195 195 0 8 0 anonpl 32 5586 0 0 45 0 45 45 0 247 0 amapchunkpl 152 24470 0 24166 29 5 24 26 0 158 8 amappl16 200 1790 0 1779 8 6 2 7 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 1072 0 1068 1 0 1 1 0 8 0 amappl13 176 226 0 214 1 0 1 1 0 8 0 amappl12 168 1781 0 1756 2 0 2 2 0 8 0 amappl11 160 11 0 11 1 1 0 1 0 8 0 amappl10 152 63 0 49 1 0 1 1 0 8 0 amappl9 144 304 0 304 1 1 0 1 0 8 0 amappl8 136 312 0 307 1 0 1 1 0 8 0 amappl7 128 255 0 241 1 0 1 1 0 8 0 amappl6 120 691 0 684 1 0 1 1 0 8 0 amappl5 112 114 0 104 1 0 1 1 0 8 0 amappl4 104 451 0 431 1 0 1 1 0 8 0 amappl3 96 4707 0 4641 3 0 3 3 0 8 0 amappl2 88 1227 0 1154 2 0 2 2 0 8 0 amappl1 80 18062 0 17467 16 2 14 15 0 8 1 amappl 88 7315 0 7209 6 1 5 5 0 92 1 uvmvnodes 80 109 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 7 0 7 2 2 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1319 0 1290 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1319 0 1290 1 0 1 1 0 8 0 vmmpekpl 168 12144 0 12086 4 0 4 4 0 8 0 vmmpepl 168 92456 0 90867 90 5 85 88 0 357 8 vmsppl 488 1318 0 1290 5 0 5 5 0 8 0 rwobjpl 80 28279 0 27276 24 1 23 24 0 8 0 pdppl 4096 2645 0 2580 157 88 69 85 0 8 4 pvpl 32 12577 0 0 102 0 102 102 0 265 0 pmappl 256 1318 0 1290 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 549 0 103 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff839b2ff0) 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 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffffffff839b2ff0) at sched_idle+0x371 sys/kern/kern_sched.c:192 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff839b2ff0) 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 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffffffff839b2ff0) at sched_idle+0x371 sys/kern/kern_sched.c:192 end trace frame: 0x0, count: -5 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(ffffffff835040b8) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40740,5,64) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff6006ce45438) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001616c00,400004,ffff800001616c78,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d in_ifscrub sys/netinet/in.c:-1 [inline] in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d sys/netinet/in.c:751 in_ifdetach(ffff80000160b800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3ecb50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c3ecc10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6007d3dd978,7,fffff600097fd680,ffff80002a22a548) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 end trace frame: 0xffff80003c3ecd30, count: 0 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff835040b8) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40740,5,64) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff6006ce45438) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001616c00,400004,ffff800001616c78,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d in_ifscrub sys/netinet/in.c:-1 [inline] in_purgeaddr(ffff800001616c00) at in_purgeaddr+0x19d sys/netinet/in.c:751 in_ifdetach(ffff80000160b800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3ecb50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c3ecc10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6007d3dd978,7,fffff600097fd680,ffff80002a22a548) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006d4cf7a0,ffff80002a22a548) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff6006d4cf7a0,ffff80002a22a548) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006d4cf7a0,ffff80002a22a548) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a22a548) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a22a548,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a22a548,ffff80003c3ecf80,ffff80003c3eced0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c3ecf80) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3ecf80) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a1c47dc77f0, count: -21