panic: malloc: allocation too large, type = 2, size = 18446744073709550176 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 39545 71899 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(fffffffffffffa60,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800017bb7400) at vm_get_info+0x9a VOP_IOCTL(fffffd803656c680,c0185603,ffff800017bb7400,1,fffffd803f7c68a0,ffff80001595f3d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802f298cb8,c0185603,ffff800017bb7400,ffff80001595f3d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff80001595f3d8,ffff800017bb7518,ffff800017bb7560) at sys_ioctl+0x5b9 syscall(ffff800017bb75e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,fbd15fef010) at Xsyscall+0x128 end of kernel end trace frame: 0xfbf1fb232d0, 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 = 18446744073709550176 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(fffffffffffffa60,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800017bb7400) at vm_get_info+0x9a VOP_IOCTL(fffffd803656c680,c0185603,ffff800017bb7400,1,fffffd803f7c68a0,ffff80001595f3d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802f298cb8,c0185603,ffff800017bb7400,ffff80001595f3d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff80001595f3d8,ffff800017bb7518,ffff800017bb7560) at sys_ioctl+0x5b9 syscall(ffff800017bb75e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,fbd15fef010) at Xsyscall+0x128 end of kernel end trace frame: 0xfbf1fb232d0, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x26be __ALIGN_SIZE+0x16be rbp 0xffff800017bb7040 rbx 0xffff800017bb70f0 rdx 0x26bf __ALIGN_SIZE+0x16bf rcx 0xffff800014927000 rax 0xffff800014927000 r8 0xffff800017bb7000 r9 0x1 r10 0xffff800000ad9f40 r11 0x7391c7c50c7bd351 r12 0x3000000008 r13 0xffff800017bb7050 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017bb7030 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=39545 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff80001595fb40,0xffffffff825545b0 process=0xffff8000148a2d98 user=0xffff800017bb2000, vmspace=0xfffffd803f013330 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71899 264125 62691 0 2 0 syz-executor.1 *71899 39545 62691 0 7 0x4000000 syz-executor.1 37586 41017 71107 0 2 0 syz-executor.0 37586 516826 71107 0 2 0x4000000 syz-executor.0 62691 30275 82979 0 3 0x82 nanosleep syz-executor.1 75520 468166 0 0 3 0x14200 acct acct 71107 387145 82979 0 3 0x82 nanosleep syz-executor.0 93504 92185 1 0 3 0x100083 ttyin getty 44992 88031 0 0 3 0x14200 bored sosplice 82979 319865 55897 0 3 0x82 thrsleep syz-fuzzer 82979 63422 55897 0 3 0x4000082 thrsleep syz-fuzzer 82979 317084 55897 0 3 0x4000082 thrsleep syz-fuzzer 82979 319584 55897 0 3 0x4000082 thrsleep syz-fuzzer 82979 162240 55897 0 3 0x4000082 kqread syz-fuzzer 82979 476570 55897 0 3 0x4000082 thrsleep syz-fuzzer 82979 436929 55897 0 3 0x4000082 thrsleep syz-fuzzer 82979 101174 55897 0 3 0x4000082 thrsleep syz-fuzzer 55897 10311 77388 0 3 0x10008a pause ksh 77388 179909 36341 0 3 0x92 select sshd 36341 68918 1 0 3 0x80 select sshd 31066 433947 92305 73 2 0x100010 syslogd 92305 458616 1 0 3 0x100082 netio syslogd 87665 24047 1 77 3 0x100090 poll dhclient 52165 450623 1 0 3 0x80 poll dhclient 56839 32572 0 0 2 0x14200 zerothread 51603 477008 0 0 3 0x14200 aiodoned aiodoned 76586 247867 0 0 3 0x14200 syncer update 13368 231859 0 0 3 0x14200 cleaner cleaner 62675 300742 0 0 3 0x14200 reaper reaper 82014 91866 0 0 3 0x14200 pgdaemon pagedaemon 68922 335203 0 0 3 0x14200 bored crynlk 34111 502578 0 0 3 0x14200 bored crypto 67897 1222 0 0 3 0x40014200 acpi0 acpi0 46842 299942 0 0 3 0x14200 bored softnet 53463 99269 0 0 3 0x14200 bored systqmp 9061 372962 0 0 3 0x14200 bored systq 21747 302368 0 0 3 0x40014200 bored softclock 80063 496275 0 0 3 0x40014200 idle0 47660 262254 0 0 3 0x14200 bored smr 1 263409 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 9552 6375K 14694K 78643K 19209 0 0 pcb 13 8K 9K 78643K 542 0 0 rtable 115 12K 12K 78643K 1291 0 0 ifaddr 71 16K 16K 78643K 442 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 197 0 0 iov 0 0K 36K 78643K 1463 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 4693 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 75 0 0 VM map 2 0K 0K 78643K 11 0 0 sem 12 0K 1K 78643K 1111 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 3705 0 0 sigio 6 0K 0K 78643K 1184 0 0 proc 50 38K 55K 78643K 1279 0 0 subproc 32 2K 2K 78643K 257 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 369 0 0 in_multi 33 2K 2K 78643K 316 0 0 ether_multi 1 0K 0K 78643K 18 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 692 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 115 22K 31K 78643K 10327 0 0 UVM aobj 130 4K 4K 78643K 184 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 473 0 0 NDP 16 0K 0K 78643K 138 0 0 temp 198 3536K 4175K 78643K 64668 0 0 kqueue 0 0K 0K 78643K 38 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 32 0 26 1 0 1 1 0 8 0 rtpcb 80 203 0 201 1 0 1 1 0 8 0 rtentry 112 182 0 137 2 0 2 2 0 8 0 unpcb 120 1381 0 1368 2 1 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 5274 0 5274 1 1 0 1 0 8 0 tcpcb 544 863 0 859 2 1 1 2 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 280 4210 0 4203 29 27 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 30 0 26 1 0 1 1 0 8 0 pkpcb 40 413 0 413 10 9 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 57 0 57 25 24 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 799 0 581 16 2 14 14 0 8 0 art_table 32 800 0 581 2 0 2 2 0 8 0 art_node 16 176 0 136 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 1 0 1 1 0 8 0 semapl 112 1109 0 1099 1 0 1 1 0 8 0 shmpl 112 182 0 54 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7149 0 5749 46 0 46 46 0 8 0 ffsino 240 7149 0 5749 83 0 83 83 0 8 0 nchpl 144 13187 0 11566 61 0 61 61 0 8 0 uvmvnodes 72 6574 0 0 120 0 120 120 0 8 0 vnodes 208 6574 0 0 346 0 346 346 0 8 0 namei 1024 43736 0 43736 5 4 1 1 0 8 1 vmpool 520 9 0 9 4 3 1 1 0 8 1 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 41181 0 41181 26 24 2 7 0 8 2 plimitpl 152 363 0 356 1 0 1 1 0 8 0 sigapl 432 3840 0 3826 2 0 2 2 0 8 0 futexpl 56 93777 0 93777 3 2 1 1 0 8 1 knotepl 112 1597 0 1578 5 3 2 2 0 8 1 kqueuepl 104 3681 0 3676 1 0 1 1 0 8 0 pipepl 112 6640 0 6611 18 17 1 2 0 8 0 fdescpl 424 3841 0 3826 2 0 2 2 0 8 0 filepl 120 38407 0 38296 15 11 4 5 0 8 0 lockfpl 104 1539 0 1538 1 0 1 1 0 8 0 lockfspl 48 429 0 428 1 0 1 1 0 8 0 sessionpl 112 33 0 23 1 0 1 1 0 8 0 pgrppl 48 63 0 53 1 0 1 1 0 8 0 ucredpl 96 4750 0 4743 1 0 1 1 0 8 0 zombiepl 144 3828 0 3828 3 2 1 1 0 8 1 processpl 864 3859 0 3828 4 0 4 4 0 8 0 procpl 632 8796 0 8756 4 0 4 4 0 8 0 sosppl 128 34 0 34 14 13 1 1 0 8 1 sockpl 384 6362 0 6340 20 16 4 5 0 8 1 mcl64k 65536 336 0 336 50 38 12 29 0 8 12 mcl16k 16384 21 0 21 12 12 0 1 0 8 0 mcl12k 12288 79 0 79 27 26 1 1 0 8 1 mcl9k 9216 44 0 44 21 20 1 1 0 8 1 mcl8k 8192 110 0 110 24 24 0 1 0 8 0 mcl4k 4096 352 0 352 7 6 1 1 0 8 1 mcl2k2 2112 28 0 28 15 15 0 1 0 8 0 mcl2k 2048 66435 0 66392 21 14 7 15 0 8 0 mtagpl 80 108 0 98 2 1 1 1 0 8 0 mbufpl 256 129367 0 129262 33 23 10 21 0 8 0 bufpl 256 17394 0 10084 458 0 458 458 0 8 0 anonpl 16 1000280 0 988438 209 127 82 91 0 62 12 amapchunkpl 152 21590 0 21460 75 65 10 30 0 158 4 amappl16 192 56633 0 55851 449 397 52 64 0 8 12 amappl15 184 8 0 8 1 1 0 1 0 8 0 amappl14 176 1038 0 1028 2 1 1 1 0 8 0 amappl13 168 1200 0 1200 3 3 0 1 0 8 0 amappl12 160 331 0 331 2 2 0 1 0 8 0 amappl11 152 214 0 203 1 0 1 1 0 8 0 amappl10 144 59 0 58 2 1 1 1 0 8 0 amappl9 136 760 0 753 1 0 1 1 0 8 0 amappl8 128 310 0 276 2 0 2 2 0 8 0 amappl7 120 132 0 125 1 0 1 1 0 8 0 amappl6 112 227 0 215 1 0 1 1 0 8 0 amappl5 104 588 0 577 1 0 1 1 0 8 0 amappl4 96 4317 0 4290 1 0 1 1 0 8 0 amappl3 88 1758 0 1746 1 0 1 1 0 8 0 amappl2 80 29575 0 29499 4 2 2 3 0 8 0 amappl1 72 80633 0 80208 28 19 9 20 0 8 0 amappl 80 9407 0 9364 2 0 2 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 183 0 54 3 0 3 3 0 8 0 uaddrrnd 24 3850 0 3826 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3850 0 3826 1 0 1 1 0 8 0 vmmpekpl 168 36256 0 36226 2 0 2 2 0 8 0 vmmpepl 168 495992 0 494047 348 238 110 124 0 357 22 vmsppl 272 3840 0 3826 5 4 1 2 0 8 0 pdppl 4096 7706 0 7670 6 1 5 6 0 8 0 pvpl 32 1797417 0 1782345 542 335 207 283 0 265 53 pmappl 200 3849 0 3835 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 728 0 131 18 0 18 18 0 8 0