panic: free: size too large 100 > 16 (0xffff800000c57520) 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(ffffffff834c1275) at panic+0x1cf sys/kern/subr_prf.c:198
free(ffff800000c57520,5,64) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc0071faecc0) at rtfree+0x34e sys/net/route.c:646
rt_ifa_dellocal(ffff800001609100) at rt_ifa_dellocal+0x1ea sys/net/route.c:1452
in_purgeaddr(ffff800001609100) at in_purgeaddr+0x1c5 sys/netinet/in.c:754
in_ifdetach(ffff800001592000) at in_ifdetach+0x7e sys/netinet/in.c:1015
if_detach(ffff800001592000) at if_detach+0x322 sys/net/if.c:1311
tun_clone_destroy(ffff800001592000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343
if_clone_destroy(ffff80002a82b6b0) at if_clone_destroy+0x1d5 sys/net/if.c:1479
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a82b770) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc0071eb6460,7,fffffc0007ffd4e0,ffff80002a736008) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
end trace frame: 0xffff80002a82b890, 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>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: free: size too large 100 > 16 (0xffff800000c57520) type rtable
ddb> show kasan
No such command
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834c1275) at panic+0x1cf sys/kern/subr_prf.c:198
free(ffff800000c57520,5,64) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc0071faecc0) at rtfree+0x34e sys/net/route.c:646
rt_ifa_dellocal(ffff800001609100) at rt_ifa_dellocal+0x1ea sys/net/route.c:1452
in_purgeaddr(ffff800001609100) at in_purgeaddr+0x1c5 sys/netinet/in.c:754
in_ifdetach(ffff800001592000) at in_ifdetach+0x7e sys/netinet/in.c:1015
if_detach(ffff800001592000) at if_detach+0x322 sys/net/if.c:1311
tun_clone_destroy(ffff800001592000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343
if_clone_destroy(ffff80002a82b6b0) at if_clone_destroy+0x1d5 sys/net/if.c:1479
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a82b770) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc0071eb6460,7,fffffc0007ffd4e0,ffff80002a736008) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
fdrop(fffffc006d17f968,ffff80002a736008) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffc006d17f968,ffff80002a736008) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a736008) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002a736008,1,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a736008,ffff80002a82bad0,ffff80002a82ba20) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a82bad0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a82bad0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7353c7392230, count: -21
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff80002a82b330
rbx 0x10
rdx 0
rcx 0
rax 0xffff80002a736008
r8 0x101010101010101
r9 0x8080808080808080
r10 0x8731ff619863926a
r11 0xd30ef6c1287b92e3
r12 0
r13 0x64
r14 0
r15 0x1
rip 0xffffffff81d92ca5 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80002a82b320
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor) tid=513634 pid=17668 tcnt=0 stat=onproc
flags process=a<EXEC,EXITING> proc=2000<WEXIT>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1
forw=0xffffffffffffffff, list=0xffff80002a766a70,0xffff80002a736a78
process=0xffff80002a79db10 user=0xffff80002a826000, vmspace=0xfffffc0071f1d178
estcpu=0, cpticks=3, pctcpu=0.1, user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
88202 439523 0 0 3 0x14000 0x280 nfsidl nfsio
92056 97571 0 0 3 0x14000 0x280 nfsidl nfsio
6995 416558 0 0 3 0x14000 0x280 nfsidl nfsio
14988 373896 0 0 3 0x14000 0x280 nfsidl nfsio
89235 260740 0 0 3 0x14000 0x280 nfsidl nfsio
46549 34975 0 0 3 0x14000 0x280 nfsidl nfsio
81469 481090 0 0 3 0x14000 0x280 nfsidl nfsio
81680 52150 0 0 3 0x14000 0x280 nfsidl nfsio
88487 10753 0 0 3 0x14000 0x280 nfsidl nfsio
31136 150163 0 0 3 0x14000 0x280 nfsidl nfsio
58589 74363 0 0 3 0x14000 0x280 nfsidl nfsio
89509 194727 0 0 3 0x14000 0x280 nfsidl nfsio
28969 6824 0 0 3 0x14000 0x280 nfsidl nfsio
11140 136442 0 0 3 0x14000 0x280 nfsidl nfsio
38771 34248 0 0 3 0x14000 0x280 nfsidl nfsio
30281 12150 0 0 3 0x14000 0x280 nfsidl nfsio
3284 160835 0 0 3 0x14000 0x280 nfsidl nfsio
7793 411744 0 0 3 0x14000 0x280 nfsidl nfsio
7802 499423 0 0 3 0x14000 0x280 nfsidl nfsio
67401 472419 0 0 3 0x14000 0x280 nfsidl nfsio
33189 408567 71168 0 3 0x2 0x80 wait syz-executor
71168 96237 12035 0 3 0x2 0x80 wait syz-executor
12035 196046 72833 0 3 0x100002 0x88 sigsusp ksh
72833 296648 94822 0 3 0x10 0x88 kqread sshd-session
94822 244744 21441 0 3 0x12 0x80 kqread sshd-session
56604 340254 1 0 3 0x100003 0x80 ttyin getty
21441 106313 1 0 3 0 0x88 kqread sshd
18205 53343 19331 73 3 0x1100010 0x80 kqread syslogd
19331 174964 1 0 3 0x100002 0x80 sbwait syslogd
3136 507286 1 0 3 0x100000 0x80 kqread resolvd
66413 414962 89836 77 3 0x100012 0x80 kqread dhcpleased
47654 87970 89836 77 3 0x100012 0x80 kqread dhcpleased
89836 413984 1 0 3 0 0x80 kqread dhcpleased
56470 281791 0 0 3 0x14000 0x200 bored smr
54684 273209 0 0 3 0x14000 0x200 pgzero zerothread
63091 523610 0 0 3 0x14000 0x200 aiodoned aiodoned
89576 139853 0 0 3 0x14000 0x200 syncer update
37699 35282 0 0 3 0x14000 0x200 cleaner cleaner
89447 295692 0 0 3 0x14000 0x200 reaper reaper
4261 512878 0 0 3 0x14000 0x200 pgdaemon pagedaemon
2265 63845 0 0 3 0x14000 0x200 bored viomb
67018 189400 0 0 3 0x14000 0x40000200 acpi0 acpi0
47766 487635 0 0 3 0x14000 0x200 bored softnet0
33602 16646 0 0 2 0x14000 0x200 systqmp
47595 233005 0 0 3 0x14000 0x200 bored systq
68778 237877 0 0 3 0x14000 0x40000200 tmoslp softclock
54022 350095 0 0 3 0x14000 0x40000200 idle0
1 484315 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11032 12173K 12392K 166960K 12227 0
pcb 17 12K 12K 166960K 41 0
rtable 244 7K 7K 166960K 380 0
pf 30 12K 17K 166960K 47 0
ifaddr 42 7K 7K 166960K 45 0
ifgroup 50 2K 2K 166960K 55 0
sysctl 2 1K 9K 166960K 7 0
counters 33 17K 17K 166960K 34 0
ioctlops 0 0K 4K 166960K 59 0
iov 0 0K 12K 166960K 5 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1363 86K 86K 166960K 1587 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 8 0K 0K 166960K 8 0
dirhash 12 2K 2K 166960K 15 0
ACPI 1734 201K 291K 166960K 11964 0
file desc 11 37K 93K 166960K 251 0
proc 60 59K 91K 166960K 522 0
subproc 72 4K 4K 166960K 72 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 12 0
in_multi 99 7K 7K 166960K 103 0
ether_multi 1 0K 0K 166960K 1 0
mrt 0 0K 0K 166960K 8 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 73 334K 334K 166960K 73 0
exec 0 0K 1K 166960K 376 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 172 149K 159K 166960K 3828 0
UVM aobj 7 2K 2K 166960K 7 0
pinsyscall 32 64K 93K 166960K 1351 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 4 0
NDP 11 0K 2K 166960K 28 0
temp 35 9106K 9178K 166960K 7958 0
kqueue 13 20K 32K 166960K 56 0
SYN cache 2 16K 16K 166960K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 43 0 40 1 0 1 1 0 8 0
rtentry 136 114 0 4 4 0 4 4 0 8 0
unpcb 144 97 0 82 2 0 2 2 0 8 1
syncache 336 7 0 7 2 1 1 1 0 8 1
tcpcb 736 48 0 44 1 0 1 1 0 8 0
arp 96 18 0 0 1 0 1 1 0 8 0
ipq 40 2 0 0 1 0 1 1 0 8 0
ipqe 40 2 0 0 1 0 1 1 0 8 0
inpcb 328 150 0 143 3 1 2 2 0 8 1
ip6q 72 1 0 0 1 0 1 1 0 8 0
ip6af 40 1 0 0 1 0 1 1 0 8 0
nd6 112 25 0 0 1 0 1 1 0 8 0
pkpcb 40 3 0 3 1 0 1 1 0 8 1
kcovpl 48 8 0 0 1 0 1 1 0 8 0
pfrktable 1344 1 0 1 1 0 1 1 0 8 1
pftag 88 2 0 1 1 0 1 1 0 8 0
pfrule 1360 3 0 3 1 0 1 1 0 8 1
art_heap8 4096 2 0 0 2 0 2 2 0 8 0
art_heap4 256 455 0 0 29 0 29 29 0 8 0
art_table 40 457 0 0 5 0 5 5 0 8 0
art_node 32 113 0 11 1 0 1 1 0 8 0
sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1
semapl 72 6 0 0 1 0 1 1 0 8 0
shmpl 112 4 0 0 1 0 1 1 0 8 0
dirhash 1024 19 0 2 3 0 3 3 0 8 0
dino2pl 256 1798 0 335 92 0 92 92 0 8 0
ffsino 256 1804 0 341 92 0 92 92 0 8 0
nchpl 144 2155 0 459 63 0 63 63 0 8 0
vnodes 216 2067 0 0 115 0 115 115 0 8 0
namei 1024 6799 0 6799 3 2 1 2 0 8 1
kstatmem 264 25 0 2 2 0 2 2 0 8 0
scxspl 216 7318 0 7318 9 1 8 8 1 8 8
plimitpl 152 37 0 21 1 0 1 1 0 8 0
sigapl 424 566 0 510 8 0 8 8 0 8 1
knotepl 120 6396 0 6349 10 0 10 10 0 8 8
kqueuepl 184 49 0 40 1 0 1 1 0 8 0
pipepl 304 131 0 104 3 0 3 3 0 8 0
fdescpl 448 533 0 510 5 1 4 5 0 8 0
filepl 120 2266 0 2066 11 2 9 9 0 8 2
lockfpl 104 121 0 119 1 0 1 1 0 8 0
lockfspl 48 23 0 21 1 0 1 1 0 8 0
sessionpl 144 27 0 19 1 0 1 1 0 8 0
pgrppl 48 37 0 21 1 0 1 1 0 8 0
ucredpl 104 198 0 187 1 0 1 1 0 8 0
zombiepl 144 518 0 510 2 1 1 1 0 8 0
processpl 1152 566 0 510 5 0 5 5 0 8 0
procpl 664 751 0 695 7 0 7 7 0 8 1
sosppl 176 2 0 2 1 0 1 1 0 8 1
sockpl 552 305 0 280 5 1 4 4 0 8 2
mcl64k 65536 3 0 1 1 0 1 1 0 8 0
mcl16k 16384 2 0 2 1 1 0 1 0 8 0
mcl12k 12288 1 0 1 1 1 0 1 0 8 0
mcl8k 8192 4 0 4 1 1 0 1 0 8 0
mcl4k 4096 2664 0 2610 14 6 8 14 0 8 1
mcl2k 2048 212 0 211 2 1 1 1 0 8 0
mextrefs 64 90 0 90 2 1 1 1 0 8 1
mtagpl 96 4 0 4 1 1 0 1 0 8 0
mbufpl 256 5328 0 5249 11 0 11 11 0 8 2
bufpl 272 2447 0 102 157 0 157 157 0 8 0
anonpl 24 95763 0 93041 22 1 21 21 0 187 1
amapchunkpl 152 11014 0 10711 21 0 21 21 0 158 4
amappl16 200 1566 0 1544 6 4 2 5 0 8 0
amappl15 192 3 0 3 1 1 0 1 0 8 0
amappl14 184 538 0 537 1 0 1 1 0 8 0
amappl13 176 118 0 108 1 0 1 1 0 8 0
amappl12 168 775 0 752 2 0 2 2 0 8 0
amappl11 160 2 0 2 1 1 0 1 0 8 0
amappl10 152 63 0 53 1 0 1 1 0 8 0
amappl9 144 273 0 273 1 1 0 1 0 8 0
amappl8 136 92 0 91 1 0 1 1 0 8 0
amappl7 128 140 0 128 1 0 1 1 0 8 0
amappl6 120 179 0 178 1 0 1 1 0 8 0
amappl5 112 176 0 169 1 0 1 1 0 8 0
amappl4 104 257 0 242 1 0 1 1 0 8 0
amappl3 96 2149 0 2080 4 0 4 4 0 8 1
amappl2 88 517 0 464 2 0 2 2 0 8 0
amappl1 80 10679 0 10154 13 0 13 13 0 8 1
amappl 88 3125 0 3015 4 0 4 4 0 92 0
uvmvnodes 80 97 0 0 2 0 2 2 0 8 0
dma16384 16384 1 0 1 1 0 1 1 0 8 1
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 6 0 0 1 0 1 1 0 8 0
uaddrrnd 24 533 0 510 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 533 0 510 1 0 1 1 0 8 0
vmmpekpl 168 6260 0 6217 2 0 2 2 0 8 0
vmmpepl 168 42816 0 41373 81 0 81 81 0 357 2
vmsppl 368 532 0 510 4 1 3 4 0 8 0
rwobjpl 40 15033 0 14150 11 1 10 11 0 8 0
pdppl 4096 1072 0 1020 94 28 66 80 0 8 14
pvpl 32 246904 0 239898 81 0 81 81 0 265 4
pmappl 216 532 0 510 3 0 3 3 0 8 0
extentpl 40 46 0 28 1 0 1 1 0 8 0
phpool 112 519 0 44 14 0 14 14 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834c1275) at panic+0x1cf sys/kern/subr_prf.c:198
free(ffff800000c57520,5,64) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc0071faecc0) at rtfree+0x34e sys/net/route.c:646
rt_ifa_dellocal(ffff800001609100) at rt_ifa_dellocal+0x1ea sys/net/route.c:1452
in_purgeaddr(ffff800001609100) at in_purgeaddr+0x1c5 sys/netinet/in.c:754
in_ifdetach(ffff800001592000) at in_ifdetach+0x7e sys/netinet/in.c:1015
if_detach(ffff800001592000) at if_detach+0x322 sys/net/if.c:1311
tun_clone_destroy(ffff800001592000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343
if_clone_destroy(ffff80002a82b6b0) at if_clone_destroy+0x1d5 sys/net/if.c:1479
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a82b770) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc0071eb6460,7,fffffc0007ffd4e0,ffff80002a736008) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
fdrop(fffffc006d17f968,ffff80002a736008) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffc006d17f968,ffff80002a736008) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a736008) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002a736008,1,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a736008,ffff80002a82bad0,ffff80002a82ba20) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a82bad0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a82bad0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7353c7392230, count: -21
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834c1275) at panic+0x1cf sys/kern/subr_prf.c:198
free(ffff800000c57520,5,64) at free+0x690 sys/kern/kern_malloc.c:387
rtfree(fffffc0071faecc0) at rtfree+0x34e sys/net/route.c:646
rt_ifa_dellocal(ffff800001609100) at rt_ifa_dellocal+0x1ea sys/net/route.c:1452
in_purgeaddr(ffff800001609100) at in_purgeaddr+0x1c5 sys/netinet/in.c:754
in_ifdetach(ffff800001592000) at in_ifdetach+0x7e sys/netinet/in.c:1015
if_detach(ffff800001592000) at if_detach+0x322 sys/net/if.c:1311
tun_clone_destroy(ffff800001592000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343
if_clone_destroy(ffff80002a82b6b0) at if_clone_destroy+0x1d5 sys/net/if.c:1479
tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a82b770) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffc0071eb6460,7,fffffc0007ffd4e0,ffff80002a736008) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffc006d17f968,ffff80002a736008) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
fdrop(fffffc006d17f968,ffff80002a736008) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffc006d17f968,ffff80002a736008) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a736008) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002a736008,1,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a736008,ffff80002a82bad0,ffff80002a82ba20) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a82bad0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a82bad0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7353c7392230, count: -21