panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *480075 51880 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(ffff800014924620) at vm_get_info+0x9a VOP_IOCTL(fffffd80360f89c0,c0185603,ffff800014924620,41,fffffd803f7c6ae0,ffff8000ffff49f0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803e1fcbb8,c0185603,ffff800014924620,ffff8000ffff49f0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff49f0,ffff800014924738,ffff800014924780) at sys_ioctl+0x5b9 syscall(ffff800014924800) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,80c7ed79010) at Xsyscall+0x128 end of kernel end trace frame: 0x80eb29d2240, 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(ffff800014924620) at vm_get_info+0x9a VOP_IOCTL(fffffd80360f89c0,c0185603,ffff800014924620,41,fffffd803f7c6ae0,ffff8000ffff49f0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803e1fcbb8,c0185603,ffff800014924620,ffff8000ffff49f0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff49f0,ffff800014924738,ffff800014924780) at sys_ioctl+0x5b9 syscall(ffff800014924800) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,80c7ed79010) at Xsyscall+0x128 end of kernel end trace frame: 0x80eb29d2240, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014924260 rbx 0xffff800014924310 rdx 0x2 rcx 0 rax 0 r8 0xffff800014924220 r9 0x1 r10 0 r11 0xcc6e069c4e1ac9f6 r12 0x3000000008 r13 0xffff800014924270 r14 0x100 r15 0x1 rip 0xffffffff813eb308 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014924250 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=480075 stat=onproc flags process=0 proc=4000000 pri=53, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff5648,0xffff8000ffff5b48 process=0xffff8000ffff6a30 user=0xffff80001491f000, vmspace=0xfffffd803f013110 estcpu=9, cpticks=3, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13530 171737 38407 0 2 0 syz-executor.0 51880 170104 54323 0 2 0 syz-executor.1 *51880 480075 54323 0 7 0x4000000 syz-executor.1 51880 175255 54323 0 3 0x4000080 fsleep syz-executor.1 54323 271709 81453 0 2 0x482 syz-executor.1 38407 64195 81453 0 2 0x482 syz-executor.0 81453 390681 77956 0 3 0x82 kqread syz-execprog 81453 484399 77956 0 3 0x4000082 thrsleep syz-execprog 81453 73759 77956 0 3 0x4000082 thrsleep syz-execprog 81453 259280 77956 0 3 0x4000082 thrsleep syz-execprog 81453 185384 77956 0 3 0x4000082 thrsleep syz-execprog 81453 282583 77956 0 3 0x4000082 thrsleep syz-execprog 81453 177588 77956 0 3 0x4000082 thrsleep syz-execprog 77956 190994 11718 0 3 0x10008a pause ksh 11718 374127 119 0 3 0x92 select sshd 58822 438951 1 0 3 0x100083 ttyin getty 119 125964 1 0 3 0x80 select sshd 51160 301589 29953 73 2 0x100010 syslogd 29953 92650 1 0 3 0x100082 netio syslogd 56617 168098 1 77 3 0x100090 poll dhclient 44960 254759 1 0 3 0x80 poll dhclient 2813 142241 0 0 2 0x14200 zerothread 94564 124800 0 0 3 0x14200 aiodoned aiodoned 18760 151049 0 0 3 0x14200 syncer update 13977 238475 0 0 3 0x14200 cleaner cleaner 43035 290329 0 0 3 0x14200 reaper reaper 50839 404012 0 0 3 0x14200 pgdaemon pagedaemon 72657 486439 0 0 3 0x14200 bored crynlk 18400 11696 0 0 3 0x14200 bored crypto 2221 452351 0 0 3 0x40014200 acpi0 acpi0 18161 370328 0 0 3 0x14200 bored softnet 31758 13839 0 0 3 0x14200 bored systqmp 45631 184891 0 0 3 0x14200 bored systq 75662 120841 0 0 3 0x40014200 bored softclock 78962 381768 0 0 3 0x40014200 idle0 4855 2612 0 0 3 0x14200 bored smr 1 515184 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 9438 6311K 6311K 78643K 10531 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 105 3K 3K 78643K 191 0 0 ifaddr 34 9K 9K 78643K 34 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 17 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 75K 78643K 1202 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 16K 24K 78643K 40 0 0 proc 47 38K 54K 78643K 347 0 0 subproc 0 0K 1K 78643K 17 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 203 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 75 20K 20K 78643K 1066 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 9 0K 0K 78643K 9 0 0 temp 46 3518K 3582K 78643K 3360 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 6 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 39 0 31 1 0 1 1 0 8 0 syncache 264 8 0 8 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 544 14 0 10 1 0 1 1 0 8 0 inpcb 280 36 0 29 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 213 0 0 14 0 14 14 0 8 0 art_table 32 214 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1428 0 28 46 0 46 46 0 8 0 ffsino 240 1428 0 28 83 0 83 83 0 8 0 nchpl 144 1692 0 80 61 1 60 60 0 8 0 uvmvnodes 72 1454 0 0 27 0 27 27 0 8 0 vnodes 208 1454 0 0 77 0 77 77 0 8 0 namei 1024 4470 0 4470 1 0 1 1 0 8 1 vmpool 520 2 0 2 1 0 1 1 0 8 1 scxspl 192 4953 0 4953 8 1 7 7 0 8 7 plimitpl 152 19 0 12 1 0 1 1 0 8 0 sigapl 432 233 0 219 2 0 2 2 0 8 0 futexpl 56 12 0 11 2 1 1 1 0 8 0 knotepl 112 105 0 88 1 0 1 1 0 8 0 kqueuepl 104 3 0 1 1 0 1 1 0 8 0 pipepl 112 210 0 191 2 1 1 1 0 8 0 fdescpl 424 234 0 219 2 0 2 2 0 8 0 filepl 120 1300 0 1234 3 1 2 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 26 0 16 1 0 1 1 0 8 0 pgrppl 48 26 0 16 1 0 1 1 0 8 0 ucredpl 96 68 0 61 1 0 1 1 0 8 0 zombiepl 144 219 0 219 2 1 1 1 0 8 1 processpl 864 248 0 219 4 0 4 4 0 8 0 procpl 632 263 0 226 4 0 4 4 0 8 0 sockpl 384 94 0 77 2 0 2 2 0 8 0 mcl4k 4096 16 0 16 1 0 1 1 0 8 1 mcl2k 2048 14388 0 14356 9 3 6 8 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 24226 0 24120 9 2 7 7 0 8 0 bufpl 256 6396 0 1338 317 0 317 317 0 8 0 anonpl 16 29262 0 27750 15 5 10 13 0 62 1 amapchunkpl 152 983 0 917 7 2 5 5 0 158 1 amappl16 192 185 0 152 3 1 2 2 0 8 0 amappl15 184 10 0 6 1 0 1 1 0 8 0 amappl14 176 35 0 34 2 1 1 1 0 8 0 amappl13 168 2 0 2 1 1 0 1 0 8 0 amappl12 160 19 0 17 1 0 1 1 0 8 0 amappl11 152 44 0 33 1 0 1 1 0 8 0 amappl10 144 22 0 20 1 0 1 1 0 8 0 amappl9 136 797 0 791 1 0 1 1 0 8 0 amappl8 128 160 0 151 1 0 1 1 0 8 0 amappl7 120 58 0 52 1 0 1 1 0 8 0 amappl6 112 109 0 97 1 0 1 1 0 8 0 amappl5 104 233 0 223 1 0 1 1 0 8 0 amappl4 96 538 0 515 1 0 1 1 0 8 0 amappl3 88 154 0 149 1 0 1 1 0 8 0 amappl2 80 1041 0 976 4 2 2 3 0 8 0 amappl1 72 16240 0 15821 25 10 15 20 0 8 4 amappl 80 523 0 492 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 236 0 219 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 236 0 219 1 0 1 1 0 8 0 vmmpekpl 168 8785 0 8769 1 0 1 1 0 8 0 vmmpepl 168 36448 0 35488 88 16 72 76 0 357 30 vmsppl 272 233 0 219 3 1 2 2 0 8 1 pdppl 4096 478 0 442 6 0 6 6 0 8 1 pvpl 32 149016 0 145126 116 6 110 114 0 265 76 pmappl 200 235 0 221 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 450 0 8 13 0 13 13 0 8 0