login: panic: malloc: allocation too large, type = 2, size = 18446744073709550976 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *484606 18262 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800016b2c950) at vm_get_info+0x9a VOP_IOCTL(fffffd8039cd95b0,c0185603,ffff800016b2c950,81,fffffd803f7c6c00,ffff8000ffff2ee8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803622bcb0,c0185603,ffff800016b2c950,ffff8000ffff2ee8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2ee8,ffff800016b2ca68,ffff800016b2cab0) at sys_ioctl+0x5b9 syscall(ffff800016b2cb30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,77654575010) at Xsyscall+0x128 end of kernel end trace frame: 0x7792b24a670, 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 = 18446744073709550976 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800016b2c950) at vm_get_info+0x9a VOP_IOCTL(fffffd8039cd95b0,c0185603,ffff800016b2c950,81,fffffd803f7c6c00,ffff8000ffff2ee8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd803622bcb0,c0185603,ffff800016b2c950,ffff8000ffff2ee8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2ee8,ffff800016b2ca68,ffff800016b2cab0) at sys_ioctl+0x5b9 syscall(ffff800016b2cb30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,77654575010) at Xsyscall+0x128 end of kernel end trace frame: 0x7792b24a670, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x26b4 __ALIGN_SIZE+0x16b4 rbp 0xffff800016b2c590 rbx 0xffff800016b2c640 rdx 0x26b5 __ALIGN_SIZE+0x16b5 rcx 0xffff800017b45000 rax 0xffff800017b45000 r8 0xffff800016b2c550 r9 0x1 r10 0xffff800000a54d00 r11 0x92603f9b0e57935a r12 0x3000000008 r13 0xffff800016b2c5a0 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016b2c580 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=484606 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffff8000ffff2c80 process=0xffff8000ffff6a30 user=0xffff800016b27000, vmspace=0xfffffd803f013550 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18262 360853 93401 0 2 0 syz-executor.1 *18262 484606 93401 0 7 0x4000000 syz-executor.1 89044 176112 63590 0 2 0x10 syz-executor.0 89044 97772 63590 0 3 0x4000090 ttyout syz-executor.0 89044 327507 63590 0 3 0x4000090 ttyout syz-executor.0 89044 493036 63590 0 3 0x4000090 fsleep syz-executor.0 5465 352773 1 0 3 0x100083 ttyin getty 93401 85654 13389 0 3 0x82 nanosleep syz-executor.1 63590 164173 13389 0 3 0x82 nanosleep syz-executor.0 44699 423075 0 0 3 0x14200 bored sosplice 13389 291538 1492 0 3 0x82 thrsleep syz-fuzzer 13389 205931 1492 0 3 0x4000082 thrsleep syz-fuzzer 13389 386349 1492 0 3 0x4000082 thrsleep syz-fuzzer 13389 329322 1492 0 3 0x4000082 thrsleep syz-fuzzer 13389 487017 1492 0 3 0x4000082 thrsleep syz-fuzzer 13389 164390 1492 0 3 0x4000082 kqread syz-fuzzer 13389 399259 1492 0 3 0x4000082 thrsleep syz-fuzzer 1492 339108 2332 0 3 0x10008a pause ksh 2332 10128 15097 0 3 0x92 select sshd 15097 445366 1 0 3 0x80 select sshd 33675 226292 89861 73 3 0x100090 kqread syslogd 89861 101449 1 0 3 0x100082 netio syslogd 62657 70329 0 0 2 0x14200 zerothread 48334 296553 0 0 3 0x14200 aiodoned aiodoned 56407 512762 0 0 3 0x14200 syncer update 9094 220335 0 0 3 0x14200 cleaner cleaner 61318 414874 0 0 3 0x14200 reaper reaper 45067 335327 0 0 3 0x14200 pgdaemon pagedaemon 51730 228982 0 0 3 0x14200 bored crynlk 31702 403655 0 0 3 0x14200 bored crypto 37411 10060 0 0 3 0x40014200 acpi0 acpi0 80199 398778 0 0 3 0x14200 bored softnet 42170 46549 0 0 3 0x14200 bored systqmp 10036 115812 0 0 3 0x14200 bored systq 63485 418124 0 0 3 0x40014200 bored softclock 9905 265805 0 0 3 0x40014200 idle0 11988 50730 0 0 3 0x14200 bored smr 1 202981 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 9497 6288K 6984K 78643K 13826 0 0 pcb 13 8K 8K 78643K 168 0 0 rtable 112 12K 12K 78643K 365 0 0 ifaddr 52 12K 13K 78643K 140 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 51 0 0 iov 0 0K 24K 78643K 615 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 2401 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 15 0 0 VM map 2 0K 0K 78643K 6 0 0 sem 12 0K 0K 78643K 151 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 1013 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 44 30K 63K 78643K 544 0 0 subproc 32 2K 2K 78643K 68 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 82 0 0 in_multi 33 2K 2K 78643K 68 0 0 ether_multi 1 0K 0K 78643K 1 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 144 636K 636K 78643K 144 0 0 exec 0 0K 1K 78643K 297 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 95 21K 23K 78643K 3472 0 0 UVM aobj 51 3K 3K 78643K 54 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 171 0 0 NDP 10 0K 0K 78643K 40 0 0 temp 155 3531K 3605K 78643K 11532 0 0 kqueue 0 0K 0K 78643K 27 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 10 0 4 1 0 1 1 0 8 0 rtpcb 80 499 0 495 2 1 1 1 0 8 0 rtentry 112 69 0 25 2 0 2 2 0 8 0 unpcb 120 334 0 324 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5210 0 5210 1 1 0 1 0 8 0 tcpcb 544 237 0 233 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 696 0 692 2 1 1 2 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 pkpcb 40 12 0 12 5 5 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 14 0 14 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 302 0 86 14 0 14 14 0 8 0 art_table 32 303 0 86 2 0 2 2 0 8 0 art_node 16 64 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 19 1 0 1 1 0 8 0 semapl 112 149 0 139 1 0 1 1 0 8 0 shmpl 112 52 0 3 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3072 0 1689 46 0 46 46 0 8 0 ffsino 240 3072 0 1689 83 0 83 83 0 8 0 nchpl 144 5020 0 3410 61 0 61 61 0 8 0 uvmvnodes 72 3874 0 0 71 0 71 71 0 8 0 vnodes 208 3874 0 0 204 0 204 204 0 8 0 namei 1024 18244 0 18244 4 3 1 1 0 8 1 vmpool 520 4 0 4 1 1 0 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 16567 0 16567 11 10 1 7 0 8 1 plimitpl 152 104 0 98 1 0 1 1 0 8 0 sigapl 432 1179 0 1167 2 0 2 2 0 8 0 futexpl 56 26496 0 26495 3 2 1 1 0 8 0 knotepl 112 676 0 657 4 3 1 3 0 8 0 kqueuepl 104 897 0 892 1 0 1 1 0 8 0 pipepl 112 624 0 605 3 2 1 2 0 8 0 fdescpl 424 1180 0 1167 2 0 2 2 0 8 0 filepl 120 11674 0 11567 11 6 5 6 0 8 1 lockfpl 104 311 0 310 3 2 1 1 0 8 0 lockfspl 48 103 0 102 3 2 1 1 0 8 0 sessionpl 112 20 0 12 1 0 1 1 0 8 0 pgrppl 48 24 0 16 1 0 1 1 0 8 0 ucredpl 96 3867 0 3860 1 0 1 1 0 8 0 zombiepl 144 1167 0 1167 3 2 1 1 0 8 1 processpl 864 1195 0 1167 4 0 4 4 0 8 0 procpl 632 2688 0 2650 4 0 4 4 0 8 0 sosppl 128 8 0 8 3 3 0 1 0 8 0 sockpl 384 1546 0 1528 16 14 2 6 0 8 0 mcl64k 65536 152 0 152 19 18 1 15 0 8 1 mcl16k 16384 7 0 7 4 3 1 1 0 8 1 mcl12k 12288 20 0 20 7 6 1 1 0 8 1 mcl9k 9216 9 0 9 7 6 1 1 0 8 1 mcl8k 8192 35 0 35 9 8 1 1 0 8 1 mcl4k 4096 111 0 111 3 2 1 1 0 8 1 mcl2k2 2112 7 0 7 6 5 1 1 0 8 1 mcl2k 2048 57329 0 57288 23 17 6 18 0 8 0 mtagpl 80 36 0 24 2 1 1 1 0 8 0 mbufpl 256 98849 0 98746 22 13 9 16 0 8 0 bufpl 256 9168 0 3169 376 0 376 376 0 8 0 anonpl 16 135694 0 121893 114 53 61 74 0 62 0 amapchunkpl 152 5185 0 5077 7 1 6 6 0 158 0 amappl16 192 7007 0 6219 93 53 40 52 0 8 0 amappl15 184 8 0 8 1 1 0 1 0 8 0 amappl14 176 41 0 38 2 1 1 1 0 8 0 amappl13 168 406 0 406 2 2 0 1 0 8 0 amappl12 160 14 0 10 1 0 1 1 0 8 0 amappl11 152 131 0 123 1 0 1 1 0 8 0 amappl10 144 483 0 481 2 1 1 1 0 8 0 amappl9 136 606 0 600 1 0 1 1 0 8 0 amappl8 128 165 0 145 1 0 1 1 0 8 0 amappl7 120 518 0 511 1 0 1 1 0 8 0 amappl6 112 141 0 130 1 0 1 1 0 8 0 amappl5 104 170 0 162 1 0 1 1 0 8 0 amappl4 96 1802 0 1777 1 0 1 1 0 8 0 amappl3 88 141 0 136 1 0 1 1 0 8 0 amappl2 80 8526 0 8460 4 2 2 3 0 8 0 amappl1 72 31117 0 30714 28 19 9 20 0 8 0 amappl 80 2941 0 2905 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 53 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1184 0 1167 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1184 0 1167 1 0 1 1 0 8 0 vmmpekpl 168 12105 0 12086 2 0 2 2 0 8 0 vmmpepl 168 147491 0 145624 176 86 90 108 0 357 8 vmsppl 272 1179 0 1167 2 1 1 2 0 8 0 pdppl 4096 2374 0 2342 6 1 5 6 0 8 0 pvpl 32 482534 0 465628 348 106 242 280 0 265 97 pmappl 200 1183 0 1171 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 572 0 68 15 0 15 15 0 8 0