panic() at panic+0x15c sys/kern/subr_prf.c:207 malloc(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800018b683b0) at vm_get_info+0x9a VOP_IOCTL(fffffd803d0f0410,c0185603,ffff800018b683b0,41,fffffd803f7c6b40,ffff8000ffff2290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802ea22db0,c0185603,ffff800018b683b0,ffff8000ffff2290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2290,ffff800018b684c8,ffff800018b68510) at sys_ioctl+0x5b9 syscall(ffff800018b68590) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,985a94d8010) at Xsyscall+0x128 end of kernel end trace frame: 0x98863974570, 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 = 18446744073709551296 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(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800018b683b0) at vm_get_info+0x9a VOP_IOCTL(fffffd803d0f0410,c0185603,ffff800018b683b0,41,fffffd803f7c6b40,ffff8000ffff2290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802ea22db0,c0185603,ffff800018b683b0,ffff8000ffff2290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff2290,ffff800018b684c8,ffff800018b68510) at sys_ioctl+0x5b9 syscall(ffff800018b68590) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,985a94d8010) at Xsyscall+0x128 end of kernel end trace frame: 0x98863974570, count: -9 ddb> show registers rdi 0xffffffff81411627 db_enter+0x17 rsi 0x31f4 __ALIGN_SIZE+0x21f4 rbp 0xffff800018b67ff0 rbx 0xffff800018b680a0 rdx 0x31f5 __ALIGN_SIZE+0x21f5 rcx 0xffff80001595c000 rax 0xffff80001595c000 r8 0xffff800018b67fb0 r9 0x1 r10 0xffff800000a63800 r11 0x47402bbfd338adfe r12 0x3000000008 r13 0xffff800018b68000 r14 0x100 r15 0x1 rip 0xffffffff81411628 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800018b67fe0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=399406 stat=onproc flags process=0 proc=4000000 pri=75, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2780,0xffffffff825a0168 process=0xffff8000148a26d8 user=0xffff800018b63000, vmspace=0xfffffd803f013990 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 16256 269168 55570 0 2 0 syz-executor.0 *16256 399406 55570 0 7 0x4000000 syz-executor.0 50001 63658 95262 0 2 0 syz-executor.1 50001 156672 95262 0 3 0x4000080 piperd syz-executor.1 52243 119809 1 0 3 0x100083 ttyin getty 55570 13211 13301 0 2 0x482 syz-executor.0 95262 461375 13301 0 2 0x482 syz-executor.1 16669 395842 0 0 3 0x14200 bored sosplice 13301 128515 35994 0 3 0x82 thrsleep syz-fuzzer 13301 320650 35994 0 3 0x4000082 thrsleep syz-fuzzer 13301 442852 35994 0 3 0x4000082 thrsleep syz-fuzzer 13301 347892 35994 0 3 0x4000082 thrsleep syz-fuzzer 13301 66030 35994 0 3 0x4000082 thrsleep syz-fuzzer 13301 50732 35994 0 3 0x4000082 kqread syz-fuzzer 13301 430241 35994 0 3 0x4000082 thrsleep syz-fuzzer 35994 499018 9780 0 3 0x10008a pause ksh 9780 490396 81129 0 3 0x92 select sshd 81129 279219 1 0 3 0x80 select sshd 29739 259484 21461 73 3 0x100090 kqread syslogd 21461 304414 1 0 3 0x100082 netio syslogd 83251 189641 1 77 3 0x100090 poll dhclient 27492 5807 1 0 3 0x80 poll dhclient 67051 363396 0 0 2 0x14200 zerothread 71961 471208 0 0 3 0x14200 aiodoned aiodoned 85950 373397 0 0 3 0x14200 syncer update 55472 275325 0 0 3 0x14200 cleaner cleaner 43575 141874 0 0 3 0x14200 reaper reaper 54493 48327 0 0 3 0x14200 pgdaemon pagedaemon 68585 26397 0 0 3 0x14200 bored crynlk 51771 503453 0 0 3 0x14200 bored crypto 7332 428815 0 0 3 0x40014200 acpi0 acpi0 12300 453675 0 0 3 0x14200 bored softnet 19027 97222 0 0 3 0x14200 bored systqmp 13711 363563 0 0 3 0x14200 bored systq 77441 67837 0 0 3 0x40014200 bored softclock 51773 29406 0 0 3 0x40014200 idle0 25874 180582 0 0 3 0x14200 bored smr 1 314518 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 9500 6341K 6984K 78643K 12430 0 0 pcb 13 8K 8K 78643K 116 0 0 rtable 111 3K 4K 78643K 438 0 0 ifaddr 55 13K 13K 78643K 149 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 57 0 0 iov 0 0K 16K 78643K 72 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 77K 77K 78643K 1910 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 8 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 0K 0K 78643K 96 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1794 195K 288K 78643K 12723 0 0 file desc 6 17K 25K 78643K 798 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 48 38K 63K 78643K 529 0 0 subproc 32 2K 2K 78643K 70 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 110 0 0 in_multi 33 2K 2K 78643K 90 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 286 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 89 20K 21K 78643K 2665 0 0 UVM aobj 30 2K 2K 78643K 38 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 103 0 0 NDP 11 0K 0K 78643K 42 0 0 temp 151 3536K 3604K 78643K 17634 0 0 kqueue 0 0K 0K 78643K 12 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 65 0 63 1 0 1 1 0 8 0 rtentry 112 67 0 22 2 0 2 2 0 8 0 unpcb 120 357 0 349 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 4123 0 4123 2 2 0 1 0 8 0 tcpcb 544 157 0 153 1 0 1 1 0 8 0 inpcb 280 479 0 472 1 0 1 1 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 ppxss 1128 16 0 16 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 305 0 90 15 1 14 14 0 8 0 art_table 32 306 0 90 2 0 2 2 0 8 0 art_node 16 65 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 94 0 84 1 0 1 1 0 8 0 shmpl 112 36 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2619 0 1224 46 0 46 46 0 8 0 ffsino 240 2619 0 1224 83 0 83 83 0 8 0 nchpl 144 3926 0 2324 60 0 60 60 0 8 0 uvmvnodes 72 3127 0 0 57 0 57 57 0 8 0 vnodes 208 3127 0 0 165 0 165 165 0 8 0 namei 1024 11256 0 11256 2 1 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scxspl 192 11623 0 11623 13 9 4 6 0 8 4 plimitpl 152 60 0 53 1 0 1 1 0 8 0 sigapl 432 964 0 950 2 0 2 2 0 8 0 futexpl 56 12396 0 12396 1 0 1 1 0 8 1 knotepl 112 219 0 200 1 0 1 1 0 8 0 kqueuepl 104 167 0 165 1 0 1 1 0 8 0 pipepl 112 546 0 523 3 2 1 2 0 8 0 fdescpl 424 965 0 950 2 0 2 2 0 8 0 filepl 120 5490 0 5383 4 0 4 4 0 8 0 lockfpl 104 246 0 244 1 0 1 1 0 8 0 lockfspl 48 86 0 84 1 0 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 26 0 16 1 0 1 1 0 8 0 ucredpl 96 806 0 799 1 0 1 1 0 8 0 zombiepl 144 950 0 950 2 1 1 1 0 8 1 processpl 864 980 0 950 4 0 4 4 0 8 0 procpl 632 1907 0 1869 4 0 4 4 0 8 0 sosppl 128 16 0 16 3 3 0 1 0 8 0 sockpl 384 910 0 893 4 1 3 4 0 8 1 mcl64k 65536 32 0 32 3 2 1 1 0 8 1 mcl16k 16384 3 0 3 2 2 0 1 0 8 0 mcl12k 12288 19 0 19 3 2 1 1 0 8 1 mcl9k 9216 12 0 12 2 2 0 1 0 8 0 mcl8k 8192 12 0 12 3 2 1 1 0 8 1 mcl4k 4096 36 0 36 3 2 1 1 0 8 1 mcl2k2 2112 5 0 5 3 2 1 1 0 8 1 mcl2k 2048 56686 0 56640 16 9 7 14 0 8 0 mtagpl 80 25 0 19 2 1 1 1 0 8 0 mbufpl 256 95324 0 95224 12 4 8 10 0 8 1 bufpl 256 8136 0 3189 310 0 310 310 0 8 0 anonpl 16 85462 0 72925 58 5 53 56 0 62 0 amapchunkpl 152 3783 0 3677 9 3 6 7 0 158 1 amappl16 192 4167 0 3449 40 3 37 39 0 8 1 amappl15 184 38 0 38 1 0 1 1 0 8 1 amappl14 176 588 0 584 1 0 1 1 0 8 0 amappl12 160 134 0 130 1 0 1 1 0 8 0 amappl11 152 54 0 41 1 0 1 1 0 8 0 amappl10 144 8 0 7 2 1 1 1 0 8 0 amappl9 136 658 0 650 1 0 1 1 0 8 0 amappl8 128 233 0 214 1 0 1 1 0 8 0 amappl7 120 42 0 38 1 0 1 1 0 8 0 amappl6 112 66 0 58 1 0 1 1 0 8 0 amappl5 104 306 0 293 1 0 1 1 0 8 0 amappl4 96 1061 0 1034 1 0 1 1 0 8 0 amappl3 88 507 0 500 1 0 1 1 0 8 0 amappl2 80 6801 0 6727 3 1 2 3 0 8 0 amappl1 72 26757 0 26321 27 18 9 20 0 8 0 amappl 80 2150 0 2113 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 37 0 8 1 0 1 1 0 8 0 uaddrrnd 24 967 0 950 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 967 0 950 1 0 1 1 0 8 0 vmmpekpl 168 9490 0 9464 2 0 2 2 0 8 0 vmmpepl 168 117732 0 115862 133 32 101 101 0 357 19 vmsppl 272 964 0 950 2 1 1 2 0 8 0 pdppl 4096 1940 0 1904 6 1 5 6 0 8 0 pvpl 32 270769 0 255175 151 21 130 141 0 265 0 pmappl 200 966 0 952 1 0 1 1 0 8 0 extentpl 40 38 0 22 1 0 1 1 0 8 0 phpool 112 464 0 27 13 0 13 13 0 8 0