panic: free: size too large 138 > 16 (0xffff800000c43790) type rtable Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 353441 62938 32767 0x10 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8350af84) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c43790,5,8a) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff0800f3f3398) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001608a00,800100,ffff800001608a68,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff80000160b000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80002e789d50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002e789e10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff0806e3322b0,7,fffff080097fd478,ffff800045fe87e8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 end trace frame: 0xffff80002e789f30, 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 138 > 16 (0xffff800000c43790) 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(ffffffff8350af84) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c43790,5,8a) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff0800f3f3398) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001608a00,800100,ffff800001608a68,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff80000160b000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80002e789d50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002e789e10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff0806e3322b0,7,fffff080097fd478,ffff800045fe87e8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff0806d7b7840,ffff800045fe87e8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff0806d7b7840,ffff800045fe87e8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff800045fe87e8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff800045fe87e8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff800045fe87e8,ffff80002e78a180,ffff80002e78a0d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002e78a180) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002e78a180) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778c04199b90, count: -21 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e7898b0 rbx 0xffff80002999ee0f rdx 0 rcx 0xffff800045fe87e8 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x670781fcbf284915 r11 0xb55f98fee0a2043f r12 0xffff80002999ec10 r13 0 r14 0 r15 0x1 rip 0xffffffff8106baf5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002e7898a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=119788 pid=16250 tcnt=0 stat=onproc flags process=18 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff800045fe9778,0xffff80003c3e1cc0 process=0xffff800045fe7568 user=0xffff80002e785000, vmspace=0xfffff0807d4947b8 estcpu=36, cpticks=3, pctcpu=0.1, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 29914 357936 44637 32767 2 0x10 0 syz-executor 23511 512130 85492 0 2 0x2 0 ifconfig 33375 250792 62938 32767 2 0x10 0 syz-executor 33375 373281 62938 32767 3 0x10 0x4000080 fsleep syz-executor 85492 22091 77505 0 3 0x100002 0x88 sigsusp sh 11947 379796 48778 0 3 0x2 0 clonelk ifconfig 57685 147923 64084 32767 2 0x10 0 syz-executor 57685 331062 64084 32767 3 0x10 0x4000080 kqsel syz-executor 48778 185139 64527 0 3 0x100002 0x88 sigsusp sh 64527 185621 43033 0 3 0 0x80 wait syz-executor 61570 468813 51861 0 2 0x100002 0 sh 43033 350058 6362 0 3 0x2 0x80 wait syz-executor 64084 359698 59971 32767 2 0x10 0xc80 syz-executor 59971 227350 6362 0 3 0x2 0x80 wait syz-executor 51861 389324 17831 0 3 0 0x80 wait syz-executor 17831 423842 6362 0 3 0x2 0x80 wait syz-executor 77505 113344 75719 0 3 0 0x80 wait syz-executor 75719 112051 6362 0 3 0x2 0x80 wait syz-executor 62938 353441 64390 32767 7 0x10 0 syz-executor 64390 413380 6362 0 3 0x2 0x80 wait syz-executor 42519 65576 6362 0 3 0x2 0x80 wait syz-executor 88938 66971 26870 32767 2 0x10000010 0x80 syz-executor 26870 354448 6362 0 3 0x2 0x80 wait syz-executor 44637 179464 4398 32767 3 0x10 0x80 nanoslp syz-executor 4398 359550 6362 0 3 0x2 0x80 wait syz-executor 6362 135233 7700 0 3 0x2 0x80 kqread syz-executor 7700 77774 59963 0 3 0x100002 0x88 sigsusp ksh 59963 344755 41410 0 3 0x10 0x88 kqread sshd-session 41410 282361 85558 0 3 0x12 0x80 kqread sshd-session 77730 291615 1 0 3 0x100003 0x80 ttyin getty 85558 331568 1 0 3 0 0x88 kqread sshd 85495 145998 66729 73 3 0x1100010 0x80 kqread syslogd 66729 69560 1 0 3 0x100002 0x80 sbwait syslogd 62543 183970 1 0 3 0x100000 0x80 kqread resolvd 82700 391725 27020 77 3 0x100012 0x80 kqread dhcpleased 77107 108150 27020 77 3 0x100012 0x80 kqread dhcpleased 27020 266749 1 0 3 0 0x80 kqread dhcpleased 1655 466124 0 0 3 0x14000 0x200 bored smr 57465 2995 0 0 2 0x14000 0x200 zerothread 96176 152556 0 0 3 0x14000 0x200 aiodoned aiodoned 8961 395533 0 0 3 0x14000 0x200 syncer update 73394 255184 0 0 3 0x14000 0x200 cleaner cleaner 95525 55269 0 0 3 0x14000 0x200 reaper reaper 45521 378905 0 0 3 0x14000 0x200 pgdaemon pagedaemon 75521 501116 0 0 3 0x14000 0x200 bored viomb 23343 478039 0 0 3 0x14000 0x40000200 acpi0 acpi0 31521 402751 0 0 3 0x14000 0x40000200 idle1 77377 324126 0 0 3 0x14000 0x200 bored softnet1 9794 98929 0 0 3 0x14000 0x200 bored softnet0 96220 450662 0 0 3 0x14000 0x200 smrbar systqmp 30783 272191 0 0 3 0x14000 0x200 bored systq 42019 214488 0 0 3 0x14000 0x200 tmoslp softclockmp 52942 233169 0 0 3 0x14000 0x40000200 tmoslp softclock 37348 188957 0 0 3 0x14000 0x40000200 idle0 1 307136 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/setuid/kernel/sys/kern/kern_malloc.c:96 r = 0 (0xffffffff83907cb8) #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+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] #5 in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] #5 in_purgeaddr+0x129 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 96220 (systqmp) thread 0xffff800045ffe7c8 (450662) shared rwlock systqmp r = 0 (0xffffffff8392b898) #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 11046 12016K 12034K 166960K 12159 0 pcb 17 12K 12K 166960K 17 0 rtable 180 5K 7K 166960K 484 0 pf 29 16K 16K 166960K 43 0 ifaddr 33 5K 7K 166960K 65 0 ifgroup 46 2K 2K 166960K 74 0 sysctl 2 1K 9K 166960K 6 0 counters 68 36K 37K 166960K 82 0 ioctlops 0 0K 2K 166960K 39 0 iov 0 0K 4K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1420 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 6 0K 0K 166960K 6 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 26 97K 121K 166960K 297 0 proc 68 131K 163K 166960K 655 0 subproc 72 4K 4K 166960K 135 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 11 0 in_multi 67 4K 6K 166960K 145 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 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 440 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 216 178K 195K 166960K 3976 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 47 94K 114K 166960K 1522 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 16 0K 2K 166960K 41 0 temp 36 9118K 9150K 166960K 4193 0 kqueue 13 20K 28K 166960K 37 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 45 0 42 1 0 1 1 0 8 0 rtentry 176 160 0 78 6 0 6 6 0 8 1 unpcb 144 65 0 50 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 736 39 0 34 1 0 1 1 0 8 0 arp 136 28 0 14 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 207 0 198 7 0 7 7 0 8 6 nd6 152 37 0 21 1 0 1 1 0 8 0 kcovpl 48 15 0 7 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 638 0 308 29 0 29 29 0 8 7 art_table 40 639 0 308 5 0 5 5 0 8 0 art_node 32 160 0 83 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 4 0 0 1 0 1 1 0 8 0 shmpl 120 3 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1663 0 186 93 0 93 93 0 8 0 ffsino 296 1663 0 186 114 0 114 114 0 8 0 nchpl 144 1931 0 224 64 0 64 64 0 8 0 vnodes 216 1807 0 0 101 0 101 101 0 8 0 namei 1024 7289 0 7289 4 1 3 3 0 8 3 percpumem 16 57 0 7 1 0 1 1 0 8 0 kstatmem 264 37 0 14 2 0 2 2 0 8 0 scxspl 216 6610 0 6610 3 2 1 3 1 8 1 plimitpl 152 130 0 106 2 0 2 2 0 8 0 sigapl 424 576 0 521 7 0 7 7 0 8 0 knotepl 120 295 0 0 9 0 9 9 0 8 0 kqueuepl 224 49 0 38 1 0 1 1 0 8 0 pipepl 344 149 0 122 3 0 3 3 0 8 0 fdescpl 528 560 0 522 3 0 3 3 0 8 0 filepl 160 2189 0 1984 12 0 12 12 0 8 2 lockfpl 104 34 0 31 1 0 1 1 0 8 0 lockfspl 48 15 0 12 1 0 1 1 0 8 0 sessionpl 144 34 0 18 1 0 1 1 0 8 0 pgrppl 48 49 0 25 1 0 1 1 0 8 0 ucredpl 104 242 0 226 1 0 1 1 0 8 0 zombiepl 144 523 0 521 1 0 1 1 0 8 0 processpl 1240 576 0 521 5 0 5 5 0 8 0 procpl 664 693 0 636 6 0 6 6 0 8 0 sockpl 752 317 0 290 10 0 10 10 0 8 6 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mextrefs 64 16 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 218 0 0 14 0 14 14 0 8 0 bufpl 272 2329 0 102 149 0 149 149 0 8 0 anonpl 32 3672 0 0 30 0 30 30 0 247 0 amapchunkpl 152 10866 0 10446 21 0 21 21 0 158 1 amappl16 200 1884 0 1873 5 2 3 5 0 8 2 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 509 0 505 1 0 1 1 0 8 0 amappl13 176 157 0 147 1 0 1 1 0 8 0 amappl12 168 812 0 781 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 108 0 97 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 1 0 1 0 8 0 amappl8 136 115 0 113 1 0 1 1 0 8 0 amappl7 128 184 0 172 1 0 1 1 0 8 0 amappl6 120 203 0 197 1 0 1 1 0 8 0 amappl5 112 98 0 91 1 0 1 1 0 8 0 amappl4 104 300 0 286 1 0 1 1 0 8 0 amappl3 96 1956 0 1874 4 1 3 3 0 8 0 amappl2 88 672 0 599 2 0 2 2 0 8 0 amappl1 80 11946 0 11380 17 0 17 17 0 8 2 amappl 88 3192 0 3043 5 0 5 5 0 92 0 uvmvnodes 80 99 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 560 0 522 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 560 0 522 1 0 1 1 0 8 0 vmmpekpl 168 6730 0 6669 4 0 4 4 0 8 0 vmmpepl 168 46437 0 44534 104 0 104 104 0 357 16 vmsppl 488 559 0 522 7 1 6 6 0 8 0 rwobjpl 80 16760 0 15824 25 0 25 25 0 8 2 pdppl 4096 1127 0 1044 109 22 87 95 0 8 4 pvpl 32 10577 0 0 86 0 86 86 0 265 0 pmappl 256 559 0 522 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 430 0 26 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83959ff0) 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(ffffffff83a1da40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a1da40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff80002f77edd0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80002f77edd0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79cb83f784c0, count: 9 ddb{0}> trace x86_ipi_db(ffffffff83959ff0) 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(ffffffff83a1da40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a1da40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff80002f77edd0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80002f77edd0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79cb83f784c0, count: -6 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(ffffffff8350af84) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c43790,5,8a) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff0800f3f3398) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001608a00,800100,ffff800001608a68,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff80000160b000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80002e789d50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002e789e10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff0806e3322b0,7,fffff080097fd478,ffff800045fe87e8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 end trace frame: 0xffff80002e789f30, count: 0 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8350af84) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c43790,5,8a) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffff0800f3f3398) at rtfree+0x367 sys/net/route.c:646 rt_ifa_del(ffff800001608a00,800100,ffff800001608a68,0) at rt_ifa_del+0x45f sys/net/route.c:-1 in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001608a00) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff80000160b000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff80000160b000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff80000160b000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80002e789d50) at if_clone_destroy+0x205 sys/net/if.c:1479 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002e789e10) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff0806e3322b0,7,fffff080097fd478,ffff800045fe87e8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff0806d7b7840,ffff800045fe87e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff0806d7b7840,ffff800045fe87e8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff0806d7b7840,ffff800045fe87e8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff800045fe87e8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff800045fe87e8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff800045fe87e8,ffff80002e78a180,ffff80002e78a0d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002e78a180) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002e78a180) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778c04199b90, count: -21