panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *112236 67158 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(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800016972760) at vm_get_info+0x9a VOP_IOCTL(fffffd80361a04e0,c0185603,ffff800016972760,1,fffffd803f7c68a0,ffff800015935650) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803755ce10,c0185603,ffff800016972760,ffff800015935650) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800015935650,ffff800016972878,ffff8000169728c0) at sys_ioctl+0x5b9 syscall(ffff800016972940) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,67b1fc57010) at Xsyscall+0x128 end of kernel end trace frame: 0x67d650f6d20, 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(ffff800016972760) at vm_get_info+0x9a VOP_IOCTL(fffffd80361a04e0,c0185603,ffff800016972760,1,fffffd803f7c68a0,ffff800015935650) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803755ce10,c0185603,ffff800016972760,ffff800015935650) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800015935650,ffff800016972878,ffff8000169728c0) at sys_ioctl+0x5b9 syscall(ffff800016972940) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,67b1fc57010) at Xsyscall+0x128 end of kernel end trace frame: 0x67d650f6d20, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x2678 __ALIGN_SIZE+0x1678 rbp 0xffff8000169723a0 rbx 0xffff800016972450 rdx 0x2679 __ALIGN_SIZE+0x1679 rcx 0xffff80001778b000 rax 0xffff80001778b000 r8 0xffff800016972360 r9 0x1 r10 0xffff800000abc100 r11 0x9af414f2ea316e0 r12 0x3000000008 r13 0xffff8000169723b0 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016972390 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=112236 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000159349f8,0xffffffff825545b0 process=0xffff8000ffff70f0 user=0xffff80001696d000, vmspace=0xfffffd803f013660 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 67158 10769 89092 0 2 0 syz-executor.1 *67158 112236 89092 0 7 0x4000000 syz-executor.1 510 447642 15878 0 2 0x2 syz-executor.0 7982 138170 1 0 3 0x100083 ttyin getty 89092 189077 15878 0 3 0x82 nanosleep syz-executor.1 26451 483275 0 0 3 0x14200 acct acct 45311 117839 0 0 3 0x14200 bored sosplice 15878 131626 99947 0 3 0x82 thrsleep syz-fuzzer 15878 244854 99947 0 3 0x4000082 thrsleep syz-fuzzer 15878 426764 99947 0 3 0x4000082 thrsleep syz-fuzzer 15878 336450 99947 0 3 0x4000082 thrsleep syz-fuzzer 15878 108351 99947 0 3 0x4000082 kqread syz-fuzzer 15878 376291 99947 0 3 0x4000082 thrsleep syz-fuzzer 15878 364481 99947 0 3 0x4000082 thrsleep syz-fuzzer 15878 340067 99947 0 3 0x4000082 thrsleep syz-fuzzer 99947 465226 35396 0 3 0x10008a pause ksh 35396 70141 78953 0 3 0x92 select sshd 78953 312287 1 0 3 0x80 select sshd 39925 161481 16388 73 3 0x100090 kqread syslogd 16388 403424 1 0 3 0x100082 netio syslogd 44956 417406 1 77 3 0x100090 poll dhclient 48052 1848 1 0 3 0x80 poll dhclient 83969 120450 0 0 2 0x14200 zerothread 26648 391969 0 0 3 0x14200 aiodoned aiodoned 24645 465474 0 0 3 0x14200 syncer update 41960 328467 0 0 3 0x14200 cleaner cleaner 88282 518312 0 0 3 0x14200 reaper reaper 82254 182694 0 0 3 0x14200 pgdaemon pagedaemon 82705 191986 0 0 3 0x14200 bored crynlk 93177 321179 0 0 3 0x14200 bored crypto 40132 81917 0 0 3 0x40014200 acpi0 acpi0 36075 339637 0 0 3 0x14200 bored softnet 30634 75748 0 0 3 0x14200 bored systqmp 64025 507808 0 0 3 0x14200 bored systq 83322 220803 0 0 3 0x40014200 bored softclock 97075 39765 0 0 3 0x40014200 idle0 42327 321880 0 0 3 0x14200 bored smr 1 336840 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 9561 6496K 7740K 78643K 22316 0 0 pcb 13 8K 8K 78643K 429 0 0 rtable 111 4K 4K 78643K 852 0 0 ifaddr 67 15K 16K 78643K 313 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 73 0 0 iov 0 0K 24K 78643K 172 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 4572 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 45 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 0K 0K 78643K 226 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1833 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 50 38K 55K 78643K 788 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 151 0 0 in_multi 33 2K 2K 78643K 139 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 0 0K 0K 78643K 8 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 411 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 31K 78643K 5404 0 0 UVM aobj 103 3K 3K 78643K 111 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 216 0 0 NDP 15 0K 0K 78643K 93 0 0 temp 191 3532K 3600K 78643K 49327 0 0 kqueue 0 0K 0K 78643K 6 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 295 0 293 1 0 1 1 0 8 0 rtentry 112 113 0 69 2 0 2 2 0 8 0 unpcb 120 744 0 734 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 3924 0 3924 1 1 0 1 0 8 0 tcpcb 544 339 0 335 2 1 1 2 0 8 0 ipq 40 4 0 4 2 2 0 1 0 8 0 ipqe 40 10 0 10 2 2 0 1 0 8 0 inpcb 280 1674 0 1665 7 6 1 2 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 16 0 12 1 0 1 1 0 8 0 ppxss 1128 44 0 44 7 6 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 493 0 275 16 1 15 15 0 8 0 art_table 32 494 0 275 2 0 2 2 0 8 0 art_node 16 112 0 72 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semapl 112 224 0 214 1 0 1 1 0 8 0 shmpl 112 109 0 8 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4424 0 3035 46 0 46 46 0 8 0 ffsino 240 4424 0 3035 83 0 83 83 0 8 0 nchpl 144 7421 0 5805 61 0 61 61 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 25991 0 25991 2 1 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scsiplug 64 3 0 3 2 1 1 1 0 8 1 scxspl 192 19878 0 19878 13 12 1 7 0 8 1 plimitpl 152 179 0 172 1 0 1 1 0 8 0 sigapl 432 1985 0 1972 2 0 2 2 0 8 0 futexpl 56 45736 0 45736 1 0 1 1 0 8 1 knotepl 112 610 0 591 3 2 1 3 0 8 0 kqueuepl 104 649 0 647 1 0 1 1 0 8 0 pipepl 112 1724 0 1705 8 6 2 2 0 8 1 fdescpl 424 1986 0 1972 2 0 2 2 0 8 0 filepl 120 17476 0 17377 12 7 5 6 0 8 2 lockfpl 104 581 0 580 1 0 1 1 0 8 0 lockfspl 48 200 0 199 1 0 1 1 0 8 0 sessionpl 112 26 0 16 1 0 1 1 0 8 0 pgrppl 48 42 0 32 1 0 1 1 0 8 0 ucredpl 96 2948 0 2941 1 0 1 1 0 8 0 zombiepl 144 1974 0 1974 2 1 1 1 0 8 1 processpl 864 2004 0 1974 4 0 4 4 0 8 0 procpl 632 4360 0 4322 4 0 4 4 0 8 0 sosppl 128 26 0 26 5 5 0 1 0 8 0 sockpl 384 2756 0 2735 12 9 3 4 0 8 0 mcl64k 65536 56 0 56 4 3 1 1 0 8 1 mcl16k 16384 12 0 12 8 8 0 1 0 8 0 mcl12k 12288 28 0 28 9 8 1 1 0 8 1 mcl9k 9216 22 0 22 8 7 1 1 0 8 1 mcl8k 8192 52 0 52 3 3 0 1 0 8 0 mcl4k 4096 179 0 179 2 1 1 1 0 8 1 mcl2k2 2112 21 0 21 6 6 0 1 0 8 0 mcl2k 2048 53100 0 53057 18 11 7 15 0 8 0 mtagpl 80 41 0 34 2 1 1 1 0 8 0 mbufpl 256 97799 0 97713 14 6 8 10 0 8 0 bufpl 256 9974 0 4921 316 0 316 316 0 8 0 anonpl 16 193683 0 179848 89 29 60 73 0 62 1 amapchunkpl 152 9628 0 9524 29 23 6 12 0 158 0 amappl16 192 9620 0 8796 78 35 43 55 0 8 0 amappl15 184 8 0 8 1 1 0 1 0 8 0 amappl14 176 496 0 495 1 0 1 1 0 8 0 amappl13 168 16 0 15 1 0 1 1 0 8 0 amappl12 160 490 0 487 1 0 1 1 0 8 0 amappl11 152 65 0 54 1 0 1 1 0 8 0 amappl10 144 347 0 345 1 0 1 1 0 8 0 amappl9 136 1074 0 1066 1 0 1 1 0 8 0 amappl8 128 631 0 607 1 0 1 1 0 8 0 amappl7 120 392 0 386 1 0 1 1 0 8 0 amappl6 112 76 0 66 1 0 1 1 0 8 0 amappl5 104 672 0 662 1 0 1 1 0 8 0 amappl4 96 1513 0 1483 1 0 1 1 0 8 0 amappl3 88 1325 0 1320 1 0 1 1 0 8 0 amappl2 80 14595 0 14529 3 1 2 3 0 8 0 amappl1 72 45786 0 45377 28 19 9 20 0 8 0 amappl 80 4696 0 4661 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 110 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1988 0 1972 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1988 0 1972 1 0 1 1 0 8 0 vmmpekpl 168 18722 0 18694 2 0 2 2 0 8 0 vmmpepl 168 240713 0 238845 215 113 102 125 0 357 15 vmsppl 272 1985 0 1972 3 2 1 2 0 8 0 pdppl 4096 3982 0 3948 6 1 5 6 0 8 0 pvpl 32 524719 0 507874 215 60 155 175 0 265 10 pmappl 200 1987 0 1974 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 483 0 40 13 0 13 13 0 8 0