panic: malloc: allocation too large, type = 2, size = 18446744073709551296
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*386726 24788 0 0 0x4000000 1K syz-executor6244
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
malloc(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344
vm_get_info(ffff800020b0f7e0) at vm_get_info+0x9d
VOP_IOCTL(fffffd806e6b2c30,c0185603,ffff800020b0f7e0,3,fffffd807f7c6960,ffff800020ac0ee0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd806e97ed18,c0185603,ffff800020b0f7e0,ffff800020ac0ee0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524
sys_ioctl(ffff800020ac0ee0,ffff800020b0f8f8,ffff800020b0f940) at sys_ioctl+0x5b9
syscall(ffff800020b0f9c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b0f9c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,a5ef4a1e0c8,0,a5ef4a1e0a8,a5ef4a1e0a0) at Xsyscall+0x128
end of kernel
end trace frame: 0xa6144716770, count: 6
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
malloc: allocation too large, type = 2, size = 18446744073709551296
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
malloc(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344
vm_get_info(ffff800020b0f7e0) at vm_get_info+0x9d
VOP_IOCTL(fffffd806e6b2c30,c0185603,ffff800020b0f7e0,3,fffffd807f7c6960,ffff800020ac0ee0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd806e97ed18,c0185603,ffff800020b0f7e0,ffff800020ac0ee0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524
sys_ioctl(ffff800020ac0ee0,ffff800020b0f8f8,ffff800020b0f940) at sys_ioctl+0x5b9
syscall(ffff800020b0f9c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b0f9c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,a5ef4a1e0c8,0,a5ef4a1e0a8,a5ef4a1e0a0) at Xsyscall+0x128
end of kernel
end trace frame: 0xa6144716770, count: -9
ddb{1}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020b0f420
rbx 0xffff800020b0f4d0
rdx 0x8b
rcx 0x2
rax 0x1
r8 0xffffffff820f41df kprintf+0x16f
r9 0x1
r10 0x6331e9d004a32272
r11 0xbe9d1792eb6cba9f
r12 0x3000000008
r13 0xffff800020b0f430
r14 0x100
r15 0x1
rip 0xffffffff81280be8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020b0f410
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor6244) pid=386726 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=55, usrpri=55, nice=20
forw=0xffffffffffffffff, list=0xffff800020ac0778,0xffff800020ac1b48
process=0xffff800020a8b510 user=0xffff800020b0a000, vmspace=0xfffffd806e7dd8a8
estcpu=5, cpticks=1, pctcpu=0.0
user=0, sys=0, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
24788 28947 4429 0 3 0x80 nanosleep syz-executor6244
*24788 386726 4429 0 7 0x4000000 syz-executor6244
24788 67983 4429 0 3 0x4000080 fsleep syz-executor6244
4429 471166 63260 0 3 0x82 nanosleep syz-executor6244
63260 77913 43013 0 3 0x10008a pause ksh
43013 90642 38003 0 3 0x92 select sshd
42260 333696 1 0 3 0x100083 ttyin getty
38003 303444 1 0 3 0x80 select sshd
31489 140992 58192 74 3 0x100092 bpf pflogd
58192 322365 1 0 3 0x80 netio pflogd
27175 73754 55310 73 3 0x100010 biowait syslogd
55310 48922 1 0 3 0x100082 netio syslogd
49631 198451 1 77 3 0x100090 poll dhclient
30906 122151 1 0 3 0x80 poll dhclient
60885 27021 0 0 3 0x14200 pgzero zerothread
76996 302615 0 0 3 0x14200 aiodoned aiodoned
32042 274888 0 0 3 0x14200 syncer update
86846 395624 0 0 3 0x14200 cleaner cleaner
75053 491731 0 0 3 0x14200 reaper reaper
54659 518570 0 0 3 0x14200 pgdaemon pagedaemon
30183 137470 0 0 3 0x14200 bored crynlk
72206 170432 0 0 3 0x14200 bored crypto
92764 478170 0 0 3 0x40014200 acpi0 acpi0
51668 448489 0 0 3 0x40014200 idle1
65828 485329 0 0 3 0x14200 bored softnet
60151 106974 0 0 3 0x14200 bored systqmp
46706 111898 0 0 3 0x14200 bored systq
77373 222920 0 0 3 0x40014200 bored softclock
14519 397862 0 0 7 0x40014200 idle0
13073 31740 0 0 3 0x14200 bored smr
1 519456 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 24788 (syz-executor6244) thread 0xffff800020ac0ee0 (386726)
shared rwlock vmlistlock r = 0 (0xffff80000066f478)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 vm_get_info+0x39 sys/arch/amd64/amd64/vmm.c:3712
#2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
#3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524
#4 sys_ioctl+0x5b9
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826286c0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
Process 27175 (syslogd) thread 0xffff800020ac0288 (73754)
exclusive rrwlock inode r = 0 (0xfffffd806eadec48)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 rw_enter+0x447 sys/kern/kern_rwlock.c:306
#2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435
#3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615
#4 vn_lock+0x81 sys/kern/vfs_vnops.c:562
#5 sys_fsync+0x114 sys/kern/vfs_syscalls.c:2806
#6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#7 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9452 6383K 6384K 78643K 10540 0 0
pcb 13 8K 8K 78643K 13 0 0
rtable 61 2K 2K 78643K 125 0 0
ifaddr 25 7K 7K 78643K 26 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1469 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1181 74K 74K 78643K 1186 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 1K 78643K 2 0 0
VM map 2 1K 1K 78643K 4 0 0
sem 2 0K 0K 78643K 2 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1809 196K 290K 78643K 12843 0 0
file desc 1 0K 0K 78643K 1 0 0
proc 59 63K 71K 78643K 344 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
in_multi 11 0K 0K 78643K 11 0 0
ether_multi 1 0K 0K 78643K 1 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 18 79K 79K 78643K 18 0 0
exec 0 0K 1K 78643K 181 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 63 3K 3K 78643K 809 0 0
UVM aobj 2 2K 2K 78643K 2 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
NDP 4 0K 0K 78643K 4 0 0
temp 39 3536K 3600K 78643K 2001 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 2 0 0 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 15 0 13 1 0 1 1 0 8 0
rtentry 112 23 0 1 1 0 1 1 0 8 0
unpcb 120 29 0 19 1 0 1 1 0 8 0
syncache 264 5 0 5 1 0 1 1 0 8 1
tcpcb 544 8 0 5 1 0 1 1 0 8 0
inpcb 280 29 0 23 1 0 1 1 0 8 0
pfosfp 40 846 0 423 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 8 0 0 1 0 1 1 0 8 0
pfstkey 112 8 0 0 1 0 1 1 0 8 0
pfstate 328 8 0 0 1 0 1 1 0 8 0
pfrule 1360 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 97 0 0 7 0 7 7 0 8 0
art_table 32 98 0 0 1 0 1 1 0 8 0
art_node 16 22 0 2 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1399 0 16 45 0 45 45 0 8 0
ffsino 272 1399 0 16 93 0 93 93 0 8 0
nchpl 144 1587 0 44 58 0 58 58 0 8 0
uvmvnodes 72 1409 0 0 26 0 26 26 0 8 0
vnodes 208 1409 0 0 75 0 75 75 0 8 0
namei 1024 3767 0 3767 1 0 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
vmpool 552 2 0 2 1 0 1 1 0 8 1
scxspl 192 2508 0 2507 2 1 1 2 0 8 0
plimitpl 152 14 0 8 1 0 1 1 0 8 0
sigapl 432 206 0 193 2 0 2 2 0 8 0
futexpl 56 9 0 8 1 0 1 1 0 8 0
knotepl 112 5 0 0 1 0 1 1 0 8 0
kqueuepl 104 1 0 0 1 0 1 1 0 8 0
pipepl 112 134 0 127 1 0 1 1 0 8 0
fdescpl 488 207 0 193 3 0 3 3 0 8 0
filepl 152 986 0 934 2 0 2 2 0 8 0
lockfpl 104 5 0 4 1 0 1 1 0 8 0
lockfspl 48 3 0 2 1 0 1 1 0 8 0
sessionpl 112 18 0 9 1 0 1 1 0 8 0
pgrppl 48 18 0 9 1 0 1 1 0 8 0
ucredpl 96 52 0 43 1 0 1 1 0 8 0
zombiepl 144 193 0 193 1 0 1 1 0 8 1
processpl 896 222 0 193 4 0 4 4 0 8 0
procpl 632 224 0 193 3 0 3 3 0 8 0
sockpl 384 73 0 55 2 0 2 2 0 8 0
mcl4k 4096 2 0 0 1 0 1 1 0 8 0
mcl2k 2048 56 0 0 7 0 7 7 0 8 0
mtagpl 80 1 0 0 1 0 1 1 0 8 0
mbufpl 256 70 0 0 5 0 5 5 0 8 0
bufpl 256 2181 0 278 119 0 119 119 0 8 0
anonpl 16 19136 0 17862 7 1 6 7 0 124 0
amapchunkpl 152 530 0 488 2 0 2 2 0 158 0
amappl16 192 83 0 77 1 0 1 1 0 8 0
amappl14 176 15 0 14 1 0 1 1 0 8 0
amappl12 160 4 0 4 1 0 1 1 0 8 1
amappl11 152 48 0 33 1 0 1 1 0 8 0
amappl10 144 7 0 5 1 0 1 1 0 8 0
amappl9 136 445 0 441 1 0 1 1 0 8 0
amappl8 128 101 0 95 1 0 1 1 0 8 0
amappl7 120 18 0 17 1 0 1 1 0 8 0
amappl6 112 60 0 54 1 0 1 1 0 8 0
amappl5 104 131 0 117 1 0 1 1 0 8 0
amappl4 96 469 0 443 1 0 1 1 0 8 0
amappl3 88 101 0 95 1 0 1 1 0 8 0
amappl2 80 793 0 731 2 0 2 2 0 8 0
amappl1 72 13894 0 13469 15 5 10 15 0 8 0
amappl 80 414 0 390 1 0 1 1 0 84 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma256 256 6 0 6 1 1 0 1 0 8 0
dma64 64 259 0 259 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 17 0 17 1 1 0 1 0 8 0
aobjpl 64 1 0 0 1 0 1 1 0 8 0
uaddrrnd 24 209 0 193 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 209 0 193 1 0 1 1 0 8 0
vmmpekpl 168 5562 0 5541 1 0 1 1 0 8 0
vmmpepl 168 29206 0 28321 47 6 41 47 0 357 2
vmsppl 368 206 0 193 2 0 2 2 0 8 0
pdppl 4096 425 0 390 5 0 5 5 0 8 0
pvpl 32 79450 0 76390 28 0 28 28 0 265 3
pmappl 232 208 0 195 1 0 1 1 0 8 0
extentpl 40 38 0 22 1 0 1 1 0 8 0
phpool 112 249 0 3 8 0 8 8 0 8 0