panic: malloc: allocation too large, type = 2, size = 18446744073709547776 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *252335 68881 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(fffffffffffff100,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80001695da60) at vm_get_info+0x9a VOP_IOCTL(fffffd803c2c7680,c0185603,ffff80001695da60,1,fffffd803f7c6a80,ffff8000ffff89e8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803622cad0,c0185603,ffff80001695da60,ffff8000ffff89e8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff89e8,ffff80001695db78,ffff80001695dbc0) at sys_ioctl+0x5b9 syscall(ffff80001695dc40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,e99c7509010) at Xsyscall+0x128 end of kernel end trace frame: 0xe9cbfd0ea70, 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 = 18446744073709547776 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(fffffffffffff100,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80001695da60) at vm_get_info+0x9a VOP_IOCTL(fffffd803c2c7680,c0185603,ffff80001695da60,1,fffffd803f7c6a80,ffff8000ffff89e8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803622cad0,c0185603,ffff80001695da60,ffff8000ffff89e8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff89e8,ffff80001695db78,ffff80001695dbc0) at sys_ioctl+0x5b9 syscall(ffff80001695dc40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,e99c7509010) at Xsyscall+0x128 end of kernel end trace frame: 0xe9cbfd0ea70, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x26f3 __ALIGN_SIZE+0x16f3 rbp 0xffff80001695d6a0 rbx 0xffff80001695d750 rdx 0x26f4 __ALIGN_SIZE+0x16f4 rcx 0xffff800015513000 rax 0xffff800015513000 r8 0xffff80001695d660 r9 0x1 r10 0xffff800000a6bc40 r11 0x3064b86ef2bada02 r12 0x3000000008 r13 0xffff80001695d6b0 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001695d690 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=252335 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff84f8,0xffffffff825545b0 process=0xffff8000ffff6370 user=0xffff800016958000, vmspace=0xfffffd803f013770 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 68881 387345 56643 0 2 0 syz-executor.0 *68881 252335 56643 0 7 0x4000000 syz-executor.0 67613 243442 96511 0 2 0 syz-executor.1 67613 217506 96511 0 3 0x4000080 netio syz-executor.1 96511 456383 36126 0 3 0x82 nanosleep syz-executor.1 56643 48330 36126 0 3 0x82 nanosleep syz-executor.0 60222 495804 0 0 3 0x14200 acct acct 14407 363944 0 0 3 0x14200 bored sosplice 36126 474160 85403 0 3 0x82 thrsleep syz-fuzzer 36126 520392 85403 0 3 0x4000082 thrsleep syz-fuzzer 36126 325584 85403 0 3 0x4000082 kqread syz-fuzzer 36126 87237 85403 0 3 0x4000082 thrsleep syz-fuzzer 36126 496402 85403 0 3 0x4000082 thrsleep syz-fuzzer 36126 455203 85403 0 3 0x4000082 thrsleep syz-fuzzer 36126 382664 85403 0 3 0x4000082 thrsleep syz-fuzzer 36126 156581 85403 0 3 0x4000082 thrsleep syz-fuzzer 85403 277698 624 0 3 0x10008a pause ksh 624 235584 38962 0 3 0x92 select sshd 34988 129188 1 0 3 0x100083 ttyin getty 38962 126602 1 0 3 0x80 select sshd 57255 423067 20867 73 3 0x100090 kqread syslogd 20867 107043 1 0 3 0x100082 netio syslogd 21012 180241 0 0 3 0x14200 pgzero zerothread 54678 111127 0 0 3 0x14200 aiodoned aiodoned 43372 464494 0 0 3 0x14200 syncer update 99054 460406 0 0 3 0x14200 cleaner cleaner 58161 302899 0 0 3 0x14200 reaper reaper 24916 18242 0 0 3 0x14200 pgdaemon pagedaemon 7734 461601 0 0 3 0x14200 bored crynlk 74750 4822 0 0 3 0x14200 bored crypto 70437 95745 0 0 3 0x40014200 acpi0 acpi0 31796 325000 0 0 3 0x14200 bored softnet 78021 96922 0 0 3 0x14200 bored systqmp 66473 29380 0 0 3 0x14200 bored systq 33186 376705 0 0 3 0x40014200 bored softclock 81331 375859 0 0 3 0x40014200 idle0 71245 221233 0 0 3 0x14200 bored smr 1 71954 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 9572 6955K 10662K 78643K 38211 0 0 pcb 13 8K 8K 78643K 1082 0 0 rtable 119 12K 12K 78643K 8626 0 0 ifaddr 74 18K 20K 78643K 894 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 400 0 0 iov 0 0K 32K 78643K 875 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 77K 78643K 10308 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 102 0 0 VM map 2 0K 0K 78643K 26 0 0 sem 12 0K 0K 78643K 2701 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 8130 0 0 sigio 0 0K 0K 78643K 168 0 0 proc 45 30K 63K 78643K 1951 0 0 subproc 32 2K 2K 78643K 376 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 891 0 0 in_multi 33 2K 2K 78643K 576 0 0 ether_multi 1 0K 0K 78643K 63 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 204 901K 901K 78643K 204 0 0 exec 0 0K 1K 78643K 1156 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 107 22K 31K 78643K 20124 0 0 UVM aobj 130 5K 5K 78643K 143 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 1018 0 0 NDP 17 0K 0K 78643K 277 0 0 temp 205 3536K 4176K 78643K 173286 0 0 kqueue 0 0K 0K 78643K 49 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 47 0 41 1 0 1 1 0 8 0 rtpcb 80 9307 0 9307 3 2 1 1 0 8 1 rtentry 112 267 0 222 2 0 2 2 0 8 0 unpcb 120 3545 0 3523 4 3 1 2 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 5998 0 5998 1 1 0 1 0 8 0 tcpcb 544 1816 0 1812 1 0 1 1 0 8 0 ipq 40 13 0 13 7 7 0 1 0 8 0 ipqe 40 28 0 28 7 7 0 1 0 8 0 inpcb 280 6957 0 6953 28 27 1 3 0 8 0 rttmr 72 7 0 7 7 7 0 1 0 8 0 nd6 48 44 0 40 1 0 1 1 0 8 0 pkpcb 40 40 0 40 14 14 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 122 0 122 30 29 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1164 0 946 16 2 14 15 0 8 0 art_table 32 1165 0 946 2 0 2 2 0 8 0 art_node 16 253 0 213 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 19 1 0 1 1 0 8 0 semapl 112 2699 0 2689 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 14056 0 12657 46 0 46 46 0 8 0 ffsino 240 14056 0 12657 83 0 83 83 0 8 0 nchpl 144 27623 0 25953 63 1 62 62 0 8 0 uvmvnodes 72 6705 0 0 122 0 122 122 0 8 0 vnodes 208 6705 0 0 353 0 353 353 0 8 0 namei 1024 93641 0 93641 4 3 1 1 0 8 1 vmpool 520 24 0 24 8 8 0 1 0 8 0 scsiplug 64 12 0 12 10 10 0 1 0 8 0 scxspl 192 77975 0 77975 22 20 2 7 0 8 2 plimitpl 152 725 0 719 1 0 1 1 0 8 0 sigapl 432 8241 0 8229 2 0 2 2 0 8 0 futexpl 56 182292 0 182292 3 2 1 1 0 8 1 knotepl 112 1834 0 1815 7 6 1 3 0 8 0 kqueuepl 104 2139 0 2137 1 0 1 1 0 8 0 pipepl 112 4120 0 4097 12 11 1 2 0 8 0 fdescpl 424 8242 0 8229 2 0 2 2 0 8 0 filepl 120 72083 0 71984 16 12 4 7 0 8 1 lockfpl 104 2699 0 2697 3 2 1 1 0 8 0 lockfspl 48 930 0 929 3 2 1 1 0 8 0 sessionpl 112 37 0 29 1 0 1 1 0 8 0 pgrppl 48 125 0 117 1 0 1 1 0 8 0 ucredpl 96 10197 0 10190 1 0 1 1 0 8 0 zombiepl 144 8229 0 8229 3 2 1 1 0 8 1 processpl 864 8258 0 8229 4 0 4 4 0 8 0 procpl 632 18305 0 18267 5 1 4 5 0 8 0 sosppl 128 119 0 119 22 22 0 1 0 8 0 sockpl 384 19978 0 19952 39 35 4 7 0 8 0 mcl64k 65536 1893 0 1893 210 182 28 33 0 8 28 mcl16k 16384 59 0 59 27 27 0 1 0 8 0 mcl12k 12288 172 0 172 18 18 0 1 0 8 0 mcl9k 9216 70 0 70 27 26 1 1 0 8 1 mcl8k 8192 332 0 332 10 9 1 1 0 8 1 mcl4k 4096 841 0 839 6 5 1 1 0 8 0 mcl2k2 2112 73 0 73 30 29 1 1 0 8 1 mcl2k 2048 68202 0 68157 30 23 7 15 0 8 0 mtagpl 80 249 0 198 3 1 2 2 0 8 0 mbufpl 256 255871 0 255685 1292 1268 24 195 0 8 8 bufpl 256 25682 0 18938 422 0 422 422 0 8 0 anonpl 16 784147 0 769972 264 190 74 74 0 62 13 amapchunkpl 152 36906 0 36805 83 78 5 14 0 158 0 amappl16 192 42972 0 42168 295 247 48 53 0 8 7 amappl15 184 2105 0 2104 4 3 1 1 0 8 0 amappl14 176 1855 0 1849 2 1 1 1 0 8 0 amappl13 168 818 0 817 1 0 1 1 0 8 0 amappl12 160 322 0 321 1 0 1 1 0 8 0 amappl11 152 888 0 883 1 0 1 1 0 8 0 amappl10 144 1992 0 1990 3 2 1 1 0 8 0 amappl9 136 1677 0 1671 1 0 1 1 0 8 0 amappl8 128 1203 0 1169 2 0 2 2 0 8 0 amappl7 120 2100 0 2090 1 0 1 1 0 8 0 amappl6 112 870 0 858 1 0 1 1 0 8 0 amappl5 104 651 0 644 1 0 1 1 0 8 0 amappl4 96 8586 0 8564 1 0 1 1 0 8 0 amappl3 88 1617 0 1607 1 0 1 1 0 8 0 amappl2 80 65542 0 65473 4 2 2 3 0 8 0 amappl1 72 153556 0 153158 28 19 9 20 0 8 0 amappl 80 18918 0 18885 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 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 8266 0 8229 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8266 0 8229 1 0 1 1 0 8 0 vmmpekpl 168 51568 0 51546 2 0 2 2 0 8 0 vmmpepl 168 960014 0 958118 428 334 94 110 0 357 11 vmsppl 272 8241 0 8229 2 1 1 2 0 8 0 pdppl 4096 16538 0 16506 8 3 5 6 0 8 1 pvpl 32 2276394 0 2259098 650 473 177 260 0 265 33 pmappl 200 8265 0 8253 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 2117 0 1525 26 8 18 21 0 8 0