panic: malloc: allocation too large, type = 2, size = 18446744073709550656 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *315938 76672 0 0 0x4000000 0 syz-executor.0 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(fffffffffffffc40,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015930610) at vm_get_info+0x9a VOP_IOCTL(fffffd8039fb64e0,c0185603,ffff800015930610,1,fffffd803f7c6ba0,ffff8000ffff2c70) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8039c1c2d0,c0185603,ffff800015930610,ffff8000ffff2c70) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2c70,ffff800015930728,ffff800015930770) at sys_ioctl+0x5b9 syscall(ffff8000159307f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,dcad885d010) at Xsyscall+0x128 end of kernel end trace frame: 0xdcd38de9d20, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic malloc: allocation too large, type = 2, size = 18446744073709550656 ddb> 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(fffffffffffffc40,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015930610) at vm_get_info+0x9a VOP_IOCTL(fffffd8039fb64e0,c0185603,ffff800015930610,1,fffffd803f7c6ba0,ffff8000ffff2c70) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8039c1c2d0,c0185603,ffff800015930610,ffff8000ffff2c70) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2c70,ffff800015930728,ffff800015930770) at sys_ioctl+0x5b9 syscall(ffff8000159307f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,dcad885d010) at Xsyscall+0x128 end of kernel end trace frame: 0xdcd38de9d20, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x288a __ALIGN_SIZE+0x188a rbp 0xffff800015930250 rbx 0xffff800015930300 rdx 0x288b __ALIGN_SIZE+0x188b rcx 0xffff80001490b000 rax 0xffff80001490b000 r8 0xffff800015930210 r9 0x1 r10 0xffff800000aa7d80 r11 0xab8009762294ef9f r12 0x3000000008 r13 0xffff800015930260 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015930240 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=315938 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff825545b0 process=0xffff8000148a2378 user=0xffff80001592b000, vmspace=0xfffffd803f013440 estcpu=36, cpticks=3, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 76672 410381 41172 0 2 0 syz-executor.0 *76672 315938 41172 0 7 0x4000000 syz-executor.0 41172 12692 19687 0 2 0x482 syz-executor.0 14776 124686 19687 0 2 0x2 syz-executor.1 32319 116622 0 0 3 0x14200 acct acct 4773 353298 0 0 3 0x14200 bored sosplice 19687 382325 22315 0 3 0x82 thrsleep syz-fuzzer 19687 20155 22315 0 2 0x4000482 syz-fuzzer 19687 440232 22315 0 3 0x4000082 thrsleep syz-fuzzer 19687 195244 22315 0 3 0x4000082 thrsleep syz-fuzzer 19687 294315 22315 0 3 0x4000082 kqread syz-fuzzer 19687 463431 22315 0 3 0x4000082 thrsleep syz-fuzzer 19687 29821 22315 0 3 0x4000082 thrsleep syz-fuzzer 19687 76097 22315 0 3 0x4000082 thrsleep syz-fuzzer 22315 363093 37152 0 3 0x10008a pause ksh 37152 221340 73790 0 3 0x92 select sshd 80604 335941 1 0 3 0x100083 ttyin getty 73790 353456 1 0 3 0x80 select sshd 42692 238440 61651 73 2 0x100010 syslogd 61651 256624 1 0 3 0x100082 netio syslogd 13535 29720 1 77 3 0x100090 poll dhclient 10516 441301 1 0 3 0x80 poll dhclient 21936 357368 0 0 2 0x14200 zerothread 80274 251407 0 0 3 0x14200 aiodoned aiodoned 42433 398240 0 0 3 0x14200 syncer update 79485 216761 0 0 3 0x14200 cleaner cleaner 61540 282569 0 0 3 0x14200 reaper reaper 31728 500601 0 0 3 0x14200 pgdaemon pagedaemon 88661 464918 0 0 3 0x14200 bored crynlk 88973 236458 0 0 3 0x14200 bored crypto 54514 56379 0 0 3 0x40014200 acpi0 acpi0 8143 425769 0 0 3 0x14200 bored softnet 47506 434046 0 0 3 0x14200 bored systqmp 15265 426611 0 0 3 0x14200 bored systq 79630 278385 0 0 2 0x40014200 softclock 9146 297304 0 0 3 0x40014200 idle0 89139 358121 0 0 3 0x14200 bored smr 1 446496 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9555 6742K 8143K 78643K 16030 0 0 pcb 13 8K 9K 78643K 782 0 0 rtable 114 4K 4K 78643K 808 0 0 ifaddr 59 13K 14K 78643K 261 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 80 0 0 iov 0 0K 32K 78643K 185 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 3224 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 0K 0K 78643K 8 0 0 sem 12 0K 1K 78643K 216 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1841 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 49 38K 63K 78643K 789 0 0 subproc 32 2K 2K 78643K 153 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 716 0 0 in_multi 33 2K 2K 78643K 201 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 468 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 99 21K 30K 78643K 5295 0 0 UVM aobj 130 5K 5K 78643K 130 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 423 0 0 NDP 12 0K 0K 78643K 78 0 0 temp 170 3535K 4175K 78643K 28303 0 0 kqueue 0 0K 0K 78643K 9 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 20 0 14 1 0 1 1 0 8 0 rtpcb 80 167 0 165 1 0 1 1 0 8 0 rtentry 112 119 0 74 2 0 2 2 0 8 0 unpcb 120 774 0 763 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 3283 0 3283 1 1 0 1 0 8 0 tcpcb 544 2452 0 2447 9 7 2 4 0 8 1 ipq 40 6 0 6 3 3 0 1 0 8 0 ipqe 40 14 0 14 3 3 0 1 0 8 0 inpcb 280 4788 0 4781 10 8 2 4 0 8 1 nd6 48 18 0 14 1 0 1 1 0 8 0 pkpcb 40 10 0 10 2 2 0 1 0 8 0 ppxss 1128 37 0 37 5 4 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 529 0 311 14 0 14 14 0 8 0 art_table 32 530 0 311 2 0 2 2 0 8 0 art_node 16 115 0 75 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 214 0 204 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4263 0 2871 46 0 46 46 0 8 0 ffsino 240 4263 0 2871 83 0 83 83 0 8 0 nchpl 144 6992 0 5381 61 1 60 61 0 8 0 uvmvnodes 72 5750 0 0 105 0 105 105 0 8 0 vnodes 208 5750 0 0 303 0 303 303 0 8 0 namei 1024 23756 0 23756 4 3 1 1 0 8 1 vmpool 520 6 0 6 2 1 1 1 0 8 1 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 23658 0 23658 13 12 1 7 0 8 1 plimitpl 152 179 0 172 1 0 1 1 0 8 0 sigapl 432 1991 0 1978 2 0 2 2 0 8 0 futexpl 56 48049 0 48049 3 2 1 1 0 8 1 knotepl 112 569 0 550 4 3 1 3 0 8 0 kqueuepl 104 476 0 474 1 0 1 1 0 8 0 pipepl 112 1148 0 1129 4 2 2 2 0 8 1 fdescpl 424 1992 0 1978 2 0 2 2 0 8 0 filepl 120 17539 0 17442 11 6 5 5 0 8 2 lockfpl 104 647 0 646 1 0 1 1 0 8 0 lockfspl 48 210 0 209 1 0 1 1 0 8 0 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 44 0 34 1 0 1 1 0 8 0 ucredpl 96 2969 0 2961 1 0 1 1 0 8 0 zombiepl 144 1978 0 1978 3 2 1 1 0 8 1 processpl 864 2008 0 1978 4 0 4 4 0 8 0 procpl 632 4260 0 4222 5 1 4 5 0 8 0 sosppl 128 15 0 15 5 5 0 1 0 8 0 sockpl 384 5805 0 5785 19 14 5 7 0 8 2 mcl64k 65536 54 0 54 7 6 1 1 0 8 1 mcl16k 16384 9 0 9 5 4 1 1 0 8 1 mcl12k 12288 34 0 34 7 6 1 1 0 8 1 mcl9k 9216 26 0 26 6 5 1 1 0 8 1 mcl8k 8192 40 0 40 5 4 1 1 0 8 1 mcl4k 4096 157 0 157 4 3 1 1 0 8 1 mcl2k2 2112 19 0 19 8 8 0 1 0 8 0 mcl2k 2048 61171 0 61127 20 13 7 13 0 8 1 mtagpl 80 40 0 33 2 1 1 1 0 8 0 mbufpl 256 110763 0 110688 16 8 8 9 0 8 0 bufpl 256 11538 0 5206 396 0 396 396 0 8 0 anonpl 16 183222 0 169465 98 40 58 72 0 62 0 amapchunkpl 152 10054 0 9950 47 34 13 18 0 158 7 amappl16 192 9260 0 8484 74 33 41 51 0 8 1 amappl15 184 305 0 305 1 1 0 1 0 8 0 amappl14 176 505 0 501 2 1 1 1 0 8 0 amappl13 168 254 0 254 3 3 0 1 0 8 0 amappl12 160 10 0 9 3 2 1 1 0 8 0 amappl11 152 435 0 423 1 0 1 1 0 8 0 amappl10 144 8 0 8 1 1 0 1 0 8 0 amappl9 136 868 0 862 1 0 1 1 0 8 0 amappl8 128 418 0 394 1 0 1 1 0 8 0 amappl7 120 65 0 58 1 0 1 1 0 8 0 amappl6 112 420 0 408 1 0 1 1 0 8 0 amappl5 104 204 0 193 1 0 1 1 0 8 0 amappl4 96 2115 0 2089 1 0 1 1 0 8 0 amappl3 88 935 0 925 1 0 1 1 0 8 0 amappl2 80 14826 0 14760 4 2 2 3 0 8 0 amappl1 72 45565 0 45147 27 18 9 20 0 8 0 amappl 80 4611 0 4575 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 1998 0 1978 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1998 0 1978 1 0 1 1 0 8 0 vmmpekpl 168 16030 0 16004 2 0 2 2 0 8 0 vmmpepl 168 238475 0 236642 190 103 87 108 0 357 4 vmsppl 272 1991 0 1978 3 2 1 2 0 8 0 pdppl 4096 4002 0 3968 6 1 5 6 0 8 0 pvpl 32 611322 0 594447 309 146 163 259 0 265 22 pmappl 200 1997 0 1984 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 578 0 53 17 1 16 16 0 8 0