panic: malloc: allocation too large, type = 2, size = 18446744073709547136 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *343452 66646 0 0 0x4000000 0 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(ffffffffffffee80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015538ff0) at vm_get_info+0x9a VOP_IOCTL(fffffd80361e94e0,c0185603,ffff800015538ff0,81,fffffd803f7c6b40,ffff800014d338c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803621ce18,c0185603,ffff800015538ff0,ffff800014d338c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014d338c8,ffff800015539108,ffff800015539150) at sys_ioctl+0x5b9 syscall(ffff8000155391d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,27bbdccd010) at Xsyscall+0x128 end of kernel end trace frame: 0x27e78e9ee70, 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 = 18446744073709547136 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(ffffffffffffee80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015538ff0) at vm_get_info+0x9a VOP_IOCTL(fffffd80361e94e0,c0185603,ffff800015538ff0,81,fffffd803f7c6b40,ffff800014d338c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803621ce18,c0185603,ffff800015538ff0,ffff800014d338c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014d338c8,ffff800015539108,ffff800015539150) at sys_ioctl+0x5b9 syscall(ffff8000155391d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,27bbdccd010) at Xsyscall+0x128 end of kernel end trace frame: 0x27e78e9ee70, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x26be __ALIGN_SIZE+0x16be rbp 0xffff800015538c30 rbx 0xffff800015538ce0 rdx 0x26bf __ALIGN_SIZE+0x16bf rcx 0xffff80001490b000 rax 0xffff80001490b000 r8 0xffff800015538bf0 r9 0x1 r10 0xffff800000a5c7c0 r11 0x98338312494f810c r12 0x3000000008 r13 0xffff800015538c40 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015538c20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=343452 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800014d33650,0xffffffff82555660 process=0xffff8000148a2378 user=0xffff800015534000, vmspace=0xfffffd803f013220 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 66646 361345 78244 0 2 0 syz-executor.0 *66646 343452 78244 0 7 0x4000000 syz-executor.0 91841 345903 96039 0 2 0x2 syz-executor.1 78244 268495 96039 0 3 0x82 nanosleep syz-executor.0 86988 449869 1 0 3 0x100083 ttyin getty 77796 68275 0 0 3 0x14200 bored sosplice 96039 347349 30387 0 3 0x82 thrsleep syz-fuzzer 96039 102383 30387 0 3 0x4000082 nanosleep syz-fuzzer 96039 323798 30387 0 3 0x4000082 kqread syz-fuzzer 96039 6557 30387 0 3 0x4000082 thrsleep syz-fuzzer 96039 206208 30387 0 3 0x4000082 thrsleep syz-fuzzer 96039 98303 30387 0 3 0x4000082 thrsleep syz-fuzzer 96039 466687 30387 0 3 0x4000082 thrsleep syz-fuzzer 96039 106207 30387 0 3 0x4000082 thrsleep syz-fuzzer 30387 171200 1269 0 3 0x10008a pause ksh 1269 318527 37372 0 3 0x92 select sshd 37372 132333 1 0 3 0x80 select sshd 56353 419702 96028 73 3 0x100090 kqread syslogd 96028 193166 1 0 3 0x100082 netio syslogd 45256 281226 1 77 3 0x100090 poll dhclient 6219 481735 1 0 3 0x80 poll dhclient 97467 190536 0 0 2 0x14200 zerothread 81878 383630 0 0 3 0x14200 aiodoned aiodoned 6209 223930 0 0 3 0x14200 syncer update 41180 285451 0 0 3 0x14200 cleaner cleaner 87191 320891 0 0 3 0x14200 reaper reaper 74220 96301 0 0 3 0x14200 pgdaemon pagedaemon 52506 338662 0 0 3 0x14200 bored crynlk 44798 134478 0 0 3 0x14200 bored crypto 19268 393928 0 0 3 0x40014200 acpi0 acpi0 95611 266802 0 0 3 0x14200 bored softnet 64236 139058 0 0 3 0x14200 bored systqmp 71839 298430 0 0 3 0x14200 bored systq 85409 448392 0 0 3 0x40014200 bored softclock 24739 88647 0 0 3 0x40014200 idle0 58697 488071 0 0 3 0x14200 bored smr 1 391132 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 9601 6514K 7524K 78643K 44439 0 0 pcb 13 8K 8K 78643K 1518 0 0 rtable 127 12K 13K 78643K 3429 0 0 ifaddr 80 23K 26K 78643K 1178 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 612 0 0 iov 0 0K 32K 78643K 1274 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 77K 78643K 13804 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 202 0 0 VM map 2 0K 0K 78643K 30 0 0 sem 12 0K 1K 78643K 1502 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 11671 0 0 sigio 0 0K 0K 78643K 157 0 0 proc 50 38K 63K 78643K 2779 0 0 subproc 32 2K 2K 78643K 656 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 14573 0 0 in_multi 33 2K 2K 78643K 758 0 0 ether_multi 1 0K 0K 78643K 57 0 0 mrt 1 0K 0K 78643K 50 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 1619 0 0 pfkey data 0 0K 0K 78643K 4 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 147 24K 32K 78643K 35325 0 0 UVM aobj 130 4K 5K 78643K 189 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 1504 0 0 NDP 19 0K 1K 78643K 366 0 0 temp 219 3536K 4176K 78643K 317298 0 0 kqueue 0 0K 0K 78643K 106 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 78 0 72 1 0 1 1 0 8 0 rtpcb 80 670 0 668 1 0 1 1 0 8 0 rtentry 112 412 0 365 2 0 2 2 0 8 0 unpcb 120 4841 0 4811 13 11 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6487 0 6487 1 1 0 1 0 8 0 tcpcb 544 18481 0 18477 75 73 2 3 0 8 1 ipq 40 24 0 24 12 12 0 1 0 8 0 ipqe 40 54 0 54 12 12 0 1 0 8 0 inpcb 280 23613 0 23606 48 46 2 3 0 8 1 rttmr 72 6 0 6 5 5 0 1 0 8 0 nd6 48 69 0 65 1 0 1 1 0 8 0 pkpcb 40 74 0 74 27 27 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 179 0 179 69 68 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1845 0 1597 25 9 16 16 0 8 0 art_table 32 1846 0 1597 3 0 3 3 0 8 0 art_node 16 390 0 348 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 15 1 0 1 1 0 8 0 semapl 112 1500 0 1490 1 0 1 1 0 8 0 shmpl 112 187 0 59 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 19211 0 17811 46 0 46 46 0 8 0 ffsino 240 19211 0 17811 83 0 83 83 0 8 0 nchpl 144 35283 0 33660 61 0 61 61 0 8 0 uvmvnodes 72 8727 0 0 159 0 159 159 0 8 0 vnodes 208 8727 0 0 460 0 460 460 0 8 0 namei 1024 119765 0 119765 10 9 1 1 0 8 1 vmpool 520 28 0 28 10 10 0 1 0 8 0 scsiplug 64 15 0 15 12 12 0 1 0 8 0 scxspl 192 125426 0 125426 26 25 1 7 0 8 1 plimitpl 152 989 0 982 1 0 1 1 0 8 0 sigapl 432 11738 0 11725 2 0 2 2 0 8 0 futexpl 56 384726 0 384726 10 9 1 1 0 8 1 knotepl 112 2769 0 2750 11 10 1 3 0 8 0 kqueuepl 104 2857 0 2855 1 0 1 1 0 8 0 pipepl 112 14738 0 14719 37 36 1 2 0 8 0 fdescpl 424 11739 0 11725 2 0 2 2 0 8 0 filepl 120 100354 0 100253 43 39 4 7 0 8 0 lockfpl 104 3607 0 3606 1 0 1 1 0 8 0 lockfspl 48 1226 0 1225 1 0 1 1 0 8 0 sessionpl 112 57 0 47 1 0 1 1 0 8 0 pgrppl 48 133 0 123 1 0 1 1 0 8 0 ucredpl 96 14932 0 14923 1 0 1 1 0 8 0 zombiepl 144 11727 0 11727 3 2 1 1 0 8 1 processpl 864 11756 0 11727 4 0 4 4 0 8 0 procpl 632 32833 0 32796 42 38 4 5 0 8 0 sosppl 128 123 0 123 38 38 0 1 0 8 0 sockpl 384 29341 0 29302 90 85 5 7 0 8 1 mcl64k 65536 744 0 744 108 107 1 32 0 8 1 mcl16k 16384 167 0 167 69 68 1 1 0 8 1 mcl12k 12288 285 0 285 67 66 1 1 0 8 1 mcl9k 9216 186 0 186 65 64 1 1 0 8 1 mcl8k 8192 928 0 928 16 15 1 1 0 8 1 mcl4k 4096 2068 0 2067 11 10 1 1 0 8 0 mcl2k2 2112 188 0 188 70 69 1 1 0 8 1 mcl2k 2048 77606 0 77563 32 25 7 14 0 8 1 mtagpl 80 295 0 276 4 3 1 2 0 8 0 mbufpl 256 296554 0 296413 68 58 10 31 0 8 0 bufpl 256 37170 0 28448 546 0 546 546 0 8 0 anonpl 16 1064483 0 1050569 370 297 73 75 0 62 6 amapchunkpl 152 66079 0 65948 178 171 7 30 0 158 0 amappl16 192 56834 0 56059 371 323 48 52 0 8 8 amappl15 184 3780 0 3780 5 5 0 1 0 8 0 amappl14 176 2921 0 2916 2 1 1 1 0 8 0 amappl13 168 1299 0 1298 4 3 1 1 0 8 0 amappl12 160 2262 0 2260 1 0 1 1 0 8 0 amappl11 152 663 0 652 1 0 1 1 0 8 0 amappl10 144 1404 0 1403 2 1 1 1 0 8 0 amappl9 136 1626 0 1619 1 0 1 1 0 8 0 amappl8 128 1225 0 1165 2 0 2 2 0 8 0 amappl7 120 1550 0 1543 1 0 1 1 0 8 0 amappl6 112 598 0 579 1 0 1 1 0 8 0 amappl5 104 2782 0 2772 1 0 1 1 0 8 0 amappl4 96 10017 0 9984 1 0 1 1 0 8 0 amappl3 88 4381 0 4372 1 0 1 1 0 8 0 amappl2 80 95319 0 95250 4 2 2 3 0 8 0 amappl1 72 238800 0 238387 30 21 9 20 0 8 0 amappl 80 33605 0 33564 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 188 0 59 3 0 3 3 0 8 0 uaddrrnd 24 11767 0 11725 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11767 0 11725 1 0 1 1 0 8 0 vmmpekpl 168 105153 0 105128 2 0 2 2 0 8 0 vmmpepl 168 1406855 0 1404974 716 617 99 124 0 357 4 vmsppl 272 11738 0 11725 13 12 1 2 0 8 0 pdppl 4096 23540 0 23506 6 1 5 6 0 8 0 pvpl 32 3321104 0 3304035 1235 1058 177 284 0 265 28 pmappl 200 11766 0 11753 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1068 0 389 22 2 20 20 0 8 0