panic: malloc: allocation too large, type = 2, size = 18446744073709550176 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *370014 89621 0 0 0x4000000 1K 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(fffffffffffffa60,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800022d6afe0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e497b60,c0185603,ffff800022d6afe0,81,fffffd807f7c6900,ffff800020acf8d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8061bf4e60,c0185603,ffff800022d6afe0,ffff800020acf8d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acf8d8,ffff800022d6b0f8,ffff800022d6b140) at sys_ioctl+0x5b9 syscall(ffff800022d6b1c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d6b1c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,7bcd770d010) at Xsyscall+0x128 end of kernel end trace frame: 0x7bf34d6eaf0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic malloc: allocation too large, type = 2, size = 18446744073709550176 ddb{1}> 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(fffffffffffffa60,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800022d6afe0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e497b60,c0185603,ffff800022d6afe0,81,fffffd807f7c6900,ffff800020acf8d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8061bf4e60,c0185603,ffff800022d6afe0,ffff800020acf8d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acf8d8,ffff800022d6b0f8,ffff800022d6b140) at sys_ioctl+0x5b9 syscall(ffff800022d6b1c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d6b1c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,7bcd770d010) at Xsyscall+0x128 end of kernel end trace frame: 0x7bf34d6eaf0, count: -9 ddb{1}> show registers rdi 0xffffffff81bdfd17 db_enter+0x17 rsi 0x2559 __ALIGN_SIZE+0x1559 rbp 0xffff800022d6ac20 rbx 0xffff800022d6acd0 rdx 0x255a __ALIGN_SIZE+0x155a rcx 0xffff800020b4a000 rax 0xffff800020b4a000 r8 0xffffffff816bf1ff kprintf+0x16f r9 0x1 r10 0x25 r11 0x72aca727aaa17223 r12 0x3000000008 r13 0xffff800022d6ac30 r14 0x100 r15 0x1 rip 0xffffffff81bdfd18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d6ac10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=370014 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace790,0xffff800020acea18 process=0xffff800020a8b510 user=0xffff800022d66000, vmspace=0xfffffd807f00b730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 89621 418915 47103 0 2 0 syz-executor.1 *89621 370014 47103 0 7 0x4000000 syz-executor.1 89621 493651 47103 0 3 0x4000080 fsleep syz-executor.1 89621 275697 47103 0 3 0x4000080 fsleep syz-executor.1 77884 48314 90759 0 3 0x82 nanosleep syz-executor.0 47103 199484 90759 0 3 0x82 nanosleep syz-executor.1 83611 457660 0 0 3 0x14200 acct acct 36951 250631 0 0 3 0x14200 bored sosplice 90759 156564 97805 0 3 0x82 thrsleep syz-fuzzer 90759 221237 97805 0 3 0x4000082 thrsleep syz-fuzzer 90759 28240 97805 0 3 0x4000082 thrsleep syz-fuzzer 90759 123733 97805 0 3 0x4000082 thrsleep syz-fuzzer 90759 388099 97805 0 3 0x4000082 thrsleep syz-fuzzer 90759 42251 97805 0 3 0x4000082 kqread syz-fuzzer 90759 101455 97805 0 3 0x4000082 thrsleep syz-fuzzer 90759 13424 97805 0 3 0x4000082 thrsleep syz-fuzzer 90759 286279 97805 0 3 0x4000082 thrsleep syz-fuzzer 90759 58593 97805 0 3 0x4000082 thrsleep syz-fuzzer 97805 190223 17315 0 3 0x10008a pause ksh 17315 491976 86672 0 3 0x92 select sshd 17671 32732 1 0 3 0x100083 ttyin getty 86672 417515 1 0 3 0x80 select sshd 94348 33316 94821 74 3 0x100092 bpf pflogd 94821 1172 1 0 3 0x80 netio pflogd 25183 507722 59475 73 3 0x100090 kqread syslogd 59475 370403 1 0 3 0x100082 netio syslogd 50718 178154 1 77 3 0x100090 poll dhclient 35942 453285 1 0 3 0x80 poll dhclient 21408 198698 0 0 3 0x14200 pgzero zerothread 25162 251049 0 0 3 0x14200 aiodoned aiodoned 57250 10720 0 0 3 0x14200 syncer update 61112 387874 0 0 3 0x14200 cleaner cleaner 19663 189348 0 0 3 0x14200 reaper reaper 63291 492281 0 0 3 0x14200 pgdaemon pagedaemon 63503 85340 0 0 3 0x14200 bored crynlk 61499 326613 0 0 3 0x14200 bored crypto 7741 279452 0 0 3 0x40014200 acpi0 acpi0 71115 257644 0 0 3 0x40014200 idle1 90476 7232 0 0 3 0x14200 bored softnet 82222 146142 0 0 3 0x14200 bored systqmp 27211 124238 0 0 3 0x14200 bored systq 92648 156216 0 0 3 0x40014200 bored softclock 20063 89557 0 0 7 0x40014200 idle0 6720 221345 0 0 3 0x14200 bored smr 1 297671 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 89621 (syz-executor.1) thread 0xffff800020acf8d8 (370014) 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 (0xffffffff82662188) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9620 7102K 16110K 78643K 49954 0 0 pcb 13 8K 8K 78643K 764 0 0 rtable 112 12K 12K 78643K 2126 0 0 ifaddr 85 19K 20K 78643K 828 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1731 0 0 iov 0 0K 24K 78643K 562 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 12141 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 3 5K 5K 78643K 98 0 0 VM map 2 1K 1K 78643K 11 0 0 sem 12 1K 1K 78643K 1280 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 6182 0 0 sigio 0 0K 0K 78643K 57 0 0 proc 62 63K 95K 78643K 1664 0 0 subproc 32 2K 2K 78643K 357 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 537 0 0 in_multi 33 2K 2K 78643K 328 0 0 ether_multi 1 0K 0K 78643K 16 0 0 mrt 1 0K 0K 78643K 17 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 198 874K 874K 78643K 198 0 0 exec 0 0K 1K 78643K 946 0 0 pfkey data 0 0K 4K 78643K 1 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 132 23K 31K 78643K 21624 0 0 UVM aobj 130 6K 6K 78643K 152 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 743 0 0 NDP 20 0K 0K 78643K 246 0 0 temp 228 3557K 4195K 78643K 77958 0 0 kqueue 0 0K 0K 78643K 65 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 48 0 42 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 319 0 317 1 0 1 1 0 8 0 rtentry 112 235 0 191 2 0 2 2 0 8 0 unpcb 120 15664 0 15635 17 15 2 3 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5426 0 5426 1 1 0 1 0 8 0 tcpcb 544 1308 0 1304 3 2 1 3 0 8 0 inpcb 280 3913 0 3906 10 9 1 3 0 8 0 rttmr 72 3 0 3 1 1 0 1 0 8 0 nd6 48 36 0 32 1 0 1 1 0 8 0 pkpcb 40 28 0 28 12 12 0 1 0 8 0 ppxss 1128 136 0 136 15 14 1 1 0 8 1 pffrag 232 3 0 3 2 2 0 1 0 482 0 pffrnode 88 3 0 3 2 2 0 1 0 8 0 pffrent 40 10 0 10 4 4 0 1 0 8 0 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 201 0 176 1 0 1 1 0 8 0 pfstkey 112 201 0 176 2 0 2 2 0 8 0 pfstate 328 201 0 176 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 966 0 748 22 8 14 15 0 8 0 art_table 32 967 0 748 2 0 2 2 0 8 0 art_node 16 223 0 183 1 0 1 1 0 8 0 sysvmsgpl 40 125 0 122 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1274 0 1264 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10874 0 9455 46 0 46 46 0 8 0 ffsino 272 10874 0 9455 95 0 95 95 0 8 0 nchpl 144 19635 0 19094 61 37 24 61 0 8 0 uvmvnodes 72 6475 0 0 118 0 118 118 0 8 0 vnodes 208 6475 0 0 341 0 341 341 0 8 0 namei 1024 81254 0 81254 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 9 0 9 3 2 1 1 0 8 1 scsiplug 64 8 0 8 5 5 0 1 0 8 0 scxspl 192 56253 0 56253 32 31 1 7 0 8 1 plimitpl 152 533 0 525 1 0 1 1 0 8 0 sigapl 432 6325 0 6310 3 1 2 3 0 8 0 futexpl 56 132081 0 132079 1 0 1 1 0 8 0 knotepl 112 1423 0 1404 5 4 1 3 0 8 0 kqueuepl 104 1395 0 1391 1 0 1 1 0 8 0 pipepl 112 3062 0 3043 13 11 2 2 0 8 1 fdescpl 488 6326 0 6310 3 0 3 3 0 8 0 filepl 152 66710 0 66600 32 26 6 11 0 8 1 lockfpl 104 1858 0 1857 1 0 1 1 0 8 0 lockfspl 48 648 0 647 1 0 1 1 0 8 0 sessionpl 112 37 0 26 1 0 1 1 0 8 0 pgrppl 48 104 0 93 1 0 1 1 0 8 0 ucredpl 96 14437 0 14427 1 0 1 1 0 8 0 zombiepl 144 6314 0 6313 3 2 1 1 0 8 0 processpl 896 6347 0 6313 4 0 4 4 0 8 0 procpl 632 19921 0 19875 6 1 5 5 0 8 0 srpgc 64 38 0 38 16 16 0 1 0 8 0 sosppl 128 86 0 86 21 21 0 1 0 8 0 sockpl 384 20015 0 19977 57 51 6 10 0 8 0 mcl64k 65536 513 0 0 65 32 33 65 0 8 1 mcl16k 16384 24 0 0 3 1 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 31 0 0 3 1 2 2 0 8 0 mcl8k 8192 31 0 0 3 1 2 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 123 0 0 13 2 11 13 0 8 0 mtagpl 80 59 0 0 1 0 1 1 0 8 0 mbufpl 256 702 0 0 38 0 38 38 0 8 0 bufpl 256 21250 0 14202 441 0 441 441 0 8 0 anonpl 16 585568 0 571587 193 133 60 75 0 124 0 amapchunkpl 152 38806 0 38668 50 42 8 13 0 158 0 amappl16 192 30905 0 30130 171 131 40 51 0 8 1 amappl15 184 997 0 996 1 0 1 1 0 8 0 amappl14 176 2912 0 2909 2 1 1 1 0 8 0 amappl13 168 267 0 266 4 3 1 1 0 8 0 amappl12 160 12 0 12 2 2 0 1 0 8 0 amappl11 152 228 0 213 1 0 1 1 0 8 0 amappl10 144 725 0 719 1 0 1 1 0 8 0 amappl9 136 1728 0 1721 1 0 1 1 0 8 0 amappl8 128 1324 0 1284 2 0 2 2 0 8 0 amappl7 120 859 0 850 1 0 1 1 0 8 0 amappl6 112 216 0 203 1 0 1 1 0 8 0 amappl5 104 324 0 309 1 0 1 1 0 8 0 amappl4 96 5747 0 5716 1 0 1 1 0 8 0 amappl3 88 4078 0 4068 1 0 1 1 0 8 0 amappl2 80 50054 0 49979 3 1 2 3 0 8 0 amappl1 72 145560 0 145116 25 15 10 20 0 8 0 amappl 80 20483 0 20438 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 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 6335 0 6310 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6335 0 6310 1 0 1 1 0 8 0 vmmpekpl 168 53069 0 53035 2 0 2 2 0 8 0 vmmpepl 168 776943 0 775004 346 234 112 114 0 357 21 vmsppl 368 6325 0 6310 2 0 2 2 0 8 0 pdppl 4096 12677 0 12638 7 1 6 6 0 8 0 pvpl 32 1597769 0 1580540 386 238 148 183 0 265 5 pmappl 232 6334 0 6319 5 3 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 706 0 52 20 0 20 20 0 8 0