panic: malloc: allocation too large, type = 2, size = 18446744073709550656 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *272780 9552 0 0 0x4000000 0 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(fffffffffffffc40,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800014890d60) at vm_get_info+0x9a VOP_IOCTL(fffffd8036134680,c0185603,ffff800014890d60,41,fffffd803f7c6a20,ffff8000ffff2c70) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803a22de10,c0185603,ffff800014890d60,ffff8000ffff2c70) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2c70,ffff800014890e78,ffff800014890ec0) at sys_ioctl+0x5b9 syscall(ffff800014890f40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,746e206010) at Xsyscall+0x128 end of kernel end trace frame: 0x76b5daa980, 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(ffff800014890d60) at vm_get_info+0x9a VOP_IOCTL(fffffd8036134680,c0185603,ffff800014890d60,41,fffffd803f7c6a20,ffff8000ffff2c70) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803a22de10,c0185603,ffff800014890d60,ffff8000ffff2c70) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2c70,ffff800014890e78,ffff800014890ec0) at sys_ioctl+0x5b9 syscall(ffff800014890f40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,746e206010) at Xsyscall+0x128 end of kernel end trace frame: 0x76b5daa980, count: -9 ddb> show registers rdi 0xffffffff81346297 db_enter+0x17 rsi 0x24ca __ALIGN_SIZE+0x14ca rbp 0xffff8000148909a0 rbx 0xffff800014890a50 rdx 0x24cb __ALIGN_SIZE+0x14cb rcx 0xffff80001491b000 rax 0xffff80001491b000 r8 0xffff800014890960 r9 0x1 r10 0xffff800000a54b80 r11 0xb6e17dda4292e75d r12 0x3000000008 r13 0xffff8000148909b0 r14 0x100 r15 0x1 rip 0xffffffff81346298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014890990 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=272780 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2290,0xffffffff82572760 process=0xffff8000ffff6370 user=0xffff80001488b000, vmspace=0xfffffd803f014220 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 9552 233203 2832 0 2 0 syz-executor.1 * 9552 272780 2832 0 7 0x4000000 syz-executor.1 2832 58075 93449 0 3 0x82 nanosleep syz-executor.1 78294 205790 1 0 3 0x80 nanosleep init 44390 143799 93449 0 2 0x2 syz-executor.0 54578 277806 0 0 3 0x14200 bored sosplice 93449 38091 91877 0 3 0x82 thrsleep syz-fuzzer 93449 466321 91877 0 3 0x4000082 nanosleep syz-fuzzer 93449 402077 91877 0 3 0x4000082 thrsleep syz-fuzzer 93449 160673 91877 0 3 0x4000082 thrsleep syz-fuzzer 93449 466027 91877 0 3 0x4000082 kqread syz-fuzzer 93449 117922 91877 0 3 0x4000082 thrsleep syz-fuzzer 93449 380972 91877 0 3 0x4000082 thrsleep syz-fuzzer 91877 515424 70850 0 3 0x10008a pause ksh 70850 312224 13385 0 3 0x92 select sshd 13385 460352 1 0 3 0x80 select sshd 68586 194776 42103 73 3 0x100090 kqread syslogd 42103 273648 1 0 3 0x100082 netio syslogd 24723 390120 1 77 3 0x100090 poll dhclient 6725 34229 1 0 3 0x80 poll dhclient 86674 191792 0 0 2 0x14200 zerothread 66163 319272 0 0 3 0x14200 aiodoned aiodoned 76023 77342 0 0 3 0x14200 syncer update 67322 290313 0 0 3 0x14200 cleaner cleaner 60116 222756 0 0 3 0x14200 reaper reaper 14290 306766 0 0 3 0x14200 pgdaemon pagedaemon 1660 38084 0 0 3 0x14200 bored crynlk 43018 500810 0 0 3 0x14200 bored crypto 24247 74212 0 0 3 0x40014200 acpi0 acpi0 56986 207127 0 0 3 0x14200 bored softnet 98441 113125 0 0 3 0x14200 bored systqmp 54066 171400 0 0 3 0x14200 bored systq 52482 255581 0 0 3 0x40014200 bored softclock 52024 124786 0 0 3 0x40014200 idle0 64681 431203 0 0 3 0x14200 bored smr 1 312943 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 9590 6819K 7111K 78643K 17407 0 0 pcb 13 8K 8K 78643K 302 0 0 rtable 111 4K 4K 78643K 838 0 0 ifaddr 74 15K 15K 78643K 264 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 145 0 0 iov 0 0K 24K 78643K 274 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 3862 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 30 0 0 VM map 2 0K 0K 78643K 8 0 0 sem 12 0K 0K 78643K 286 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 2779 0 0 sigio 0 0K 0K 78643K 28 0 0 proc 49 38K 63K 78643K 1007 0 0 subproc 32 2K 2K 78643K 176 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 232 0 0 in_multi 33 2K 2K 78643K 200 0 0 ether_multi 1 0K 0K 78643K 14 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 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 554 0 0 pfkey data 0 0K 0K 78643K 2 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 94 21K 29K 78643K 7339 0 0 UVM aobj 87 6K 6K 78643K 106 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 322 0 0 NDP 17 0K 0K 78643K 83 0 0 temp 205 3536K 3611K 78643K 53473 0 0 kqueue 0 0K 0K 78643K 18 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 22 0 16 1 0 1 1 0 8 0 rtpcb 80 151 0 149 1 0 1 1 0 8 0 rtentry 112 125 0 81 2 0 2 2 0 8 0 unpcb 120 937 0 929 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 2089 0 2089 1 1 0 1 0 8 0 tcpcb 544 494 0 490 1 0 1 1 0 8 0 ipq 40 5 0 5 3 3 0 1 0 8 0 ipqe 40 14 0 14 3 3 0 1 0 8 0 inpcb 280 1438 0 1431 1 0 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 4 0 4 2 2 0 1 0 8 0 nd6 48 20 0 16 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 ppxss 1128 29 0 29 10 9 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 574 0 359 14 0 14 14 0 8 0 art_table 32 575 0 359 2 0 2 2 0 8 0 art_node 16 124 0 84 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semapl 112 284 0 274 1 0 1 1 0 8 0 shmpl 112 104 0 19 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5780 0 4385 46 0 46 46 0 8 0 ffsino 240 5780 0 4385 83 0 83 83 0 8 0 nchpl 144 9807 0 8213 60 0 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 32426 0 32426 2 1 1 1 0 8 1 vmpool 520 6 0 6 3 3 0 1 0 8 0 scsiplug 64 7 0 7 5 5 0 1 0 8 0 scxspl 192 30043 0 30043 21 19 2 7 0 8 2 plimitpl 152 219 0 211 1 0 1 1 0 8 0 sigapl 432 2930 0 2916 2 0 2 2 0 8 0 futexpl 56 44713 0 44713 1 0 1 1 0 8 1 knotepl 112 747 0 728 1 0 1 1 0 8 0 kqueuepl 104 626 0 624 1 0 1 1 0 8 0 pipepl 112 1442 0 1423 1 0 1 1 0 8 0 fdescpl 424 2931 0 2916 2 0 2 2 0 8 0 filepl 120 18426 0 18324 4 0 4 4 0 8 0 lockfpl 104 898 0 897 1 0 1 1 0 8 0 lockfspl 48 309 0 308 1 0 1 1 0 8 0 sessionpl 112 29 0 17 1 0 1 1 0 8 0 pgrppl 48 57 0 45 1 0 1 1 0 8 0 ucredpl 96 4670 0 4663 1 0 1 1 0 8 0 zombiepl 144 2918 0 2916 2 1 1 1 0 8 0 processpl 864 2947 0 2916 4 0 4 4 0 8 0 procpl 632 6255 0 6217 4 0 4 4 0 8 0 sosppl 128 29 0 29 9 8 1 1 0 8 1 sockpl 384 2565 0 2548 3 0 3 3 0 8 1 mcl64k 65536 61 0 61 10 9 1 1 0 8 1 mcl16k 16384 16 0 16 7 6 1 1 0 8 1 mcl12k 12288 43 0 43 4 3 1 1 0 8 1 mcl9k 9216 30 0 30 10 9 1 1 0 8 1 mcl8k 8192 34 0 34 6 6 0 1 0 8 0 mcl4k 4096 132 0 132 4 3 1 1 0 8 1 mcl2k2 2112 19 0 19 8 8 0 1 0 8 0 mcl2k 2048 60700 0 60654 16 9 7 15 0 8 0 mtagpl 80 94 0 83 2 1 1 1 0 8 0 mbufpl 256 110426 0 110342 12 3 9 10 0 8 1 bufpl 256 13469 0 8420 316 0 316 316 0 8 0 anonpl 16 249723 0 238634 100 38 62 68 0 62 9 amapchunkpl 152 12111 0 12007 26 20 6 10 0 158 1 amappl16 192 13735 0 13039 81 44 37 48 0 8 2 amappl15 184 683 0 682 2 1 1 1 0 8 0 amappl14 176 381 0 376 1 0 1 1 0 8 0 amappl13 168 451 0 451 2 2 0 1 0 8 0 amappl12 160 29 0 27 1 0 1 1 0 8 0 amappl11 152 1063 0 1052 1 0 1 1 0 8 0 amappl10 144 296 0 293 1 0 1 1 0 8 0 amappl9 136 811 0 805 1 0 1 1 0 8 0 amappl8 128 327 0 301 1 0 1 1 0 8 0 amappl7 120 370 0 363 1 0 1 1 0 8 0 amappl6 112 1050 0 1039 1 0 1 1 0 8 0 amappl5 104 204 0 193 1 0 1 1 0 8 0 amappl4 96 3618 0 3590 1 0 1 1 0 8 0 amappl3 88 194 0 188 1 0 1 1 0 8 0 amappl2 80 22885 0 22817 3 1 2 3 0 8 0 amappl1 72 60477 0 60073 27 18 9 20 0 8 0 amappl 80 6596 0 6560 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 105 0 19 2 0 2 2 0 8 0 uaddrrnd 24 2937 0 2916 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2937 0 2916 1 0 1 1 0 8 0 vmmpekpl 168 22026 0 21999 2 0 2 2 0 8 0 vmmpepl 168 343571 0 341806 201 99 102 102 0 357 19 vmsppl 272 2930 0 2916 3 1 2 2 0 8 1 pdppl 4096 5880 0 5844 6 1 5 6 0 8 0 pvpl 32 701155 0 686990 234 78 156 162 0 265 29 pmappl 200 2936 0 2922 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 486 0 41 13 0 13 13 0 8 0 ddb> serialport: VM disconnected.