panic: free: size too large 255 > 16 (0xffff800000c40940) type rtable
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
33067 83536 0 0 0 0 syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834fdfbf) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800000c40940,5,ff) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc00660c75a8) at rtfree+0x367 sys/net/route.c:646
rt_ifa_del(ffff800001610b00,800100,ffff800001610b68,0) at rt_ifa_del+0x45f sys/net/route.c:-1
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 sys/netinet/in.c:751
in_ifdetach(ffff800001601000) at in_ifdetach+0x16e sys/netinet/in.c:1030
if_detach(ffff800001601000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff800001601000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff80002a395f30) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a395ff0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc006e2e6388,7,fffffc00097fd750,ffff800045fe2558) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
end trace frame: 0xffff80002a396110, 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 255 > 16 (0xffff800000c40940) 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(ffffffff834fdfbf) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800000c40940,5,ff) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc00660c75a8) at rtfree+0x367 sys/net/route.c:646
rt_ifa_del(ffff800001610b00,800100,ffff800001610b68,0) at rt_ifa_del+0x45f sys/net/route.c:-1
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 sys/netinet/in.c:751
in_ifdetach(ffff800001601000) at in_ifdetach+0x16e sys/netinet/in.c:1030
if_detach(ffff800001601000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff800001601000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff80002a395f30) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a395ff0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc006e2e6388,7,fffffc00097fd750,ffff800045fe2558) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
fdrop(fffffc006de1b8e8,ffff800045fe2558) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffc006de1b8e8,ffff800045fe2558) at closef+0x192 sys/kern/kern_descrip.c:1265
fdfree(ffff800045fe2558) at fdfree+0x116 sys/kern/kern_descrip.c:1196
exit1(ffff800045fe2558,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff800045fe2558,ffff80002a396360,ffff80002a3962b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a396360) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a396360) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x772745b3be50, count: -21
ddb{1}> show registers
rdi 0
rsi 0x1
rbp 0xffff80002a395a80
rbx 0xffff80002999ee0f
rdx 0
rcx 0xffff800045fe2558
rax 0xffff80002999dff0
r8 0x101010101010101
r9 0x8080808080808080
r10 0x7946f7846c90f47d
r11 0x5187d9826aa763e3
r12 0xffff80002999ec10
r13 0
r14 0
r15 0x1
rip 0xffffffff82b56205 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80002a395a70
ss 0
db_enter+0x25: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor) tid=151363 pid=61547 tcnt=0 stat=onproc
flags process=18<EXITING,SUGID> proc=2000<WEXIT>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1
forw=0xffffffffffffffff, list=0xffff800045fe9a10,0xffff800045fe8d28
process=0xffff800045fee698 user=0xffff80002a391000, vmspace=0xfffffc006d1b2b90
estcpu=32, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
83536 33067 81037 0 7 0 0 syz-executor
85198 178085 81037 0 2 0x2 0 syz-executor
24351 92620 92285 32767 2 0x10 0 syz-executor
24351 356405 92285 32767 3 0x10 0x4000080 fsleep syz-executor
32750 498801 72101 32767 2 0x10 0 syz-executor
32750 162909 72101 32767 3 0x10 0x4000080 fsleep syz-executor
82040 230619 34460 0 3 0x2 0 clonelk ifconfig
34460 360513 64868 0 3 0x100002 0x88 sigsusp sh
64868 51946 10711 0 3 0 0x80 wait syz-executor
10711 259806 81037 0 3 0x2 0x80 wait syz-executor
19217 120916 83219 32767 3 0x10 0x80 nanoslp syz-executor
19217 428922 83219 32767 3 0x10 0x4000080 kqread syz-executor
19217 355414 83219 32767 3 0x10 0x4000080 fsleep syz-executor
83219 346337 35815 32767 3 0x10 0x80 nanoslp syz-executor
35815 396133 81037 0 3 0x2 0x80 wait syz-executor
72101 463766 35061 32767 3 0x10 0x80 nanoslp syz-executor
35061 342655 81037 0 3 0x2 0x80 wait syz-executor
62142 467303 81037 0 3 0x2 0x80 wait syz-executor
71213 507868 1171 32767 3 0x10 0x80 piperd syz-executor
1171 227157 81037 0 3 0x2 0x80 wait syz-executor
92285 85668 30405 32767 3 0x10 0x80 nanoslp syz-executor
30405 256576 81037 0 3 0x2 0x80 wait syz-executor
81037 8280 35982 0 2 0x2 0 syz-executor
35982 134854 3925 0 3 0x100002 0x88 sigsusp ksh
3925 229170 49185 0 3 0x10 0x88 kqread sshd-session
49185 211182 44440 0 3 0x12 0x80 kqread sshd-session
3315 13679 1 0 3 0x100003 0x80 ttyin getty
44440 438401 1 0 3 0 0x88 kqread sshd
78523 361568 54407 73 3 0x1100010 0x80 kqread syslogd
54407 82870 1 0 3 0x100002 0x80 sbwait syslogd
79395 64944 1 0 3 0x100000 0x80 kqread resolvd
25050 139518 66138 77 3 0x100012 0x80 kqread dhcpleased
43971 484786 66138 77 3 0x100012 0x80 kqread dhcpleased
66138 146823 1 0 3 0 0x80 kqread dhcpleased
90778 175435 0 0 3 0x14000 0x200 bored smr
12935 354571 0 0 2 0x14000 0x200 zerothread
45144 435399 0 0 3 0x14000 0x200 aiodoned aiodoned
35699 419104 0 0 3 0x14000 0x200 syncer update
79120 296058 0 0 3 0x14000 0x200 cleaner cleaner
59817 421072 0 0 3 0x14000 0x200 reaper reaper
19050 447229 0 0 3 0x14000 0x200 pgdaemon pagedaemon
70793 185673 0 0 3 0x14000 0x200 bored viomb
90471 169563 0 0 3 0x14000 0x40000200 acpi0 acpi0
78486 234603 0 0 3 0x14000 0x40000200 idle1
90067 260175 0 0 3 0x14000 0x200 bored softnet1
83090 516016 0 0 3 0x14000 0x200 bored softnet0
43707 139539 0 0 3 0x14000 0x200 smrbar systqmp
59167 3488 0 0 3 0x14000 0x200 bored systq
16190 165764 0 0 3 0x14000 0x200 tmoslp softclockmp
32787 464703 0 0 3 0x14000 0x40000200 tmoslp softclock
96661 364302 0 0 3 0x14000 0x40000200 idle0
1 241336 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 (0xffffffff8392f6b8)
#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+0x16e sys/netinet/in.c:1030
#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:1480
#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 43707 (systqmp) thread 0xffff800045ffe298 (139539)
shared rwlock systqmp r = 0 (0xffffffff838ecda8)
#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 11041 12011K 12034K 166960K 12190 0
pcb 17 12K 12K 166960K 17 0
rtable 170 4K 7K 166960K 834 0
pf 25 16K 16K 166960K 63 0
ifaddr 30 5K 7K 166960K 110 0
ifgroup 38 1K 2K 166960K 114 0
sysctl 1 1K 9K 166960K 5 0
counters 64 36K 37K 166960K 102 0
ioctlops 0 0K 4K 166960K 117 0
iov 0 0K 1K 166960K 1 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1296 82K 82K 166960K 1640 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 8 0
VM map 2 1K 1K 166960K 2 0
sem 17 2K 2K 166960K 18 0
dirhash 12 2K 2K 166960K 12 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 21 71K 121K 166960K 628 0
sigio 0 0K 0K 166960K 3 0
proc 65 115K 147K 166960K 981 0
subproc 54 3K 5K 166960K 351 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 31 0
in_multi 66 4K 6K 166960K 280 0
ether_multi 1 0K 0K 166960K 3 0
mrt 0 0K 0K 166960K 7 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 595 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 202 143K 187K 166960K 5980 0
UVM aobj 9 2K 2K 166960K 9 0
pinsyscall 42 84K 108K 166960K 2130 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 8 0K 2K 166960K 75 0
temp 31 9114K 9135K 166960K 5932 0
kqueue 14 22K 27K 166960K 61 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 79 0 76 1 0 1 1 0 8 0
rtentry 176 289 0 212 6 0 6 6 0 8 1
unpcb 144 110 0 93 1 0 1 1 0 8 0
syncache 336 7 0 7 1 0 1 1 0 8 1
tcpcb 736 84 0 80 2 0 2 2 0 8 1
arp 136 50 0 38 1 0 1 1 0 8 0
inpcb 328 290 0 282 2 0 2 2 0 8 1
nd6 152 74 0 59 1 0 1 1 0 8 0
kcovpl 48 39 0 33 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1164 0 796 29 0 29 29 0 8 1
art_table 40 1165 0 796 5 0 5 5 0 8 0
art_node 32 289 0 219 1 0 1 1 0 8 0
sysvmsgpl 40 41 0 1 1 0 1 1 0 8 0
semupl 112 2 0 2 1 0 1 1 0 8 1
semapl 72 16 0 1 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 1819 0 296 96 0 96 96 0 8 0
ffsino 296 1819 0 296 118 0 118 118 0 8 0
nchpl 144 2245 0 489 66 0 66 66 0 8 0
vnodes 216 2179 0 0 122 0 122 122 0 8 0
namei 1024 9678 0 9678 4 1 3 3 0 8 3
percpumem 16 67 0 19 1 0 1 1 0 8 0
kstatmem 264 57 0 38 2 0 2 2 0 8 0
scxspl 216 7526 0 7526 4 3 1 3 1 8 1
plimitpl 152 132 0 112 2 0 2 2 0 8 0
sigapl 424 857 0 808 7 0 7 7 0 8 0
knotepl 120 330 0 0 10 0 10 10 0 8 0
kqueuepl 224 71 0 61 1 0 1 1 0 8 0
pipepl 344 241 0 211 3 0 3 3 0 8 0
fdescpl 528 841 0 808 3 0 3 3 0 8 0
filepl 160 3053 0 2862 10 0 10 10 0 8 0
lockfpl 104 51 0 49 1 0 1 1 0 8 0
lockfspl 48 18 0 16 1 0 1 1 0 8 0
sessionpl 144 61 0 47 1 0 1 1 0 8 0
pgrppl 48 103 0 82 1 0 1 1 0 8 0
ucredpl 104 368 0 352 1 0 1 1 0 8 0
zombiepl 144 809 0 808 1 0 1 1 0 8 0
processpl 1232 857 0 808 5 0 5 5 0 8 0
procpl 664 1153 0 1100 6 0 6 6 0 8 0
sosppl 176 2 0 2 1 0 1 1 0 8 1
sockpl 752 483 0 455 4 0 4 4 0 8 0
mcl64k 65536 3 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 111 0 0 14 0 14 14 0 8 0
mcl2k 2048 21 0 0 3 0 3 3 0 8 0
mextrefs 64 26 0 0 1 0 1 1 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 329 0 0 21 0 21 21 0 8 0
bufpl 272 2529 0 102 162 0 162 162 0 8 0
anonpl 32 5927 0 0 48 0 48 48 0 247 0
amapchunkpl 152 17435 0 17028 35 0 35 35 0 158 14
amappl16 200 1648 0 1632 5 3 2 5 0 8 0
amappl15 192 3 0 3 1 1 0 1 0 8 0
amappl14 184 602 0 600 1 0 1 1 0 8 0
amappl13 176 184 0 173 1 0 1 1 0 8 0
amappl12 168 1130 0 1102 2 0 2 2 0 8 0
amappl11 160 29 0 29 1 1 0 1 0 8 0
amappl10 152 60 0 50 1 0 1 1 0 8 0
amappl9 144 272 0 272 1 1 0 1 0 8 0
amappl8 136 154 0 152 1 0 1 1 0 8 0
amappl7 128 186 0 175 1 0 1 1 0 8 0
amappl6 120 311 0 308 1 0 1 1 0 8 0
amappl5 112 95 0 88 1 0 1 1 0 8 0
amappl4 104 316 0 298 1 0 1 1 0 8 0
amappl3 96 3051 0 2973 4 1 3 3 0 8 0
amappl2 88 909 0 838 2 0 2 2 0 8 0
amappl1 80 13558 0 13007 16 0 16 16 0 8 2
amappl 88 4980 0 4840 5 0 5 5 0 92 0
uvmvnodes 80 102 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 841 0 808 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 841 0 808 1 0 1 1 0 8 0
vmmpekpl 168 8786 0 8724 4 0 4 4 0 8 1
vmmpepl 168 62202 0 60403 99 0 99 99 0 357 14
vmsppl 488 840 0 808 7 1 6 6 0 8 1
rwobjpl 80 19812 0 18906 23 0 23 23 0 8 1
pdppl 4096 1689 0 1616 125 44 81 97 0 8 8
pvpl 32 12774 0 0 104 0 104 104 0 265 0
pmappl 256 840 0 808 4 1 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 470 0 48 13 0 13 13 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
x86_ipi_db(ffffffff838e0ff0) 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
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:584 [inline]
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153
__mp_lock(ffffffff83b3f780) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff83b3f780) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173
end trace frame: 0x0, count: 10
ddb{0}> trace
x86_ipi_db(ffffffff838e0ff0) 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
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:584 [inline]
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153
__mp_lock(ffffffff83b3f780) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff83b3f780) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173
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(ffffffff834fdfbf) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800000c40940,5,ff) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc00660c75a8) at rtfree+0x367 sys/net/route.c:646
rt_ifa_del(ffff800001610b00,800100,ffff800001610b68,0) at rt_ifa_del+0x45f sys/net/route.c:-1
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 sys/netinet/in.c:751
in_ifdetach(ffff800001601000) at in_ifdetach+0x16e sys/netinet/in.c:1030
if_detach(ffff800001601000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff800001601000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff80002a395f30) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a395ff0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc006e2e6388,7,fffffc00097fd750,ffff800045fe2558) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
end trace frame: 0xffff80002a396110, count: 0
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834fdfbf) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800000c40940,5,ff) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc00660c75a8) at rtfree+0x367 sys/net/route.c:646
rt_ifa_del(ffff800001610b00,800100,ffff800001610b68,0) at rt_ifa_del+0x45f sys/net/route.c:-1
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline]
in_purgeaddr(ffff800001610b00) at in_purgeaddr+0x129 sys/netinet/in.c:751
in_ifdetach(ffff800001601000) at in_ifdetach+0x16e sys/netinet/in.c:1030
if_detach(ffff800001601000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff800001601000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff80002a395f30) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a395ff0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc006e2e6388,7,fffffc00097fd750,ffff800045fe2558) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006de1b8e8,ffff800045fe2558) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
fdrop(fffffc006de1b8e8,ffff800045fe2558) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffc006de1b8e8,ffff800045fe2558) at closef+0x192 sys/kern/kern_descrip.c:1265
fdfree(ffff800045fe2558) at fdfree+0x116 sys/kern/kern_descrip.c:1196
exit1(ffff800045fe2558,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff800045fe2558,ffff80002a396360,ffff80002a3962b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a396360) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a396360) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x772745b3be50, count: -21