panic: malloc: allocation too large, type = 2, size = 18446744073709548736 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *461674 23572 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(fffffffffffff4c0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800017b37330) at vm_get_info+0x9a VOP_IOCTL(fffffd803b907820,c0185603,ffff800017b37330,81,fffffd803f7c6a20,ffff800017b53160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803622d710,c0185603,ffff800017b37330,ffff800017b53160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800017b53160,ffff800017b37448,ffff800017b37490) at sys_ioctl+0x5b9 syscall(ffff800017b37510) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,294e1c5c010) at Xsyscall+0x128 end of kernel end trace frame: 0x297de8b7230, 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 = 18446744073709548736 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(fffffffffffff4c0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800017b37330) at vm_get_info+0x9a VOP_IOCTL(fffffd803b907820,c0185603,ffff800017b37330,81,fffffd803f7c6a20,ffff800017b53160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803622d710,c0185603,ffff800017b37330,ffff800017b53160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800017b53160,ffff800017b37448,ffff800017b37490) at sys_ioctl+0x5b9 syscall(ffff800017b37510) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,294e1c5c010) at Xsyscall+0x128 end of kernel end trace frame: 0x297de8b7230, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x26a0 __ALIGN_SIZE+0x16a0 rbp 0xffff800017b36f70 rbx 0xffff800017b37020 rdx 0x26a1 __ALIGN_SIZE+0x16a1 rcx 0xffff800014f21000 rax 0xffff800014f21000 r8 0xffff800017b36f30 r9 0x1 r10 0xffff800000a6c040 r11 0x25c3c4934532a7a8 r12 0x3000000008 r13 0xffff800017b36f80 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017b36f60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=461674 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800017b529f8,0xffffffff82555660 process=0xffff8000148a30f8 user=0xffff800017b32000, vmspace=0xfffffd803f013330 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23572 216866 11210 0 2 0 syz-executor.1 *23572 461674 11210 0 7 0x4000000 syz-executor.1 35775 515573 46544 0 2 0 syz-executor.0 35775 379478 46544 0 3 0x4000080 bell syz-executor.0 46544 169167 40420 0 3 0x82 nanosleep syz-executor.0 11210 411294 40420 0 3 0x82 nanosleep syz-executor.1 53779 203104 0 0 3 0x14200 acct acct 51985 319071 1 0 3 0x100083 ttyin getty 95721 381931 0 0 3 0x14200 bored sosplice 40420 293557 94553 0 3 0x82 thrsleep syz-fuzzer 40420 416773 94553 0 3 0x4000082 thrsleep syz-fuzzer 40420 89632 94553 0 3 0x4000082 kqread syz-fuzzer 40420 255225 94553 0 3 0x4000082 thrsleep syz-fuzzer 40420 448523 94553 0 3 0x4000082 thrsleep syz-fuzzer 40420 170543 94553 0 3 0x4000082 thrsleep syz-fuzzer 40420 68831 94553 0 3 0x4000082 thrsleep syz-fuzzer 94553 210195 76618 0 3 0x10008a pause ksh 76618 226706 27867 0 3 0x92 select sshd 27867 81870 1 0 3 0x80 select sshd 2710 499218 87853 73 3 0x100090 kqread syslogd 87853 432123 1 0 3 0x100082 netio syslogd 57296 500391 1 77 3 0x100090 poll dhclient 34766 489631 1 0 3 0x80 poll dhclient 70799 238899 0 0 2 0x14200 zerothread 8319 95412 0 0 3 0x14200 aiodoned aiodoned 33052 18201 0 0 3 0x14200 syncer update 11190 258696 0 0 3 0x14200 cleaner cleaner 48130 518490 0 0 3 0x14200 reaper reaper 1249 312775 0 0 3 0x14200 pgdaemon pagedaemon 84421 480413 0 0 3 0x14200 bored crynlk 43335 418019 0 0 3 0x14200 bored crypto 52355 165383 0 0 3 0x40014200 acpi0 acpi0 10110 47745 0 0 3 0x14200 bored softnet 17525 455698 0 0 3 0x14200 bored systqmp 64149 502249 0 0 3 0x14200 bored systq 41867 420922 0 0 3 0x40014200 bored softclock 79540 8284 0 0 3 0x40014200 idle0 48028 474036 0 0 3 0x14200 bored smr 1 172897 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 9592 6416K 7612K 78643K 37084 0 0 pcb 13 8K 8K 78643K 1409 0 0 rtable 107 12K 13K 78643K 3990 0 0 ifaddr 75 22K 27K 78643K 1298 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 341 0 0 iov 0 0K 24K 78643K 1638 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1228 77K 77K 78643K 11873 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 178 0 0 VM map 2 0K 0K 78643K 20 0 0 sem 12 0K 0K 78643K 1486 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 21K 78643K 11276 0 0 sigio 1 0K 0K 78643K 833 0 0 proc 50 38K 55K 78643K 3218 0 0 subproc 32 2K 2K 78643K 837 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 1091 0 0 in_multi 22 1K 2K 78643K 887 0 0 ether_multi 1 0K 0K 78643K 60 0 0 mrt 2 0K 0K 78643K 55 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 192 848K 848K 78643K 192 0 0 exec 0 0K 1K 78643K 1760 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 119 22K 32K 78643K 27759 0 0 UVM aobj 130 7K 7K 78643K 177 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 1428 0 0 NDP 18 0K 1K 78643K 420 0 0 temp 212 3536K 4176K 78643K 256558 0 0 kqueue 0 0K 0K 78643K 81 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 101 0 97 1 0 1 1 0 8 0 rtpcb 80 1421 0 1419 1 0 1 1 0 8 0 rtentry 112 541 0 504 2 0 2 2 0 8 0 unpcb 120 4615 0 4595 4 3 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5973 0 5973 1 1 0 1 0 8 0 tcpcb 544 2317 0 2313 1 0 1 1 0 8 0 ipq 40 15 0 15 7 7 0 1 0 8 0 ipqe 40 37 0 37 7 7 0 1 0 8 0 inpcb 280 7018 0 7011 24 23 1 2 0 8 0 rttmr 72 7 0 7 6 6 0 1 0 8 0 nd6 48 97 0 95 1 0 1 1 0 8 0 pkpcb 40 56 0 56 23 22 1 1 0 8 1 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 173 0 173 43 42 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2413 0 2210 29 13 16 16 0 8 0 art_table 32 2414 0 2210 4 1 3 3 0 8 0 art_node 16 520 0 487 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 20 1 0 1 1 0 8 0 semapl 112 1484 0 1474 1 0 1 1 0 8 0 shmpl 112 175 0 47 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18650 0 17245 46 0 46 46 0 8 0 ffsino 240 18650 0 17245 83 0 83 83 0 8 0 nchpl 144 41064 0 39447 64 2 62 62 0 8 0 uvmvnodes 72 7427 0 0 136 0 136 136 0 8 0 vnodes 208 7427 0 0 391 0 391 391 0 8 0 namei 1024 137218 0 137218 12 11 1 1 0 8 1 vmpool 520 18 0 18 8 8 0 1 0 8 0 scsiplug 64 17 0 17 13 12 1 1 0 8 1 scxspl 192 117495 0 117495 38 37 1 7 0 8 1 plimitpl 152 948 0 941 1 0 1 1 0 8 0 sigapl 432 11309 0 11295 2 0 2 2 0 8 0 futexpl 56 235565 0 235565 14 13 1 1 0 8 1 knotepl 112 2842 0 2823 9 8 1 3 0 8 0 kqueuepl 104 2798 0 2796 1 0 1 1 0 8 0 pipepl 112 6006 0 5987 19 17 2 2 0 8 1 fdescpl 424 11310 0 11295 2 0 2 2 0 8 0 filepl 120 92245 0 92142 24 20 4 7 0 8 0 lockfpl 104 3775 0 3773 1 0 1 1 0 8 0 lockfspl 48 1245 0 1243 1 0 1 1 0 8 0 sessionpl 112 67 0 57 1 0 1 1 0 8 0 pgrppl 48 159 0 149 1 0 1 1 0 8 0 ucredpl 96 14148 0 14139 1 0 1 1 0 8 0 zombiepl 144 11297 0 11297 3 2 1 1 0 8 1 processpl 864 11328 0 11297 4 0 4 4 0 8 0 procpl 632 24787 0 24748 4 0 4 4 0 8 0 sosppl 128 132 0 132 32 32 0 1 0 8 0 sockpl 384 13239 0 13210 23 18 5 8 0 8 1 mcl64k 65536 1367 0 1367 129 128 1 33 0 8 1 mcl16k 16384 78 0 78 38 37 1 1 0 8 1 mcl12k 12288 248 0 248 33 32 1 1 0 8 1 mcl9k 9216 137 0 137 43 42 1 1 0 8 1 mcl8k 8192 317 0 317 24 23 1 1 0 8 1 mcl4k 4096 893 0 893 12 11 1 1 0 8 1 mcl2k2 2112 92 0 92 38 37 1 1 0 8 1 mcl2k 2048 73819 0 73777 35 29 6 19 0 8 0 mtagpl 80 345 0 337 7 6 1 1 0 8 0 mbufpl 256 184210 0 184126 77 67 10 23 0 8 1 bufpl 256 33737 0 26310 465 0 465 465 0 8 0 anonpl 16 1132957 0 1118706 400 329 71 109 0 62 4 amapchunkpl 152 52823 0 52711 172 166 6 34 0 158 0 amappl16 192 60690 0 59854 433 383 50 54 0 8 7 amappl15 184 1909 0 1908 1 0 1 1 0 8 0 amappl14 176 3267 0 3264 2 1 1 1 0 8 0 amappl13 168 895 0 891 6 5 1 1 0 8 0 amappl12 160 1813 0 1810 1 0 1 1 0 8 0 amappl11 152 2173 0 2162 1 0 1 1 0 8 0 amappl10 144 214 0 213 1 0 1 1 0 8 0 amappl9 136 1840 0 1833 1 0 1 1 0 8 0 amappl8 128 1419 0 1379 5 3 2 2 0 8 0 amappl7 120 412 0 406 1 0 1 1 0 8 0 amappl6 112 2030 0 2019 1 0 1 1 0 8 0 amappl5 104 2349 0 2338 1 0 1 1 0 8 0 amappl4 96 10755 0 10720 1 0 1 1 0 8 0 amappl3 88 4223 0 4218 1 0 1 1 0 8 0 amappl2 80 88578 0 88499 4 2 2 3 0 8 0 amappl1 72 210578 0 210166 27 18 9 20 0 8 0 amappl 80 25775 0 25735 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 176 0 47 3 0 3 3 0 8 0 uaddrrnd 24 11328 0 11295 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11328 0 11295 1 0 1 1 0 8 0 vmmpekpl 168 69491 0 69462 2 0 2 2 0 8 0 vmmpepl 168 1332599 0 1330603 682 588 94 130 0 357 2 vmsppl 272 11309 0 11295 9 8 1 2 0 8 0 pdppl 4096 22662 0 22626 5 0 5 5 0 8 0 pvpl 32 3138958 0 3121491 938 771 167 352 0 265 14 pmappl 200 11327 0 11313 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 925 0 329 20 2 18 18 0 8 0