panic: malloc: allocation too large, type = 2, size = 18446744073709550656 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *385474 74592 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(fffffffffffffc40,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015940c70) at vm_get_info+0x9a VOP_IOCTL(fffffd803dda40d0,c0185603,ffff800015940c70,1,fffffd803f7c6a80,ffff8000ffff2290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802abf1798,c0185603,ffff800015940c70,ffff8000ffff2290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2290,ffff800015940d88,ffff800015940dd0) at sys_ioctl+0x5b9 syscall(ffff800015940e50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,a68668c10e0) at Xsyscall+0x128 end of kernel end trace frame: 0xa6b12a9ddf0, 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 = 18446744073709550656 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(fffffffffffffc40,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015940c70) at vm_get_info+0x9a VOP_IOCTL(fffffd803dda40d0,c0185603,ffff800015940c70,1,fffffd803f7c6a80,ffff8000ffff2290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802abf1798,c0185603,ffff800015940c70,ffff8000ffff2290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2290,ffff800015940d88,ffff800015940dd0) at sys_ioctl+0x5b9 syscall(ffff800015940e50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,a68668c10e0) at Xsyscall+0x128 end of kernel end trace frame: 0xa6b12a9ddf0, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x26d2 __ALIGN_SIZE+0x16d2 rbp 0xffff8000159408b0 rbx 0xffff800015940960 rdx 0x26d3 __ALIGN_SIZE+0x16d3 rcx 0xffff80001490b000 rax 0xffff80001490b000 r8 0xffff800015940870 r9 0x1 r10 0xffff800000a63c80 r11 0x7561bef66bfd1d3a r12 0x3000000008 r13 0xffff8000159408c0 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159408a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=385474 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3b40,0xffff8000ffff2518 process=0xffff8000148a2018 user=0xffff80001593b000, vmspace=0xfffffd803f013cc0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 56722 493821 2602 0 2 0 syz-executor.1 56722 290809 2602 0 3 0x4000080 fsleep syz-executor.1 74592 521524 18761 0 2 0 syz-executor.0 74592 25440 18761 0 3 0x4000080 lockf syz-executor.0 *74592 385474 18761 0 7 0x4000000 syz-executor.0 74592 75293 18761 0 3 0x4000080 fsleep syz-executor.0 2602 52838 10702 0 3 0x82 nanosleep syz-executor.1 13362 408821 1 0 3 0x100083 ttyin getty 18761 41861 10702 0 3 0x82 nanosleep syz-executor.0 56549 375914 0 0 3 0x14200 acct acct 43856 81849 0 0 3 0x14200 bored sosplice 10702 464123 27979 0 3 0x82 thrsleep syz-fuzzer 10702 182060 27979 0 3 0x4000082 thrsleep syz-fuzzer 10702 143642 27979 0 3 0x4000082 thrsleep syz-fuzzer 10702 456957 27979 0 3 0x4000082 thrsleep syz-fuzzer 10702 305266 27979 0 3 0x4000082 kqread syz-fuzzer 10702 485960 27979 0 3 0x4000082 thrsleep syz-fuzzer 10702 131568 27979 0 3 0x4000082 thrsleep syz-fuzzer 27979 264149 38569 0 3 0x10008a pause ksh 38569 257036 80737 0 3 0x92 select sshd 80737 199002 1 0 3 0x80 select sshd 90428 279590 55514 73 3 0x100090 kqread syslogd 55514 454812 1 0 3 0x100082 netio syslogd 5356 224459 1 77 3 0x100090 poll dhclient 68328 106870 1 0 3 0x80 poll dhclient 22184 170368 0 0 2 0x14200 zerothread 45327 237333 0 0 3 0x14200 aiodoned aiodoned 49990 79889 0 0 3 0x14200 syncer update 49084 149564 0 0 3 0x14200 cleaner cleaner 78586 271367 0 0 3 0x14200 reaper reaper 39419 392414 0 0 3 0x14200 pgdaemon pagedaemon 43045 419340 0 0 3 0x14200 bored crynlk 42065 59446 0 0 3 0x14200 bored crypto 88840 377455 0 0 3 0x40014200 acpi0 acpi0 47096 338932 0 0 3 0x14200 bored softnet 11785 296467 0 0 3 0x14200 bored systqmp 47413 149107 0 0 3 0x14200 bored systq 36721 457212 0 0 3 0x40014200 bored softclock 38380 324508 0 0 3 0x40014200 idle0 34689 159696 0 0 3 0x14200 bored smr 1 410908 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 9583 6689K 7007K 78643K 18116 0 0 pcb 13 8K 8K 78643K 424 0 0 rtable 121 12K 12K 78643K 1178 0 0 ifaddr 71 16K 16K 78643K 424 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 754 0 0 iov 0 0K 32K 78643K 695 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 4049 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 55 0 0 VM map 2 0K 0K 78643K 8 0 0 sem 12 0K 0K 78643K 344 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 3088 0 0 sigio 0 0K 0K 78643K 77 0 0 proc 50 38K 63K 78643K 980 0 0 subproc 32 2K 2K 78643K 187 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 312 0 0 in_multi 33 2K 2K 78643K 219 0 0 ether_multi 1 0K 0K 78643K 16 0 0 mrt 0 0K 0K 78643K 8 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 557 0 0 pfkey data 0 0K 4K 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 103 21K 30K 78643K 9454 0 0 UVM aobj 130 6K 6K 78643K 149 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 325 0 0 NDP 16 0K 0K 78643K 128 0 0 temp 197 3532K 3607K 78643K 50914 0 0 kqueue 0 0K 0K 78643K 18 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 25 0 19 1 0 1 1 0 8 0 rtpcb 80 198 0 196 1 0 1 1 0 8 0 rtentry 112 141 0 96 2 0 2 2 0 8 0 unpcb 120 8831 0 8817 19 18 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 3629 0 3629 1 1 0 1 0 8 0 tcpcb 544 712 0 708 1 0 1 1 0 8 0 ipq 40 6 0 6 3 3 0 1 0 8 0 ipqe 40 16 0 16 3 3 0 1 0 8 0 inpcb 280 2129 0 2122 10 9 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 22 0 18 1 0 1 1 0 8 0 pkpcb 40 14 0 14 6 6 0 1 0 8 0 ppxss 1128 63 0 63 19 19 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 648 0 429 19 5 14 15 0 8 0 art_table 32 649 0 429 2 0 2 2 0 8 0 art_node 16 137 0 97 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 1 0 1 1 0 8 0 semapl 112 342 0 332 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6249 0 4862 46 0 46 46 0 8 0 ffsino 240 6249 0 4862 83 0 83 83 0 8 0 nchpl 144 11136 0 9532 62 1 61 61 0 8 0 uvmvnodes 72 7621 0 0 139 0 139 139 0 8 0 vnodes 208 7621 0 0 402 0 402 402 0 8 0 namei 1024 36396 0 36396 5 4 1 1 0 8 1 vmpool 520 6 0 6 2 2 0 1 0 8 0 scsiplug 64 5 0 5 5 5 0 1 0 8 0 scxspl 192 38084 0 38084 14 12 2 7 0 8 2 plimitpl 152 261 0 254 1 0 1 1 0 8 0 sigapl 432 3234 0 3220 2 0 2 2 0 8 0 futexpl 56 69753 0 69751 4 3 1 1 0 8 0 knotepl 112 722 0 703 2 1 1 2 0 8 0 kqueuepl 104 793 0 791 1 0 1 1 0 8 0 pipepl 112 3742 0 3723 10 8 2 2 0 8 0 fdescpl 424 3235 0 3220 2 0 2 2 0 8 0 filepl 120 31455 0 31347 12 8 4 7 0 8 0 lockfpl 104 2160 0 2155 1 0 1 1 0 8 0 lockfspl 48 616 0 613 1 0 1 1 0 8 0 sessionpl 112 28 0 18 1 0 1 1 0 8 0 pgrppl 48 63 0 53 1 0 1 1 0 8 0 ucredpl 96 3785 0 3778 1 0 1 1 0 8 0 zombiepl 144 3220 0 3220 3 2 1 1 0 8 1 processpl 864 3251 0 3220 4 0 4 4 0 8 0 procpl 632 8296 0 8255 11 7 4 5 0 8 0 sosppl 128 49 0 49 12 12 0 1 0 8 0 sockpl 384 11208 0 11185 40 36 4 7 0 8 1 mcl64k 65536 800 0 800 107 85 22 33 0 8 22 mcl16k 16384 20 0 20 15 14 1 1 0 8 1 mcl12k 12288 54 0 54 21 21 0 1 0 8 0 mcl9k 9216 24 0 24 16 16 0 1 0 8 0 mcl8k 8192 89 0 89 20 19 1 1 0 8 1 mcl4k 4096 366 0 366 6 5 1 1 0 8 1 mcl2k2 2112 43 0 43 19 18 1 1 0 8 1 mcl2k 2048 62308 0 62266 18 12 6 14 0 8 0 mtagpl 80 109 0 86 3 2 1 1 0 8 0 mbufpl 256 126273 0 126143 66 55 11 25 0 8 0 bufpl 256 89715 0 82075 478 0 478 478 0 8 0 anonpl 16 496786 0 483099 214 151 63 112 0 62 0 amapchunkpl 152 17983 0 17872 83 78 5 34 0 158 0 amappl16 192 26918 0 26120 190 145 45 57 0 8 5 amappl15 184 1291 0 1289 1 0 1 1 0 8 0 amappl14 176 211 0 207 2 1 1 1 0 8 0 amappl13 168 282 0 281 3 2 1 1 0 8 0 amappl12 160 138 0 136 1 0 1 1 0 8 0 amappl11 152 234 0 223 1 0 1 1 0 8 0 amappl10 144 857 0 856 1 0 1 1 0 8 0 amappl9 136 806 0 798 1 0 1 1 0 8 0 amappl8 128 401 0 368 2 0 2 2 0 8 0 amappl7 120 927 0 919 1 0 1 1 0 8 0 amappl6 112 225 0 216 1 0 1 1 0 8 0 amappl5 104 393 0 383 1 0 1 1 0 8 0 amappl4 96 3236 0 3205 1 0 1 1 0 8 0 amappl3 88 625 0 620 1 0 1 1 0 8 0 amappl2 80 25985 0 25908 4 2 2 3 0 8 0 amappl1 72 69137 0 68709 28 19 9 20 0 8 0 amappl 80 8672 0 8633 2 1 1 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 148 0 19 3 0 3 3 0 8 0 uaddrrnd 24 3241 0 3220 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3241 0 3220 1 0 1 1 0 8 0 vmmpekpl 168 31652 0 31624 2 0 2 2 0 8 0 vmmpepl 168 397359 0 395392 302 199 103 115 0 357 15 vmsppl 272 3234 0 3220 6 5 1 2 0 8 0 pdppl 4096 6488 0 6452 6 1 5 6 0 8 0 pvpl 32 1170379 0 1153471 551 384 167 361 0 265 16 pmappl 200 3240 0 3226 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 836 0 207 19 0 19 19 0 8 0