panic: free: size too large 104 > 16 (0xffff800000c40c60) 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(ffffffff83504a91) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40c60,5,68) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffffc8068af6700) at rtfree+0x347 sys/net/route.c:641 rt_ifa_purge(ffff8000015ab900) at rt_ifa_purge+0x1a0 sys/net/route.c:1481 in_purgeaddr(ffff8000015ab900) at in_purgeaddr+0x1d6 sys/netinet/in.c:755 in_ifdetach(ffff8000015fb800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff8000015fb800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015fb800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3d8680) 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(ffff80003c3d8740) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffc80757bc390,7,fffffc80097fd138,ffff80002a22ad10) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 end trace frame: 0xffff80003c3d8860, 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 104 > 16 (0xffff800000c40c60) 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(ffffffff83504a91) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40c60,5,68) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffffc8068af6700) at rtfree+0x347 sys/net/route.c:641 rt_ifa_purge(ffff8000015ab900) at rt_ifa_purge+0x1a0 sys/net/route.c:1481 in_purgeaddr(ffff8000015ab900) at in_purgeaddr+0x1d6 sys/netinet/in.c:755 in_ifdetach(ffff8000015fb800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff8000015fb800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015fb800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3d8680) 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(ffff80003c3d8740) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffc80757bc390,7,fffffc80097fd138,ffff80002a22ad10) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffffc8060ec6060,ffff80002a22ad10) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffc8060ec6060,ffff80002a22ad10) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a22ad10) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a22ad10,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a22ad10,ffff80003c3d8ab0,ffff80003c3d8a00) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c3d8ab0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3d8ab0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73de08669740, count: -21 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c3d82e0 rbx 0xffff80002999ee0f rdx 0 rcx 0xffff80002a22ad10 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6bb95382b4911634 r11 0x592c8e011aa82e5d r12 0xffff80002999ec10 r13 0 r14 0 r15 0x1 rip 0xffffffff820e1cd5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c3d82d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=272127 pid=12049 tcnt=0 stat=onproc flags process=a proc=2000 runpri=32, usrpri=79, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff800045ffdc90,0xffff80003c3e54f8 process=0xffff8000387bb9e8 user=0xffff80003c3d3000, vmspace=0xfffffc806cefe200 estcpu=29, cpticks=5, pctcpu=0.4, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 25685 69141 72588 0 3 0 0x80 nanoslp syz-executor 25685 186050 72588 0 3 0 0x4000080 kqsel syz-executor 25685 19795 72588 0 3 0 0x4000080 fsleep syz-executor 81127 459147 35661 0 3 0x2 0x80 piperd syz-executor 47261 383503 35661 0 3 0x2 0x80 piperd syz-executor 20381 263048 35661 0 3 0x2 0x80 piperd syz-executor 72588 236664 35661 0 3 0x2 0x80 nanoslp syz-executor 91742 11181 0 0 3 0x14000 0x280 nfsidl nfsio 86071 417197 0 0 3 0x14000 0x280 nfsidl nfsio 8750 448207 0 0 3 0x14000 0x280 nfsidl nfsio 20963 398780 0 0 3 0x14000 0x280 nfsidl nfsio 63963 156103 0 0 3 0x14000 0x280 nfsidl nfsio 49792 501079 0 0 3 0x14000 0x280 nfsidl nfsio 12621 399587 0 0 3 0x14000 0x280 nfsidl nfsio 54862 26545 0 0 3 0x14000 0x280 nfsidl nfsio 23923 514025 0 0 3 0x14000 0x280 nfsidl nfsio 61378 5249 0 0 3 0x14000 0x280 nfsidl nfsio 55755 91788 0 0 3 0x14000 0x280 nfsidl nfsio 48486 294989 0 0 3 0x14000 0x280 nfsidl nfsio 50438 76827 0 0 3 0x14000 0x280 nfsidl nfsio 22497 405020 0 0 3 0x14000 0x280 nfsidl nfsio 75136 510293 0 0 3 0x14000 0x280 nfsidl nfsio 44593 14853 0 0 3 0x14000 0x280 nfsidl nfsio 6110 57587 0 0 3 0x14000 0x280 nfsidl nfsio 84006 413884 0 0 3 0x14000 0x280 nfsidl nfsio 63432 216475 0 0 3 0x14000 0x280 nfsidl nfsio 97111 335186 0 0 3 0x14000 0x280 nfsidl nfsio 95158 146967 35661 0 3 0x2 0x80 piperd syz-executor 35661 397206 17626 0 3 0x2 0x80 nanoslp syz-executor 17626 476800 88222 0 3 0x100002 0x88 sigsusp ksh 88222 37542 64757 0 3 0x10 0x88 kqread sshd-session 64757 466196 35356 0 3 0x12 0x80 kqread sshd-session 8886 105887 1 0 3 0x100003 0x80 ttyin getty 35356 313253 1 0 3 0 0x88 kqread sshd 68808 387568 95440 74 3 0x1100012 0x80 bpf pflogd 95440 371322 1 0 3 0 0x80 sbwait pflogd 5585 12210 39155 73 3 0x1100010 0x80 kqread syslogd 39155 106188 1 0 3 0x100002 0x80 sbwait syslogd 10484 339412 1 0 3 0x100000 0x80 kqread resolvd 43058 75176 85275 77 3 0x100012 0x80 kqread dhcpleased 42897 152979 85275 77 3 0x100012 0x80 kqread dhcpleased 85275 483837 1 0 3 0 0x80 kqread dhcpleased 84044 515515 0 0 3 0x14000 0x200 bored smr 17687 42001 0 0 3 0x14000 0x200 pgzero zerothread 42435 470550 0 0 3 0x14000 0x200 aiodoned aiodoned 25982 144965 0 0 3 0x14000 0x200 syncer update 64847 346548 0 0 3 0x14000 0x200 cleaner cleaner 44881 363298 0 0 3 0x14000 0x200 reaper reaper 48685 265713 0 0 3 0x14000 0x200 pgdaemon pagedaemon 47837 313268 0 0 3 0x14000 0x200 bored viomb 1183 133900 0 0 3 0x14000 0x40000200 acpi0 acpi0 1067 385287 0 0 3 0x14000 0x40000200 idle1 17215 204899 0 0 3 0x14000 0x200 bored softnet1 47257 456579 0 0 3 0x14000 0x200 bored softnet0 44620 447019 0 0 3 0x14000 0x200 smrbar systqmp 51880 26296 0 0 3 0x14000 0x200 bored systq 78704 183805 0 0 3 0x14000 0x200 tmoslp softclockmp 50287 389659 0 0 3 0x14000 0x40000200 tmoslp softclock 47894 193170 0 0 7 0x14000 0x40000200 idle0 1 242298 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 (0xffffffff839da908) #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+0x347 sys/net/route.c:641 #4 rt_ifa_purge+0x1a0 sys/net/route.c:1481 #5 in_purgeaddr+0x1d6 sys/netinet/in.c:755 #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 44620 (systqmp) thread 0xffff800045ffe298 (447019) shared rwlock systqmp r = 0 (0xffffffff83982b98) #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 11061 12092K 12231K 166960K 12330 0 pcb 17 14K 15K 166960K 48 0 rtable 205 7K 9K 166960K 1027 0 pf 33 17K 24K 166960K 135 0 ifaddr 36 6K 8K 166960K 141 0 ifgroup 51 2K 2K 166960K 158 0 sysctl 3 1K 9K 166960K 7 0 counters 68 36K 37K 166960K 132 0 ioctlops 0 0K 4K 166960K 1525 0 iov 0 0K 16K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1299 82K 82K 166960K 1686 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 3 8K 8K 166960K 3 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 9 29K 93K 166960K 566 0 sigio 0 0K 0K 166960K 3 0 proc 71 115K 180K 166960K 1154 0 subproc 54 3K 4K 166960K 261 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 20 0 in_multi 77 5K 6K 166960K 338 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 13 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 708 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 172 157K 184K 166960K 5875 0 UVM aobj 6 2K 4K 166960K 7 0 pinsyscall 34 68K 104K 166960K 2298 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 17 0K 1K 166960K 98 0 temp 29 9117K 9182K 166960K 15364 0 kqueue 13 20K 28K 166960K 47 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 157 0 154 3 2 1 3 0 8 0 rtentry 176 343 0 257 6 0 6 6 0 8 0 unpcb 144 84 0 67 1 0 1 1 0 8 0 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpcb 736 27 0 23 1 0 1 1 0 8 0 arp 136 60 0 47 1 0 1 1 0 8 0 inpcb 328 384 0 377 7 2 5 7 0 8 4 nd6 152 87 0 69 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 0 1 1 0 8 1 kcovpl 48 29 0 23 1 0 1 1 0 8 0 ppxss 1192 8 0 8 1 0 1 1 0 8 1 pppxif 1576 1 0 1 1 1 0 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 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 10 0 10 1 0 1 1 0 8 1 pfstitem 24 36 0 2 1 0 1 1 0 8 0 pfstkey 128 36 0 2 2 0 2 2 0 8 0 pfstate 448 36 0 2 4 0 4 4 0 8 0 pfrule 1360 23 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1397 0 1027 37 8 29 29 0 8 0 art_table 40 1398 0 1027 5 0 5 5 0 8 0 art_node 32 343 0 254 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 1 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1830 0 316 95 0 95 95 0 8 0 ffsino 296 1830 0 316 117 0 117 117 0 8 0 nchpl 144 2183 0 399 67 0 67 67 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 vnodes 216 2177 0 0 121 0 121 121 0 8 0 namei 1024 10681 0 10681 4 3 1 3 0 8 1 percpumem 16 82 0 32 1 0 1 1 0 8 0 kstatmem 264 85 0 58 3 0 3 3 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 7471 0 7471 11 3 8 8 1 8 8 plimitpl 152 293 0 276 1 0 1 1 0 8 0 sigapl 424 870 0 810 10 1 9 9 0 8 0 knotepl 120 490 0 0 15 0 15 15 0 8 0 kqueuepl 224 87 0 77 3 0 3 3 0 8 2 pipepl 344 200 0 173 4 0 4 4 0 8 1 fdescpl 528 834 0 811 3 0 3 3 0 8 0 filepl 160 3439 0 3254 13 2 11 13 0 8 1 lockfpl 104 107 0 105 1 0 1 1 0 8 0 lockfspl 48 53 0 51 1 0 1 1 0 8 0 sessionpl 144 113 0 104 1 0 1 1 0 8 0 pgrppl 48 142 0 126 1 0 1 1 0 8 0 ucredpl 104 327 0 314 1 0 1 1 0 8 0 zombiepl 144 812 0 810 1 0 1 1 0 8 0 processpl 1232 870 0 810 6 0 6 6 0 8 0 procpl 664 1138 0 1076 8 0 8 8 0 8 1 sockpl 752 637 0 610 11 3 8 11 0 8 5 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 117 0 0 15 0 15 15 0 8 0 mcl2k 2048 17 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 2479 0 0 155 0 155 155 0 8 0 bufpl 272 2610 0 105 167 0 167 167 0 8 0 anonpl 32 4009 0 0 33 0 33 33 0 247 0 amapchunkpl 152 15711 0 15421 21 0 21 21 0 158 5 amappl16 200 1468 0 1456 7 4 3 5 0 8 2 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 691 0 690 1 0 1 1 0 8 0 amappl13 176 184 0 172 1 0 1 1 0 8 0 amappl12 168 1173 0 1151 2 0 2 2 0 8 0 amappl11 160 9 0 8 1 0 1 1 0 8 0 amappl10 152 68 0 54 1 0 1 1 0 8 0 amappl9 144 274 0 274 1 1 0 1 0 8 0 amappl8 136 185 0 183 1 0 1 1 0 8 0 amappl7 128 193 0 180 1 0 1 1 0 8 0 amappl6 120 365 0 363 1 0 1 1 0 8 0 amappl5 112 101 0 91 1 0 1 1 0 8 0 amappl4 104 373 0 355 1 0 1 1 0 8 0 amappl3 96 3010 0 2950 3 0 3 3 0 8 0 amappl2 88 876 0 808 2 0 2 2 0 8 0 amappl1 80 13698 0 13126 16 1 15 15 0 8 1 amappl 88 4752 0 4651 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 6 0 1 1 0 1 1 0 8 0 uaddrrnd 24 834 0 811 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 834 0 811 1 0 1 1 0 8 0 vmmpekpl 168 8634 0 8577 3 0 3 3 0 8 0 vmmpepl 168 62003 0 60504 87 1 86 86 0 357 5 vmsppl 488 833 0 811 5 0 5 5 0 8 0 rwobjpl 80 20058 0 19139 25 1 24 24 0 8 2 pdppl 4096 1675 0 1622 143 64 79 85 0 8 26 pvpl 32 10248 0 0 83 0 83 83 0 265 0 pmappl 256 833 0 811 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 638 0 79 17 0 17 17 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff838e9ff0) 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(ffffffff838e9ff0) at sched_idle+0x371 sys/kern/kern_sched.c:192 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff838e9ff0) 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(ffffffff838e9ff0) 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(ffffffff83504a91) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40c60,5,68) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffffc8068af6700) at rtfree+0x347 sys/net/route.c:641 rt_ifa_purge(ffff8000015ab900) at rt_ifa_purge+0x1a0 sys/net/route.c:1481 in_purgeaddr(ffff8000015ab900) at in_purgeaddr+0x1d6 sys/netinet/in.c:755 in_ifdetach(ffff8000015fb800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff8000015fb800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015fb800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3d8680) 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(ffff80003c3d8740) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffc80757bc390,7,fffffc80097fd138,ffff80002a22ad10) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 end trace frame: 0xffff80003c3d8860, count: 0 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83504a91) at panic+0x1e5 sys/kern/subr_prf.c:198 free(ffff800000c40c60,5,68) at free+0x690 sys/kern/kern_malloc.c:387 rtfree(fffffc8068af6700) at rtfree+0x347 sys/net/route.c:641 rt_ifa_purge(ffff8000015ab900) at rt_ifa_purge+0x1a0 sys/net/route.c:1481 in_purgeaddr(ffff8000015ab900) at in_purgeaddr+0x1d6 sys/netinet/in.c:755 in_ifdetach(ffff8000015fb800) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff8000015fb800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015fb800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3d8680) 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(ffff80003c3d8740) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffc80757bc390,7,fffffc80097fd138,ffff80002a22ad10) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffc8060ec6060,ffff80002a22ad10) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffffc8060ec6060,ffff80002a22ad10) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffc8060ec6060,ffff80002a22ad10) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a22ad10) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a22ad10,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a22ad10,ffff80003c3d8ab0,ffff80003c3d8a00) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c3d8ab0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3d8ab0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73de08669740, count: -21