panic: malloc: allocation too large, type = 2, size = 18446744073709550976 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 30668 41553 0 0 0 0 syz-executor.1 *207150 41553 0 0 0x4000000 1K syz-executor.1 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800023bab9d0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e653b60,c0185603,ffff800023bab9d0,81,fffffd807f7c6900,ffff800020abf8d0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8066de1dc0,c0185603,ffff800023bab9d0,ffff800020abf8d0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020abf8d0,ffff800023babae8,ffff800023babb30) at sys_ioctl+0x5b9 syscall(ffff800023babbb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023babbb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,832873f5010) at Xsyscall+0x128 end of kernel end trace frame: 0x8356a1819f0, 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 = 18446744073709550976 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800023bab9d0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e653b60,c0185603,ffff800023bab9d0,81,fffffd807f7c6900,ffff800020abf8d0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8066de1dc0,c0185603,ffff800023bab9d0,ffff800020abf8d0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020abf8d0,ffff800023babae8,ffff800023babb30) at sys_ioctl+0x5b9 syscall(ffff800023babbb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023babbb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,832873f5010) at Xsyscall+0x128 end of kernel end trace frame: 0x8356a1819f0, count: -9 ddb{1}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x1c5d __ALIGN_SIZE+0xc5d rbp 0xffff800023bab610 rbx 0xffff800023bab6c0 rdx 0x1c5e __ALIGN_SIZE+0xc5e rcx 0xffff800021b58000 rax 0xffff800021b58000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x77089dcc9b4f9dce r12 0x3000000008 r13 0xffff800023bab620 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bab600 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=207150 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe510,0xffff800020abe2a8 process=0xffff800020a8ae10 user=0xffff800023ba6000, vmspace=0xfffffd807f00c2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41553 30668 25599 0 7 0 syz-executor.1 *41553 207150 25599 0 7 0x4000000 syz-executor.1 41553 255266 25599 0 2 0x4000000 syz-executor.1 41553 141998 25599 0 3 0x4000080 fsleep syz-executor.1 25599 69357 53561 0 3 0x82 nanosleep syz-executor.1 74824 493668 1 0 3 0x100083 ttyin getty 44205 459350 0 0 3 0x14200 bored sosplice 53561 273626 58834 0 3 0x82 kqread syz-fuzzer 53561 223438 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 130301 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 372719 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 521473 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 374200 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 398068 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 433768 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 164188 58834 0 3 0x4000082 thrsleep syz-fuzzer 53561 55077 58834 0 3 0x4000082 thrsleep syz-fuzzer 58834 120125 5313 0 3 0x10008a pause ksh 5313 190276 1268 0 3 0x92 select sshd 1268 286259 1 0 3 0x80 select sshd 59912 522782 41394 74 3 0x100092 bpf pflogd 41394 400395 1 0 3 0x80 netio pflogd 21090 69118 54171 73 3 0x100090 kqread syslogd 54171 481111 1 0 3 0x100082 netio syslogd 25215 234630 1 77 3 0x100090 poll dhclient 99496 52910 1 0 3 0x80 poll dhclient 37283 488320 0 0 3 0x14200 pgzero zerothread 3284 140848 0 0 3 0x14200 aiodoned aiodoned 85514 253310 0 0 3 0x14200 syncer update 29808 257443 0 0 3 0x14200 cleaner cleaner 70193 479603 0 0 3 0x14200 reaper reaper 15547 371195 0 0 3 0x14200 pgdaemon pagedaemon 58746 159377 0 0 3 0x14200 bored crynlk 8219 270509 0 0 3 0x14200 bored crypto 48272 302789 0 0 3 0x40014200 acpi0 acpi0 43522 305737 0 0 3 0x40014200 idle1 22699 182165 0 0 3 0x14200 bored softnet 21415 370712 0 0 3 0x14200 bored systqmp 39964 146253 0 0 3 0x14200 bored systq 31726 444823 0 0 3 0x40014200 bored softclock 72713 192170 0 0 3 0x40014200 idle0 53346 256799 0 0 3 0x14200 bored smr 1 154154 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 41553 (syz-executor.1) thread 0xffff800020abf8d0 (207150) shared rwlock vmlistlock r = 0 (0xffff80000066e478) #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 (0xffffffff82663928) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9561 7066K 8421K 78643K 21283 0 0 pcb 13 8K 8K 78643K 292 0 0 rtable 71 3K 5K 78643K 721 0 0 ifaddr 55 13K 15K 78643K 265 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2082 0 0 iov 0 0K 16K 78643K 190 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1241 78K 78K 78643K 4219 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 21 0 0 VM map 2 1K 1K 78643K 6 0 0 sem 12 0K 1K 78643K 242 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 1682 0 0 sigio 0 0K 0K 78643K 15 0 0 proc 62 63K 95K 78643K 726 0 0 subproc 16 1K 2K 78643K 106 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 162 0 0 in_multi 11 0K 2K 78643K 118 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 12 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 162 715K 715K 78643K 162 0 0 exec 0 0K 1K 78643K 397 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 104 14K 31K 78643K 6692 0 0 UVM aobj 64 5K 5K 78643K 76 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 253 0 0 NDP 13 0K 0K 78643K 76 0 0 temp 163 3554K 4193K 78643K 27579 0 0 kqueue 0 0K 0K 78643K 15 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 15 0 13 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 118 0 116 1 0 1 1 0 8 0 rtentry 112 91 0 67 2 0 2 2 0 8 0 unpcb 120 841 0 830 2 1 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6996 0 6996 2 2 0 2 0 8 0 tcpcb 544 790 0 786 2 1 1 2 0 8 0 inpcb 280 2269 0 2260 5 3 2 2 0 8 1 rttmr 72 3 0 3 3 2 1 1 0 8 1 nd6 48 12 0 12 1 0 1 1 0 8 1 pkpcb 40 8 0 8 3 2 1 1 0 8 1 ppxss 1128 38 0 38 5 4 1 1 0 8 1 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 4 0 4 1 1 0 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 69 0 47 1 0 1 1 0 8 0 pfstkey 112 69 0 47 1 0 1 1 0 8 0 pfstate 328 69 0 47 3 0 3 3 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 401 0 279 14 3 11 14 0 8 2 art_table 32 402 0 279 2 0 2 2 0 8 0 art_node 16 88 0 66 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 24 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 237 0 227 1 0 1 1 0 8 0 shmpl 112 74 0 12 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3923 0 2532 46 0 46 46 0 8 0 ffsino 272 3923 0 2532 94 0 94 94 0 8 0 nchpl 144 6505 0 4890 61 0 61 61 0 8 0 uvmvnodes 72 6412 0 0 117 0 117 117 0 8 0 vnodes 208 6412 0 0 338 0 338 338 0 8 0 namei 1024 23483 0 23483 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 4 0 4 1 1 0 1 0 8 0 scxspl 192 18144 0 18144 12 11 1 7 0 8 1 plimitpl 152 172 0 165 1 0 1 1 0 8 0 sigapl 432 1871 0 1857 3 1 2 3 0 8 0 futexpl 56 33229 0 33228 1 0 1 1 0 8 0 knotepl 112 448 0 435 3 2 1 2 0 8 0 kqueuepl 104 386 0 384 1 0 1 1 0 8 0 pipepl 112 1008 0 995 5 4 1 2 0 8 0 fdescpl 488 1872 0 1857 3 0 3 3 0 8 0 filepl 152 15781 0 15695 18 13 5 9 0 8 0 lockfpl 104 637 0 636 1 0 1 1 0 8 0 lockfspl 48 219 0 218 1 0 1 1 0 8 0 sessionpl 112 23 0 13 1 0 1 1 0 8 0 pgrppl 48 40 0 30 1 0 1 1 0 8 0 ucredpl 96 2745 0 2736 1 0 1 1 0 8 0 zombiepl 144 1857 0 1857 3 2 1 1 0 8 1 processpl 896 1888 0 1857 4 0 4 4 0 8 0 procpl 632 5711 0 5668 11 6 5 5 0 8 1 srpgc 64 12 0 12 5 4 1 1 0 8 1 sosppl 128 15 0 15 6 6 0 1 0 8 0 sockpl 384 3252 0 3230 16 11 5 7 0 8 2 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 14 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 198 0 0 24 2 22 24 0 8 1 mtagpl 80 26 0 0 1 0 1 1 0 8 0 mbufpl 256 487 0 0 29 1 28 28 0 8 0 bufpl 256 13148 0 6100 441 0 441 441 0 8 0 anonpl 16 191126 0 180135 137 69 68 76 0 124 6 amapchunkpl 152 11650 0 11529 19 9 10 10 0 158 3 amappl16 192 9260 0 8452 106 64 42 53 0 8 0 amappl15 184 675 0 674 1 0 1 1 0 8 0 amappl14 176 246 0 245 2 1 1 1 0 8 0 amappl13 168 12 0 11 1 0 1 1 0 8 0 amappl12 160 209 0 208 2 1 1 1 0 8 0 amappl11 152 478 0 460 1 0 1 1 0 8 0 amappl10 144 18 0 12 1 0 1 1 0 8 0 amappl9 136 793 0 787 1 0 1 1 0 8 0 amappl8 128 344 0 319 1 0 1 1 0 8 0 amappl7 120 67 0 59 1 0 1 1 0 8 0 amappl6 112 471 0 459 1 0 1 1 0 8 0 amappl5 104 369 0 355 1 0 1 1 0 8 0 amappl4 96 1951 0 1915 2 1 1 2 0 8 0 amappl3 88 563 0 558 1 0 1 1 0 8 0 amappl2 80 14497 0 14428 3 1 2 3 0 8 0 amappl1 72 50770 0 50338 26 16 10 20 0 8 0 amappl 80 6036 0 5996 3 1 2 2 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 75 0 12 2 0 2 2 0 8 0 uaddrrnd 24 1876 0 1857 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1876 0 1857 1 0 1 1 0 8 0 vmmpekpl 168 18757 0 18727 2 0 2 2 0 8 0 vmmpepl 168 235025 0 233152 218 108 110 115 0 357 22 vmsppl 368 1871 0 1857 2 0 2 2 0 8 0 pdppl 4096 3759 0 3722 7 1 6 6 0 8 1 pvpl 32 537910 0 523777 258 93 165 185 0 265 15 pmappl 232 1875 0 1861 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 630 0 13 18 0 18 18 0 8 0