panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *378906 20458 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(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015f208b0) at vm_get_info+0x9a VOP_IOCTL(fffffd803702a820,c0185603,ffff800015f208b0,1,fffffd803f7c6ae0,ffff8000ffff3b40) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803c304ad0,c0185603,ffff800015f208b0,ffff8000ffff3b40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff3b40,ffff800015f209c8,ffff800015f20a10) at sys_ioctl+0x5b9 syscall(ffff800015f20a90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,e54d0b111b0) at Xsyscall+0x128 end of kernel end trace frame: 0xe579f27dcd0, 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 = 18446744073709551296 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(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015f208b0) at vm_get_info+0x9a VOP_IOCTL(fffffd803702a820,c0185603,ffff800015f208b0,1,fffffd803f7c6ae0,ffff8000ffff3b40) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803c304ad0,c0185603,ffff800015f208b0,ffff8000ffff3b40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff3b40,ffff800015f209c8,ffff800015f20a10) at sys_ioctl+0x5b9 syscall(ffff800015f20a90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,e54d0b111b0) at Xsyscall+0x128 end of kernel end trace frame: 0xe579f27dcd0, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x2722 __ALIGN_SIZE+0x1722 rbp 0xffff800015f204f0 rbx 0xffff800015f205a0 rdx 0x2723 __ALIGN_SIZE+0x1723 rcx 0xffff80001491b000 rax 0xffff80001491b000 r8 0xffff800015f204b0 r9 0x1 r10 0xffff800000a90180 r11 0x72ff50fb5be35ff9 r12 0x3000000008 r13 0xffff800015f20500 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015f204e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=378906 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffffffff825545b0 process=0xffff8000ffff70f0 user=0xffff800015f1b000, vmspace=0xfffffd803f013220 estcpu=32, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20458 277171 81799 0 2 0 syz-executor.0 20458 134712 81799 0 3 0x4000080 rest syz-executor.0 20458 124187 81799 0 3 0x4000080 bell syz-executor.0 *20458 378906 81799 0 7 0x4000000 syz-executor.0 81799 232757 12088 0 3 0x82 nanosleep syz-executor.0 2985 227809 12088 0 3 0x82 piperd syz-executor.1 61035 472514 0 0 3 0x14200 bored sosplice 12088 328506 87463 0 3 0x82 thrsleep syz-fuzzer 12088 312192 87463 0 3 0x4000082 thrsleep syz-fuzzer 12088 238723 87463 0 3 0x4000082 thrsleep syz-fuzzer 12088 297531 87463 0 3 0x4000082 thrsleep syz-fuzzer 12088 229649 87463 0 3 0x4000082 thrsleep syz-fuzzer 12088 91724 87463 0 3 0x4000082 kqread syz-fuzzer 12088 397940 87463 0 3 0x4000082 thrsleep syz-fuzzer 87463 366339 6017 0 3 0x10008a pause ksh 6017 261503 86558 0 3 0x92 select sshd 64038 47711 1 0 3 0x100083 ttyin getty 86558 147413 1 0 3 0x80 select sshd 80215 102979 36194 73 3 0x100090 kqread syslogd 36194 103245 1 0 3 0x100082 netio syslogd 80822 68170 1 77 3 0x100090 poll dhclient 44550 295692 1 0 3 0x80 poll dhclient 31782 82295 0 0 2 0x14200 zerothread 10101 369554 0 0 3 0x14200 aiodoned aiodoned 94491 227587 0 0 3 0x14200 syncer update 67544 227868 0 0 3 0x14200 cleaner cleaner 23430 466885 0 0 3 0x14200 reaper reaper 4097 443813 0 0 3 0x14200 pgdaemon pagedaemon 22916 10832 0 0 3 0x14200 bored crynlk 3106 127838 0 0 3 0x14200 bored crypto 98986 148417 0 0 3 0x40014200 acpi0 acpi0 54929 109329 0 0 3 0x14200 bored softnet 1416 458611 0 0 3 0x14200 bored systqmp 14835 200696 0 0 3 0x14200 bored systq 64062 480640 0 0 3 0x40014200 bored softclock 33479 120028 0 0 3 0x40014200 idle0 1093 4542 0 0 3 0x14200 bored smr 1 205547 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 9542 6364K 7618K 78643K 13537 0 0 pcb 13 8K 8K 78643K 183 0 0 rtable 91 3K 4K 78643K 575 0 0 ifaddr 59 13K 15K 78643K 174 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 70 0 0 iov 0 0K 20K 78643K 124 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 2316 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 22 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 0K 1K 78643K 422 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1314 0 0 sigio 0 0K 0K 78643K 11 0 0 proc 48 38K 54K 78643K 668 0 0 subproc 32 2K 2K 78643K 119 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 136 0 0 in_multi 22 1K 2K 78643K 144 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 180 795K 795K 78643K 180 0 0 exec 0 0K 1K 78643K 347 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 102 21K 27K 78643K 3900 0 0 UVM aobj 64 3K 3K 78643K 71 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 161 0 0 NDP 13 0K 0K 78643K 53 0 0 temp 177 3535K 4174K 78643K 20383 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 16 0 12 1 0 1 1 0 8 0 rtpcb 80 87 0 85 1 0 1 1 0 8 0 rtentry 112 97 0 62 2 0 2 2 0 8 0 unpcb 120 688 0 678 3 2 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 2919 0 2919 1 1 0 1 0 8 0 tcpcb 544 292 0 288 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 880 0 873 2 1 1 2 0 8 0 nd6 48 14 0 12 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 18 0 18 6 6 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 433 0 261 14 0 14 14 0 8 0 art_table 32 434 0 261 2 0 2 2 0 8 0 art_node 16 95 0 64 1 0 1 1 0 8 0 sysvmsgpl 40 33 0 19 1 0 1 1 0 8 0 semapl 112 420 0 410 1 0 1 1 0 8 0 shmpl 112 69 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3298 0 1909 46 0 46 46 0 8 0 ffsino 240 3298 0 1909 83 0 83 83 0 8 0 nchpl 144 5308 0 3699 61 0 61 61 0 8 0 uvmvnodes 72 4142 0 0 76 0 76 76 0 8 0 vnodes 208 4142 0 0 218 0 218 218 0 8 0 namei 1024 18667 0 18667 4 3 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 18093 0 18093 11 10 1 7 0 8 1 plimitpl 152 109 0 102 1 0 1 1 0 8 0 sigapl 432 1470 0 1457 2 0 2 2 0 8 0 futexpl 56 27736 0 27736 3 2 1 1 0 8 1 knotepl 112 332 0 313 1 0 1 1 0 8 0 kqueuepl 104 561 0 559 1 0 1 1 0 8 0 pipepl 112 822 0 799 4 2 2 2 0 8 0 fdescpl 424 1471 0 1457 2 0 2 2 0 8 0 filepl 120 11619 0 11506 14 10 4 7 0 8 0 lockfpl 104 457 0 456 1 0 1 1 0 8 0 lockfspl 48 156 0 155 1 0 1 1 0 8 0 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 32 0 22 1 0 1 1 0 8 0 ucredpl 96 1455 0 1448 1 0 1 1 0 8 0 zombiepl 144 1458 0 1458 3 2 1 1 0 8 1 processpl 864 1487 0 1458 4 0 4 4 0 8 0 procpl 632 2981 0 2943 4 0 4 4 0 8 0 sosppl 128 22 0 22 4 4 0 1 0 8 0 sockpl 384 1669 0 1650 15 11 4 7 0 8 1 mcl64k 65536 267 0 267 33 32 1 29 0 8 1 mcl16k 16384 6 0 6 5 5 0 1 0 8 0 mcl12k 12288 28 0 28 4 3 1 1 0 8 1 mcl9k 9216 17 0 17 5 4 1 1 0 8 1 mcl8k 8192 30 0 30 5 4 1 1 0 8 1 mcl4k 4096 109 0 109 3 2 1 1 0 8 1 mcl2k2 2112 11 0 11 4 4 0 1 0 8 0 mcl2k 2048 60392 0 60357 18 13 5 13 0 8 0 mtagpl 80 34 0 34 3 2 1 1 0 8 1 mbufpl 256 103902 0 103829 24 16 8 21 0 8 0 bufpl 256 10679 0 3327 460 0 460 460 0 8 0 anonpl 16 153095 0 138583 133 49 84 104 0 62 25 amapchunkpl 152 7398 0 7287 40 27 13 33 0 158 8 amappl16 192 6516 0 5706 75 28 47 55 0 8 6 amappl15 184 881 0 878 1 0 1 1 0 8 0 amappl14 176 260 0 259 2 1 1 1 0 8 0 amappl12 160 373 0 369 2 1 1 1 0 8 0 amappl11 152 63 0 52 1 0 1 1 0 8 0 amappl10 144 182 0 179 1 0 1 1 0 8 0 amappl9 136 624 0 618 1 0 1 1 0 8 0 amappl8 128 203 0 178 1 0 1 1 0 8 0 amappl7 120 234 0 227 1 0 1 1 0 8 0 amappl6 112 68 0 57 1 0 1 1 0 8 0 amappl5 104 577 0 566 1 0 1 1 0 8 0 amappl4 96 1333 0 1307 1 0 1 1 0 8 0 amappl3 88 574 0 568 1 0 1 1 0 8 0 amappl2 80 11002 0 10934 4 2 2 3 0 8 0 amappl1 72 35690 0 35274 28 19 9 20 0 8 0 amappl 80 3282 0 3243 2 1 1 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 70 0 7 2 0 2 2 0 8 0 uaddrrnd 24 1473 0 1457 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1473 0 1457 1 0 1 1 0 8 0 vmmpekpl 168 12834 0 12809 2 0 2 2 0 8 0 vmmpepl 168 176903 0 175042 178 73 105 106 0 357 21 vmsppl 272 1470 0 1457 2 1 1 2 0 8 0 pdppl 4096 2952 0 2918 6 1 5 6 0 8 0 pvpl 32 483758 0 466147 388 90 298 341 0 265 154 pmappl 200 1472 0 1459 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 664 0 79 17 0 17 17 0 8 0