panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *239830 13593 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(ffff800015331630) at vm_get_info+0x9a VOP_IOCTL(fffffd803849c340,c0185603,ffff800015331630,1,fffffd803f7c6960,ffff800014916290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8036233cb0,c0185603,ffff800015331630,ffff800014916290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014916290,ffff800015331748,ffff800015331790) at sys_ioctl+0x5b9 syscall(ffff800015331810) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,793a87d10e0) at Xsyscall+0x128 end of kernel end trace frame: 0x795fd271df0, 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(ffff800015331630) at vm_get_info+0x9a VOP_IOCTL(fffffd803849c340,c0185603,ffff800015331630,1,fffffd803f7c6960,ffff800014916290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8036233cb0,c0185603,ffff800015331630,ffff800014916290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014916290,ffff800015331748,ffff800015331790) at sys_ioctl+0x5b9 syscall(ffff800015331810) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,793a87d10e0) at Xsyscall+0x128 end of kernel end trace frame: 0x795fd271df0, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x27c2 __ALIGN_SIZE+0x17c2 rbp 0xffff800015331270 rbx 0xffff800015331320 rdx 0x27c3 __ALIGN_SIZE+0x17c3 rcx 0xffff800017577000 rax 0xffff800017577000 r8 0xffff800015331230 r9 0x1 r10 0xffff800000a62bc0 r11 0x24f6669f6d8cc3ea r12 0x3000000008 r13 0xffff800015331280 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015331260 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=239830 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014916018,0xffff8000149173e8 process=0xffff8000148a2378 user=0xffff80001532c000, vmspace=0xfffffd803f013110 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13593 252824 54175 0 2 0 syz-executor.1 13593 433436 54175 0 3 0x4000080 lockf syz-executor.1 *13593 239830 54175 0 7 0x4000000 syz-executor.1 13593 152354 54175 0 2 0x4000000 syz-executor.1 58783 59446 1 0 3 0x100083 ttyin getty 54175 299982 77119 0 3 0x82 nanosleep syz-executor.1 19188 331480 77119 0 2 0x2 syz-executor.0 73975 28569 0 0 3 0x14200 bored sosplice 77119 250024 49106 0 3 0x82 thrsleep syz-fuzzer 77119 214157 49106 0 3 0x4000082 nanosleep syz-fuzzer 77119 520421 49106 0 3 0x4000082 thrsleep syz-fuzzer 77119 227189 49106 0 3 0x4000082 thrsleep syz-fuzzer 77119 236714 49106 0 3 0x4000082 kqread syz-fuzzer 77119 376590 49106 0 3 0x4000082 thrsleep syz-fuzzer 77119 4673 49106 0 3 0x4000082 thrsleep syz-fuzzer 49106 295105 50338 0 3 0x10008a pause ksh 50338 11198 57047 0 3 0x92 select sshd 57047 312524 1 0 3 0x80 select sshd 12129 146236 86975 73 3 0x100090 kqread syslogd 86975 395601 1 0 3 0x100082 netio syslogd 50688 396295 1 77 3 0x100090 poll dhclient 98483 340634 1 0 3 0x80 poll dhclient 54118 177260 0 0 2 0x14200 zerothread 60099 13021 0 0 3 0x14200 aiodoned aiodoned 18593 510695 0 0 3 0x14200 syncer update 75614 225449 0 0 3 0x14200 cleaner cleaner 50800 398439 0 0 3 0x14200 reaper reaper 2306 408748 0 0 3 0x14200 pgdaemon pagedaemon 72566 416133 0 0 3 0x14200 bored crynlk 75587 387027 0 0 3 0x14200 bored crypto 58059 310089 0 0 3 0x40014200 acpi0 acpi0 44941 308823 0 0 3 0x14200 bored softnet 34308 465007 0 0 3 0x14200 bored systqmp 54089 282599 0 0 3 0x14200 bored systq 40338 14104 0 0 3 0x40014200 bored softclock 10906 8928 0 0 3 0x40014200 idle0 89663 368881 0 0 3 0x14200 bored smr 1 461072 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 9538 6424K 7132K 78643K 15656 0 0 pcb 13 8K 8K 78643K 269 0 0 rtable 115 12K 12K 78643K 770 0 0 ifaddr 64 14K 15K 78643K 257 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 92 0 0 iov 0 0K 48K 78643K 3617 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 3206 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 44 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 1K 1K 78643K 193 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 2153 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 50 38K 63K 78643K 795 0 0 subproc 32 2K 2K 78643K 156 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 230 0 0 in_multi 33 2K 2K 78643K 162 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 1 0K 0K 78643K 11 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 472 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 101 21K 25K 78643K 5991 0 0 UVM aobj 130 4K 4K 78643K 142 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 285 0 0 NDP 14 0K 0K 78643K 76 0 0 temp 184 3535K 3631K 78643K 55856 0 0 kqueue 0 0K 0K 78643K 17 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 21 0 15 1 0 1 1 0 8 0 rtpcb 80 141 0 139 1 0 1 1 0 8 0 rtentry 112 108 0 64 2 0 2 2 0 8 0 unpcb 120 1239 0 1227 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 5046 0 5046 1 1 0 1 0 8 0 tcpcb 544 518 0 514 3 2 1 2 0 8 0 ipq 40 3 0 3 2 2 0 1 0 8 0 ipqe 40 9 0 9 2 2 0 1 0 8 0 inpcb 280 1445 0 1438 6 5 1 2 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 14 0 10 1 0 1 1 0 8 0 pkpcb 40 16 0 16 6 6 0 1 0 8 0 ppxss 1128 30 0 30 8 8 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 499 0 281 21 6 15 16 0 8 0 art_table 32 500 0 281 2 0 2 2 0 8 0 art_node 16 105 0 65 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 7 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 191 0 181 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4641 0 3252 46 0 46 46 0 8 0 ffsino 240 4641 0 3252 83 0 83 83 0 8 0 nchpl 144 9121 0 7514 60 0 60 60 0 8 0 uvmvnodes 72 6095 0 0 111 0 111 111 0 8 0 vnodes 208 6095 0 0 321 0 321 321 0 8 0 namei 1024 28258 0 28258 3 2 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 23892 0 23892 20 19 1 7 0 8 1 plimitpl 152 184 0 177 1 0 1 1 0 8 0 sigapl 432 2304 0 2291 2 0 2 2 0 8 0 futexpl 56 46890 0 46890 3 2 1 1 0 8 1 knotepl 112 627 0 608 3 2 1 3 0 8 0 kqueuepl 104 586 0 584 1 0 1 1 0 8 0 pipepl 112 1264 0 1245 5 4 1 2 0 8 0 fdescpl 424 2305 0 2291 2 0 2 2 0 8 0 filepl 120 18405 0 18307 5 1 4 5 0 8 1 lockfpl 104 599 0 596 1 0 1 1 0 8 0 lockfspl 48 209 0 207 1 0 1 1 0 8 0 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 55 0 45 1 0 1 1 0 8 0 ucredpl 96 2594 0 2587 1 0 1 1 0 8 0 zombiepl 144 2293 0 2293 2 1 1 1 0 8 1 processpl 864 2322 0 2293 4 0 4 4 0 8 0 procpl 632 4923 0 4885 4 0 4 4 0 8 0 sosppl 128 46 0 46 10 10 0 1 0 8 0 sockpl 384 2872 0 2851 13 9 4 5 0 8 1 mcl64k 65536 1617 0 1617 192 191 1 64 0 8 1 mcl16k 16384 16 0 16 10 9 1 1 0 8 1 mcl12k 12288 49 0 49 7 6 1 1 0 8 1 mcl9k 9216 24 0 24 11 10 1 1 0 8 1 mcl8k 8192 56 0 56 9 8 1 1 0 8 1 mcl4k 4096 176 0 176 5 4 1 1 0 8 1 mcl2k2 2112 12 0 12 7 7 0 1 0 8 0 mcl2k 2048 60863 0 60818 23 16 7 18 0 8 1 mtagpl 80 60 0 42 3 2 1 1 0 8 0 mbufpl 256 111302 0 111176 105 96 9 39 0 8 0 bufpl 256 12039 0 5809 390 0 390 390 0 8 0 anonpl 16 269961 0 256118 141 73 68 74 0 62 10 amapchunkpl 152 10699 0 10590 26 21 5 10 0 158 0 amappl16 192 13262 0 12474 145 102 43 52 0 8 3 amappl15 184 1477 0 1475 2 1 1 1 0 8 0 amappl14 176 225 0 221 1 0 1 1 0 8 0 amappl13 168 16 0 15 2 1 1 1 0 8 0 amappl12 160 40 0 38 1 0 1 1 0 8 0 amappl11 152 70 0 59 1 0 1 1 0 8 0 amappl10 144 286 0 284 1 0 1 1 0 8 0 amappl9 136 1380 0 1372 1 0 1 1 0 8 0 amappl8 128 953 0 923 3 1 2 2 0 8 1 amappl7 120 348 0 343 1 0 1 1 0 8 0 amappl6 112 74 0 65 1 0 1 1 0 8 0 amappl5 104 227 0 217 1 0 1 1 0 8 0 amappl4 96 2535 0 2505 1 0 1 1 0 8 0 amappl3 88 345 0 340 1 0 1 1 0 8 0 amappl2 80 18022 0 17956 3 1 2 3 0 8 0 amappl1 72 50134 0 49723 31 22 9 20 0 8 0 amappl 80 5294 0 5257 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 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 2307 0 2291 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2307 0 2291 1 0 1 1 0 8 0 vmmpekpl 168 17727 0 17701 2 0 2 2 0 8 0 vmmpepl 168 279477 0 277627 208 120 88 109 0 357 2 vmsppl 272 2304 0 2291 2 1 1 2 0 8 0 pdppl 4096 4620 0 4586 6 1 5 6 0 8 0 pvpl 32 729223 0 712293 306 136 170 219 0 265 31 pmappl 200 2306 0 2293 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 858 0 338 18 1 17 18 0 8 0