panic: malloc: allocation too large, type = 2, size = 18446744073709550656 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *204792 78270 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(ffff80001591cb50) at vm_get_info+0x9a VOP_IOCTL(fffffd80360d78f0,c0185603,ffff80001591cb50,1,fffffd803f7c69c0,ffff8000ffff3160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802f620e98,c0185603,ffff80001591cb50,ffff8000ffff3160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff3160,ffff80001591cc68,ffff80001591ccb0) at sys_ioctl+0x5b9 syscall(ffff80001591cd30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,f8bdd32d010) at Xsyscall+0x128 end of kernel end trace frame: 0xf8e8bb0ad70, 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(ffff80001591cb50) at vm_get_info+0x9a VOP_IOCTL(fffffd80360d78f0,c0185603,ffff80001591cb50,1,fffffd803f7c69c0,ffff8000ffff3160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802f620e98,c0185603,ffff80001591cb50,ffff8000ffff3160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff3160,ffff80001591cc68,ffff80001591ccb0) at sys_ioctl+0x5b9 syscall(ffff80001591cd30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,f8bdd32d010) at Xsyscall+0x128 end of kernel end trace frame: 0xf8e8bb0ad70, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x26e6 __ALIGN_SIZE+0x16e6 rbp 0xffff80001591c790 rbx 0xffff80001591c840 rdx 0x26e7 __ALIGN_SIZE+0x16e7 rcx 0xffff800017b56000 rax 0xffff800017b56000 r8 0xffff80001591c750 r9 0x1 r10 0xffff800000abcf80 r11 0xc74e9b6062344558 r12 0x3000000008 r13 0xffff80001591c7a0 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001591c780 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=204792 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3650,0xffffffff825545b0 process=0xffff8000ffff6a30 user=0xffff800015917000, vmspace=0xfffffd803f013440 estcpu=36, cpticks=3, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 78270 86158 85118 0 2 0 syz-executor.0 *78270 204792 85118 0 7 0x4000000 syz-executor.0 48119 306973 74772 0 2 0x2 syz-executor.1 88837 430155 1 0 3 0x100083 ttyin getty 85118 379086 74772 0 3 0x82 nanosleep syz-executor.0 49098 211816 0 0 3 0x14200 bored sosplice 74772 426987 92817 0 3 0x82 thrsleep syz-fuzzer 74772 215333 92817 0 2 0x4000482 syz-fuzzer 74772 259678 92817 0 3 0x4000082 kqread syz-fuzzer 74772 323392 92817 0 3 0x4000082 thrsleep syz-fuzzer 74772 344558 92817 0 3 0x4000082 thrsleep syz-fuzzer 74772 237958 92817 0 3 0x4000082 thrsleep syz-fuzzer 74772 282174 92817 0 3 0x4000082 thrsleep syz-fuzzer 92817 300632 28639 0 3 0x10008a pause ksh 28639 188215 60076 0 3 0x92 select sshd 60076 446819 1 0 3 0x80 select sshd 43554 275704 52295 73 2 0x100010 syslogd 52295 282371 1 0 3 0x100082 netio syslogd 32468 481191 1 77 3 0x100090 poll dhclient 57605 292447 1 0 3 0x80 poll dhclient 25116 170033 0 0 2 0x14200 zerothread 3591 116061 0 0 3 0x14200 aiodoned aiodoned 84790 494002 0 0 3 0x14200 syncer update 95296 77913 0 0 3 0x14200 cleaner cleaner 35061 130116 0 0 3 0x14200 reaper reaper 66141 17454 0 0 3 0x14200 pgdaemon pagedaemon 15251 484395 0 0 3 0x14200 bored crynlk 23275 265488 0 0 3 0x14200 bored crypto 16838 465345 0 0 3 0x40014200 acpi0 acpi0 40031 462730 0 0 3 0x14200 bored softnet 44412 240971 0 0 3 0x14200 bored systqmp 158 293246 0 0 3 0x14200 bored systq 43440 216843 0 0 3 0x40014200 bored softclock 44949 306191 0 0 3 0x40014200 idle0 29210 391757 0 0 3 0x14200 bored smr 1 123747 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 9554 6372K 7016K 78643K 16760 0 0 pcb 13 9K 9K 78643K 313 0 0 rtable 114 4K 4K 78643K 905 0 0 ifaddr 74 16K 17K 78643K 315 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 97 0 0 iov 0 0K 24K 78643K 853 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 3554 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 45 0 0 VM map 2 0K 0K 78643K 8 0 0 sem 12 1K 1K 78643K 50 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 2366 0 0 sigio 0 0K 0K 78643K 51 0 0 proc 51 38K 63K 78643K 835 0 0 subproc 32 2K 2K 78643K 153 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 236 0 0 in_multi 33 2K 2K 78643K 188 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 443 0 0 pfkey data 0 0K 4K 78643K 5 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 101 21K 30K 78643K 6459 0 0 UVM aobj 122 3K 3K 78643K 134 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 281 0 0 NDP 17 0K 1K 78643K 96 0 0 temp 204 3532K 3605K 78643K 44482 0 0 kqueue 0 0K 0K 78643K 14 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 21 0 15 1 0 1 1 0 8 0 rtpcb 80 129 0 127 1 0 1 1 0 8 0 rtentry 112 122 0 77 2 0 2 2 0 8 0 unpcb 120 4275 0 4263 8 6 2 2 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5329 0 5329 2 2 0 1 0 8 0 tcpcb 544 495 0 491 1 0 1 1 0 8 0 ipq 40 11 0 11 6 6 0 1 0 8 0 ipqe 40 34 0 34 6 6 0 1 0 8 0 inpcb 280 4128 0 4121 9 6 3 3 0 8 2 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 3 0 3 3 2 1 1 0 8 1 ip6af 40 4 0 4 2 1 1 1 0 8 1 nd6 48 18 0 14 1 0 1 1 0 8 0 pkpcb 40 14 0 14 6 6 0 1 0 8 0 ppxss 1128 37 0 37 8 7 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 529 0 315 14 0 14 14 0 8 0 art_table 32 530 0 315 2 0 2 2 0 8 0 art_node 16 118 0 78 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 16 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 46 0 36 1 0 1 1 0 8 0 shmpl 112 132 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5065 0 3679 46 0 46 46 0 8 0 ffsino 240 5065 0 3679 83 0 83 83 0 8 0 nchpl 144 8622 0 7006 62 1 61 61 0 8 0 uvmvnodes 72 6260 0 0 114 0 114 114 0 8 0 vnodes 208 6260 0 0 330 0 330 330 0 8 0 namei 1024 28579 0 28579 3 2 1 1 0 8 1 vmpool 520 6 0 6 3 2 1 1 0 8 1 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 29360 0 29360 15 14 1 7 0 8 1 plimitpl 152 213 0 206 1 0 1 1 0 8 0 sigapl 432 2517 0 2504 2 0 2 2 0 8 0 futexpl 56 56126 0 56126 3 2 1 1 0 8 1 knotepl 112 901 0 882 3 2 1 3 0 8 0 kqueuepl 104 1067 0 1065 1 0 1 1 0 8 0 pipepl 112 1522 0 1503 8 7 1 2 0 8 0 fdescpl 424 2518 0 2504 2 0 2 2 0 8 0 filepl 120 23547 0 23450 15 10 5 6 0 8 1 lockfpl 104 837 0 836 1 0 1 1 0 8 0 lockfspl 48 284 0 283 1 0 1 1 0 8 0 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 47 0 37 1 0 1 1 0 8 0 ucredpl 96 3542 0 3535 1 0 1 1 0 8 0 zombiepl 144 2504 0 2504 3 2 1 1 0 8 1 processpl 864 2533 0 2504 4 0 4 4 0 8 0 procpl 632 5426 0 5390 4 0 4 4 0 8 0 sosppl 128 34 0 34 11 11 0 1 0 8 0 sockpl 384 8654 0 8633 33 24 9 9 0 8 6 mcl64k 65536 353 0 353 41 40 1 33 0 8 1 mcl16k 16384 30 0 30 12 11 1 1 0 8 1 mcl12k 12288 48 0 48 10 9 1 1 0 8 1 mcl9k 9216 19 0 19 9 8 1 1 0 8 1 mcl8k 8192 133 0 133 4 3 1 1 0 8 1 mcl4k 4096 292 0 292 5 4 1 1 0 8 1 mcl2k2 2112 19 0 19 10 10 0 1 0 8 0 mcl2k 2048 58345 0 58300 22 15 7 14 0 8 0 mtagpl 80 67 0 61 2 1 1 1 0 8 0 mbufpl 256 120283 0 120183 45 36 9 30 0 8 0 bufpl 256 13374 0 7094 393 0 393 393 0 8 0 anonpl 16 234391 0 220572 115 52 63 76 0 62 0 amapchunkpl 152 10763 0 10659 24 19 5 10 0 158 0 amappl16 192 12630 0 11810 109 65 44 55 0 8 2 amappl15 184 118 0 117 1 0 1 1 0 8 0 amappl14 176 464 0 460 1 0 1 1 0 8 0 amappl13 168 422 0 421 1 0 1 1 0 8 0 amappl12 160 4 0 3 2 1 1 1 0 8 0 amappl11 152 1008 0 995 1 0 1 1 0 8 0 amappl10 144 337 0 335 1 0 1 1 0 8 0 amappl9 136 735 0 729 1 0 1 1 0 8 0 amappl8 128 302 0 273 3 1 2 2 0 8 0 amappl7 120 401 0 394 1 0 1 1 0 8 0 amappl6 112 991 0 980 1 0 1 1 0 8 0 amappl5 104 224 0 214 1 0 1 1 0 8 0 amappl4 96 2927 0 2898 1 0 1 1 0 8 0 amappl3 88 818 0 809 1 0 1 1 0 8 0 amappl2 80 19178 0 19112 3 1 2 3 0 8 0 amappl1 72 54000 0 53587 26 16 10 20 0 8 0 amappl 80 5743 0 5708 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 133 0 12 2 0 2 2 0 8 0 uaddrrnd 24 2524 0 2504 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2524 0 2504 1 0 1 1 0 8 0 vmmpekpl 168 18241 0 18213 2 0 2 2 0 8 0 vmmpepl 168 300770 0 298898 230 119 111 115 0 357 23 vmsppl 272 2517 0 2504 3 2 1 2 0 8 0 pdppl 4096 5054 0 5020 6 1 5 6 0 8 0 pvpl 32 696889 0 679972 366 167 199 286 0 265 54 pmappl 200 2523 0 2510 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 638 0 116 15 0 15 15 0 8 0