panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 205819 92113 0 0 0 1 syz-executor.0 * 2345 92113 0 0 0x4000000 0K 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(ffff800022bb3670) at vm_get_info+0x9d VOP_IOCTL(fffffd806e163b60,c0185603,ffff800022bb3670,1,fffffd807f7c66c0,ffff800020acec78) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806722c6a8,c0185603,ffff800022bb3670,ffff800020acec78) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acec78,ffff800022bb3788,ffff800022bb37d0) at sys_ioctl+0x5b9 syscall(ffff800022bb3850) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bb3850) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,de33848c010) at Xsyscall+0x128 end of kernel end trace frame: 0xde592eb8d80, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic malloc: allocation too large, type = 2, size = 18446744073709551296 ddb{0}> 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(ffff800022bb3670) at vm_get_info+0x9d VOP_IOCTL(fffffd806e163b60,c0185603,ffff800022bb3670,1,fffffd807f7c66c0,ffff800020acec78) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806722c6a8,c0185603,ffff800022bb3670,ffff800020acec78) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acec78,ffff800022bb3788,ffff800022bb37d0) at sys_ioctl+0x5b9 syscall(ffff800022bb3850) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bb3850) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,de33848c010) at Xsyscall+0x128 end of kernel end trace frame: 0xde592eb8d80, count: -9 ddb{0}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x24cd __ALIGN_SIZE+0x14cd rbp 0xffff800022bb32b0 rbx 0xffff800022bb3360 rdx 0x24ce __ALIGN_SIZE+0x14ce rcx 0xffff800023b88000 rax 0xffff800023b88000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x9f09266de5f1c785 r12 0x3000000008 r13 0xffff800022bb32c0 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bb32a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=2345 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace510,0xffff800020ace2a8 process=0xffff800020adc380 user=0xffff800022bae000, vmspace=0xfffffd807f00c8a0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92113 205819 89716 0 7 0 syz-executor.0 *92113 2345 89716 0 7 0x4000000 syz-executor.0 81878 273309 30652 0 2 0 syz-executor.1 81878 440615 30652 0 2 0x4000000 syz-executor.1 81878 72556 30652 0 3 0x4000080 fsleep syz-executor.1 81878 505979 30652 0 2 0x4000000 syz-executor.1 30652 117121 650 0 3 0x82 nanosleep syz-executor.1 89716 71704 650 0 3 0x82 nanosleep syz-executor.0 42180 355299 0 0 3 0x14200 acct acct 54291 46378 0 0 3 0x14200 bored sosplice 650 471800 61855 0 3 0x82 kqread syz-fuzzer 650 177912 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 131862 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 253021 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 132936 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 96192 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 42123 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 39476 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 196816 61855 0 3 0x4000082 thrsleep syz-fuzzer 650 186717 61855 0 3 0x4000082 thrsleep syz-fuzzer 61855 473971 95231 0 3 0x10008a pause ksh 95231 69408 55033 0 3 0x92 select sshd 73993 307705 1 0 3 0x100083 ttyin getty 55033 6613 1 0 3 0x80 select sshd 52528 7949 85210 74 3 0x100092 bpf pflogd 85210 238037 1 0 3 0x80 netio pflogd 24263 180888 43661 73 3 0x100090 kqread syslogd 43661 402442 1 0 3 0x100082 netio syslogd 61507 267777 1 77 3 0x100090 poll dhclient 57086 10836 1 0 3 0x80 poll dhclient 36781 208910 0 0 2 0x14200 zerothread 12952 137729 0 0 3 0x14200 aiodoned aiodoned 12799 268093 0 0 3 0x14200 syncer update 84030 480475 0 0 3 0x14200 cleaner cleaner 99276 254467 0 0 3 0x14200 reaper reaper 10643 90230 0 0 3 0x14200 pgdaemon pagedaemon 73175 315001 0 0 3 0x14200 bored crynlk 72727 227932 0 0 3 0x14200 bored crypto 47425 176713 0 0 3 0x40014200 acpi0 acpi0 57025 325771 0 0 3 0x40014200 idle1 95934 212224 0 0 3 0x14200 bored softnet 71397 370921 0 0 3 0x14200 bored systqmp 14910 140926 0 0 3 0x14200 bored systq 22640 481444 0 0 3 0x40014200 bored softclock 37508 429939 0 0 3 0x40014200 idle0 95327 41975 0 0 3 0x14200 bored smr 1 14839 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 92113 (syz-executor.0) thread 0xffff800020acec78 (2345) shared rwlock vmlistlock r = 0 (0xffff80000066e478) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 vm_get_info+0x39 sys/arch/amd64/amd64/vmm.c:3712 #2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82663928) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9560 6496K 7970K 78643K 16481 0 0 pcb 13 8K 8K 78643K 186 0 0 rtable 108 4K 4K 78643K 658 0 0 ifaddr 67 14K 15K 78643K 208 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1524 0 0 iov 0 0K 24K 78643K 134 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 3073 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 1K 1K 78643K 4 0 0 sem 12 0K 0K 78643K 133 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1343 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 61 63K 95K 78643K 751 0 0 subproc 32 2K 2K 78643K 136 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 110 0 0 in_multi 33 2K 2K 78643K 139 0 0 ether_multi 1 0K 0K 78643K 6 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 150 662K 662K 78643K 150 0 0 exec 0 0K 1K 78643K 378 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 22K 78643K 5422 0 0 UVM aobj 95 3K 3K 78643K 105 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 162 0 0 NDP 14 0K 0K 78643K 64 0 0 temp 186 3556K 3635K 78643K 49471 0 0 kqueue 0 0K 0K 78643K 8 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 20 0 14 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 77 0 75 1 0 1 1 0 8 0 rtentry 112 108 0 64 2 0 2 2 0 8 0 unpcb 120 595 0 585 3 2 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6106 0 6106 1 1 0 1 0 8 0 tcpcb 544 323 0 319 1 0 1 1 0 8 0 inpcb 280 924 0 917 5 4 1 3 0 8 0 rttmr 72 1 0 1 1 1 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 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1128 16 0 16 6 5 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 57 0 22 1 0 1 1 0 8 0 pfstkey 112 57 0 22 2 0 2 2 0 8 0 pfstate 328 57 0 22 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 496 0 281 15 1 14 15 0 8 0 art_table 32 497 0 281 2 0 2 2 0 8 0 art_node 16 107 0 67 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 31 2 1 1 1 0 8 0 semapl 112 131 0 121 1 0 1 1 0 8 0 shmpl 112 103 0 10 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3658 0 2261 46 0 46 46 0 8 0 ffsino 272 3658 0 2261 95 0 95 95 0 8 0 nchpl 144 5901 0 4289 61 0 61 61 0 8 0 uvmvnodes 72 5190 0 0 95 0 95 95 0 8 0 vnodes 208 5190 0 0 274 0 274 274 0 8 0 namei 1024 20290 0 20290 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 2 0 2 1 1 0 1 0 8 0 scxspl 192 15981 0 15981 11 9 2 7 0 8 2 plimitpl 152 160 0 152 1 0 1 1 0 8 0 sigapl 432 1525 0 1509 3 1 2 3 0 8 0 futexpl 56 24403 0 24402 1 0 1 1 0 8 0 knotepl 112 336 0 317 1 0 1 1 0 8 0 kqueuepl 104 305 0 303 1 0 1 1 0 8 0 pipepl 112 812 0 793 3 2 1 2 0 8 0 fdescpl 488 1526 0 1509 3 0 3 3 0 8 0 filepl 152 11914 0 11810 17 12 5 9 0 8 1 lockfpl 104 382 0 381 1 0 1 1 0 8 0 lockfspl 48 138 0 137 1 0 1 1 0 8 0 sessionpl 112 24 0 13 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 2254 0 2245 1 0 1 1 0 8 0 zombiepl 144 1509 0 1509 3 2 1 1 0 8 1 processpl 896 1543 0 1509 4 0 4 4 0 8 0 procpl 632 4393 0 4346 5 0 5 5 0 8 0 srpgc 64 12 0 12 4 3 1 1 0 8 1 sosppl 128 13 0 13 3 3 0 1 0 8 0 sockpl 384 1621 0 1602 13 10 3 7 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 153 0 0 19 0 19 19 0 8 0 mtagpl 80 17 0 0 1 0 1 1 0 8 0 mbufpl 256 204 0 0 11 0 11 11 0 8 0 bufpl 256 12966 0 5918 441 0 441 441 0 8 0 anonpl 16 152600 0 140798 90 28 62 73 0 124 3 amapchunkpl 152 9050 0 8936 12 6 6 8 0 158 0 amappl16 192 7120 0 6337 71 31 40 52 0 8 0 amappl15 184 114 0 114 2 1 1 1 0 8 1 amappl14 176 457 0 455 2 1 1 1 0 8 0 amappl13 168 162 0 159 1 0 1 1 0 8 0 amappl12 160 156 0 155 2 1 1 1 0 8 0 amappl11 152 249 0 234 1 0 1 1 0 8 0 amappl10 144 33 0 28 1 0 1 1 0 8 0 amappl9 136 1001 0 995 1 0 1 1 0 8 0 amappl8 128 534 0 506 2 0 2 2 0 8 0 amappl7 120 82 0 73 1 0 1 1 0 8 0 amappl6 112 259 0 247 1 0 1 1 0 8 0 amappl5 104 322 0 308 1 0 1 1 0 8 0 amappl4 96 1793 0 1755 1 0 1 1 0 8 0 amappl3 88 171 0 164 1 0 1 1 0 8 0 amappl2 80 11070 0 10992 4 2 2 3 0 8 0 amappl1 72 43918 0 43454 26 16 10 20 0 8 0 amappl 80 4731 0 4690 2 0 2 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 104 0 10 2 0 2 2 0 8 0 uaddrrnd 24 1528 0 1509 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1528 0 1509 1 0 1 1 0 8 0 vmmpekpl 168 14419 0 14383 2 0 2 2 0 8 0 vmmpepl 168 194695 0 192659 185 72 113 117 0 357 22 vmsppl 368 1525 0 1509 2 0 2 2 0 8 0 pdppl 4096 3063 0 3022 7 1 6 6 0 8 0 pvpl 32 439342 0 424258 228 63 165 175 0 265 22 pmappl 232 1527 0 1511 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 608 0 7 18 0 18 18 0 8 0