panic: malloc: allocation too large, type = 2, size = 18446744073709548416 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *206655 27720 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(fffffffffffff380,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80001791f9a0) at vm_get_info+0x9a VOP_IOCTL(fffffd803c4305b0,c0185603,ffff80001791f9a0,1,fffffd803f7c6960,ffff800014914290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803bbfc7f8,c0185603,ffff80001791f9a0,ffff800014914290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014914290,ffff80001791fab8,ffff80001791fb00) at sys_ioctl+0x5b9 syscall(ffff80001791fb80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,9a917751010) at Xsyscall+0x128 end of kernel end trace frame: 0x9abe4c28750, 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 = 18446744073709548416 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(fffffffffffff380,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80001791f9a0) at vm_get_info+0x9a VOP_IOCTL(fffffd803c4305b0,c0185603,ffff80001791f9a0,1,fffffd803f7c6960,ffff800014914290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803bbfc7f8,c0185603,ffff80001791f9a0,ffff800014914290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014914290,ffff80001791fab8,ffff80001791fb00) at sys_ioctl+0x5b9 syscall(ffff80001791fb80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,9a917751010) at Xsyscall+0x128 end of kernel end trace frame: 0x9abe4c28750, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x268c __ALIGN_SIZE+0x168c rbp 0xffff80001791f5e0 rbx 0xffff80001791f690 rdx 0x268d __ALIGN_SIZE+0x168d rcx 0xffff800017993000 rax 0xffff800017993000 r8 0xffff80001791f5a0 r9 0x1 r10 0xffff800000075980 r11 0x98b7809e0c6a09cc r12 0x3000000008 r13 0xffff80001791f5f0 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001791f5d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=206655 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000149153d8,0xffff800014914518 process=0xffff8000148a2018 user=0xffff80001791a000, vmspace=0xfffffd803f013110 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 25156 35766 98067 0 2 0 syz-executor.1 25156 128339 98067 0 2 0x4000000 syz-executor.1 27720 328239 81237 0 2 0 syz-executor.0 *27720 206655 81237 0 7 0x4000000 syz-executor.0 27720 276921 81237 0 2 0x4000000 syz-executor.0 81237 147910 11711 0 3 0x82 nanosleep syz-executor.0 79187 458620 0 0 3 0x14200 acct acct 98067 132062 11711 0 3 0x82 nanosleep syz-executor.1 43478 45887 0 0 3 0x14200 bored sosplice 11711 260053 94345 0 3 0x82 thrsleep syz-fuzzer 11711 427029 94345 0 3 0x4000082 thrsleep syz-fuzzer 11711 429405 94345 0 3 0x4000082 thrsleep syz-fuzzer 11711 264287 94345 0 3 0x4000082 thrsleep syz-fuzzer 11711 367718 94345 0 3 0x4000082 kqread syz-fuzzer 11711 340963 94345 0 3 0x4000082 thrsleep syz-fuzzer 11711 505689 94345 0 3 0x4000082 thrsleep syz-fuzzer 94345 356715 926 0 3 0x10008a pause ksh 926 84034 8288 0 3 0x92 select sshd 36318 316802 1 0 3 0x100083 ttyin getty 8288 433605 1 0 3 0x80 select sshd 84730 471888 81227 73 3 0x100090 kqread syslogd 81227 3945 1 0 3 0x100082 netio syslogd 99436 418006 1 77 3 0x100090 poll dhclient 82657 405135 1 0 3 0x80 poll dhclient 75178 459666 0 0 2 0x14200 zerothread 69317 97506 0 0 3 0x14200 aiodoned aiodoned 36745 170314 0 0 3 0x14200 syncer update 48435 458518 0 0 3 0x14200 cleaner cleaner 89402 168048 0 0 3 0x14200 reaper reaper 23359 109884 0 0 3 0x14200 pgdaemon pagedaemon 21851 63769 0 0 3 0x14200 bored crynlk 76200 196659 0 0 3 0x14200 bored crypto 51969 148041 0 0 3 0x40014200 acpi0 acpi0 89574 50589 0 0 3 0x14200 bored softnet 39785 9990 0 0 3 0x14200 bored systqmp 63223 327905 0 0 3 0x14200 bored systq 32401 255433 0 0 3 0x40014200 bored softclock 91020 492286 0 0 3 0x40014200 idle0 70357 457887 0 0 3 0x14200 bored smr 1 214686 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 9576 6499K 7521K 78643K 21306 0 0 pcb 13 8K 8K 78643K 630 0 0 rtable 115 12K 12K 78643K 1543 0 0 ifaddr 74 18K 20K 78643K 529 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 275 0 0 iov 0 0K 24K 78643K 510 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 5383 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 83 0 0 VM map 2 0K 0K 78643K 22 0 0 sem 12 0K 1K 78643K 685 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 4672 0 0 sigio 0 0K 0K 78643K 93 0 0 proc 50 38K 63K 78643K 1326 0 0 subproc 32 2K 2K 78643K 293 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 527 0 0 in_multi 33 2K 2K 78643K 352 0 0 ether_multi 1 0K 0K 78643K 33 0 0 mrt 1 0K 0K 78643K 15 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 150 662K 662K 78643K 150 0 0 exec 0 0K 1K 78643K 734 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 106 21K 31K 78643K 11954 0 0 UVM aobj 130 6K 6K 78643K 209 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 557 0 0 NDP 17 0K 0K 78643K 163 0 0 temp 205 3536K 4176K 78643K 78457 0 0 kqueue 0 0K 0K 78643K 45 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 37 0 31 1 0 1 1 0 8 0 rtpcb 80 325 0 323 1 0 1 1 0 8 0 rtentry 112 192 0 148 2 0 2 2 0 8 0 unpcb 120 18497 0 18484 5 3 2 3 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 7209 0 7209 1 1 0 1 0 8 0 tcpcb 544 999 0 995 2 1 1 2 0 8 0 ipq 40 8 0 8 3 3 0 1 0 8 0 ipqe 40 20 0 20 3 3 0 1 0 8 0 inpcb 280 2957 0 2948 18 16 2 2 0 8 1 nd6 48 32 0 28 1 0 1 1 0 8 0 pkpcb 40 12 0 12 6 6 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 69 0 69 18 18 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 857 0 639 23 9 14 15 0 8 0 art_table 32 858 0 639 2 0 2 2 0 8 0 art_node 16 189 0 149 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 12 1 0 1 1 0 8 0 semapl 112 683 0 673 1 0 1 1 0 8 0 shmpl 112 207 0 79 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8498 0 7109 46 0 46 46 0 8 0 ffsino 240 8498 0 7109 83 0 83 83 0 8 0 nchpl 144 15301 0 13655 63 1 62 62 0 8 0 uvmvnodes 72 6014 0 0 110 0 110 110 0 8 0 vnodes 208 6014 0 0 317 0 317 317 0 8 0 namei 1024 50378 0 50377 3 2 1 1 0 8 0 vmpool 520 20 0 20 9 9 0 1 0 8 0 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 44261 0 44261 21 20 1 7 0 8 1 plimitpl 152 413 0 406 1 0 1 1 0 8 0 sigapl 432 4798 0 4784 2 0 2 2 0 8 0 futexpl 56 107984 0 107984 2 1 1 1 0 8 1 knotepl 112 1165 0 1146 5 4 1 3 0 8 0 kqueuepl 104 1108 0 1106 1 0 1 1 0 8 0 pipepl 112 2344 0 2325 8 7 1 2 0 8 0 fdescpl 424 4799 0 4784 2 0 2 2 0 8 0 filepl 120 47756 0 47657 26 22 4 6 0 8 1 lockfpl 104 1470 0 1468 1 0 1 1 0 8 0 lockfspl 48 478 0 476 1 0 1 1 0 8 0 sessionpl 112 32 0 22 1 0 1 1 0 8 0 pgrppl 48 90 0 80 1 0 1 1 0 8 0 ucredpl 96 6023 0 6016 1 0 1 1 0 8 0 zombiepl 144 4785 0 4785 3 2 1 1 0 8 1 processpl 864 4816 0 4785 4 0 4 4 0 8 0 procpl 632 10527 0 10487 4 0 4 4 0 8 0 sosppl 128 56 0 56 15 15 0 1 0 8 0 sockpl 384 21849 0 21827 56 51 5 10 0 8 1 mcl64k 65536 131 0 131 17 16 1 1 0 8 1 mcl16k 16384 22 0 22 14 14 0 1 0 8 0 mcl12k 12288 77 0 77 15 15 0 1 0 8 0 mcl9k 9216 49 0 49 20 19 1 1 0 8 1 mcl8k 8192 100 0 100 15 14 1 1 0 8 1 mcl4k 4096 314 0 314 5 4 1 1 0 8 1 mcl2k2 2112 34 0 33 12 11 1 1 0 8 0 mcl2k 2048 63557 0 63516 26 20 6 21 0 8 0 mtagpl 80 121 0 115 4 3 1 1 0 8 0 mbufpl 256 134925 0 134830 28 20 8 12 0 8 0 bufpl 256 17268 0 11255 378 1 377 377 0 8 0 anonpl 16 448858 0 434991 197 124 73 73 0 62 15 amapchunkpl 152 21979 0 21872 93 85 8 29 0 158 3 amappl16 192 24260 0 23451 173 123 50 53 0 8 8 amappl15 184 1108 0 1104 3 2 1 1 0 8 0 amappl14 176 677 0 672 2 1 1 1 0 8 0 amappl13 168 211 0 211 2 2 0 1 0 8 0 amappl12 160 217 0 215 1 0 1 1 0 8 0 amappl11 152 1140 0 1129 1 0 1 1 0 8 0 amappl10 144 784 0 784 5 5 0 1 0 8 0 amappl9 136 1472 0 1464 1 0 1 1 0 8 0 amappl8 128 1048 0 1013 2 0 2 2 0 8 0 amappl7 120 890 0 882 1 0 1 1 0 8 0 amappl6 112 1105 0 1095 1 0 1 1 0 8 0 amappl5 104 475 0 465 1 0 1 1 0 8 0 amappl4 96 5058 0 5031 1 0 1 1 0 8 0 amappl3 88 971 0 966 1 0 1 1 0 8 0 amappl2 80 37655 0 37579 4 2 2 3 0 8 0 amappl1 72 94420 0 94005 26 16 10 20 0 8 0 amappl 80 10983 0 10946 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 208 0 79 3 0 3 3 0 8 0 uaddrrnd 24 4819 0 4784 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4819 0 4784 1 0 1 1 0 8 0 vmmpekpl 168 30779 0 30754 2 0 2 2 0 8 0 vmmpepl 168 566257 0 564290 342 245 97 116 0 357 11 vmsppl 272 4798 0 4784 5 4 1 2 0 8 0 pdppl 4096 9644 0 9608 6 1 5 6 0 8 0 pvpl 32 1164838 0 1147878 402 223 179 179 0 265 37 pmappl 200 4818 0 4804 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 611 0 108 15 0 15 15 0 8 0