panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 48694 62346 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(fffffffffffffec0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80001597ef70) at vm_get_info+0x9a VOP_IOCTL(fffffd80360e4410,c0185603,ffff80001597ef70,1,fffffd803f7c6ae0,ffff800015953b40) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802f09d798,c0185603,ffff80001597ef70,ffff800015953b40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800015953b40,ffff80001597f088,ffff80001597f0d0) at sys_ioctl+0x5b9 syscall(ffff80001597f150) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,fbe22e590e0) at Xsyscall+0x128 end of kernel end trace frame: 0xfc0dfc98200, 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(ffff80001597ef70) at vm_get_info+0x9a VOP_IOCTL(fffffd80360e4410,c0185603,ffff80001597ef70,1,fffffd803f7c6ae0,ffff800015953b40) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802f09d798,c0185603,ffff80001597ef70,ffff800015953b40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800015953b40,ffff80001597f088,ffff80001597f0d0) at sys_ioctl+0x5b9 syscall(ffff80001597f150) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,fbe22e590e0) at Xsyscall+0x128 end of kernel end trace frame: 0xfc0dfc98200, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x2704 __ALIGN_SIZE+0x1704 rbp 0xffff80001597ebb0 rbx 0xffff80001597ec60 rdx 0x2705 __ALIGN_SIZE+0x1705 rcx 0xffff800014b1b000 rax 0xffff800014b1b000 r8 0xffff80001597eb70 r9 0x1 r10 0xffff800000a837c0 r11 0x44a8886be55a7dc9 r12 0x3000000008 r13 0xffff80001597ebc0 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001597eba0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=48694 stat=onproc flags process=0 proc=4000000 pri=68, usrpri=68, nice=20 forw=0xffffffffffffffff, list=0xffff8000159538c8,0xffffffff82555660 process=0xffff8000ffff6010 user=0xffff80001597a000, vmspace=0xfffffd803f013220 estcpu=18, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39944 29641 46139 0 3 0x3000 suspend syz-executor.0 39944 224234 46139 0 2 0x4081000 syz-executor.0 62346 389820 45334 0 2 0 syz-executor.1 62346 41537 45334 0 3 0x4000080 kqread syz-executor.1 *62346 48694 45334 0 7 0x4000000 syz-executor.1 45334 405247 36741 0 3 0x82 nanosleep syz-executor.1 46139 142941 36741 0 3 0x82 nanosleep syz-executor.0 85997 376931 1 0 3 0x100083 ttyin getty 28722 114975 0 0 3 0x14200 bored sosplice 36741 330129 50681 0 3 0x82 thrsleep syz-fuzzer 36741 16594 50681 0 3 0x4000082 thrsleep syz-fuzzer 36741 33398 50681 0 3 0x4000082 thrsleep syz-fuzzer 36741 252986 50681 0 3 0x4000082 thrsleep syz-fuzzer 36741 482145 50681 0 3 0x4000082 thrsleep syz-fuzzer 36741 44964 50681 0 3 0x4000082 kqread syz-fuzzer 36741 118084 50681 0 3 0x4000082 thrsleep syz-fuzzer 50681 205151 22251 0 3 0x10008a pause ksh 22251 380137 61976 0 3 0x92 select sshd 61976 264973 1 0 3 0x80 select sshd 17260 140378 13841 73 3 0x100090 kqread syslogd 13841 295933 1 0 3 0x100082 netio syslogd 14048 277232 1 77 3 0x100090 poll dhclient 6508 363312 1 0 3 0x80 poll dhclient 7471 373314 0 0 2 0x14200 zerothread 21458 396349 0 0 3 0x14200 aiodoned aiodoned 56917 65817 0 0 3 0x14200 syncer update 66582 357635 0 0 3 0x14200 cleaner cleaner 12509 383689 0 0 3 0x14200 reaper reaper 16363 405141 0 0 3 0x14200 pgdaemon pagedaemon 81053 113938 0 0 3 0x14200 bored crynlk 96271 96098 0 0 3 0x14200 bored crypto 66650 468635 0 0 3 0x40014200 acpi0 acpi0 57224 120835 0 0 3 0x14200 bored softnet 16309 284839 0 0 3 0x14200 bored systqmp 27283 35227 0 0 3 0x14200 bored systq 20474 160088 0 0 3 0x40014200 bored softclock 74172 30289 0 0 3 0x40014200 idle0 30398 70929 0 0 3 0x14200 bored smr 1 110764 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 7202K 8416K 78643K 21649 0 0 pcb 13 8K 8K 78643K 220 0 0 rtable 118 12K 12K 78643K 877 0 0 ifaddr 64 15K 16K 78643K 276 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 169 0 0 iov 0 0K 16K 78643K 174 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1228 77K 78K 78643K 4372 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 28 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 0K 1K 78643K 260 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 1814 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 48 38K 63K 78643K 847 0 0 subproc 32 2K 2K 78643K 172 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 179 0 0 in_multi 33 2K 2K 78643K 171 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 8 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 442 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 107 21K 31K 78643K 5136 0 0 UVM aobj 96 3K 3K 78643K 107 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 183 0 0 NDP 14 0K 0K 78643K 86 0 0 temp 184 3535K 4175K 78643K 57309 0 0 kqueue 0 0K 0K 78643K 22 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 22 0 16 1 0 1 1 0 8 0 rtpcb 80 121 0 119 1 0 1 1 0 8 0 rtentry 112 134 0 89 2 0 2 2 0 8 0 unpcb 120 646 0 636 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5592 0 5592 1 1 0 1 0 8 0 tcpcb 544 298 0 294 1 0 1 1 0 8 0 ipq 40 4 0 4 2 2 0 1 0 8 0 ipqe 40 8 0 8 2 2 0 1 0 8 0 inpcb 280 1060 0 1053 3 2 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 20 0 16 1 0 1 1 0 8 0 pkpcb 40 8 0 8 3 3 0 1 0 8 0 ppxss 1128 30 0 30 8 8 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 593 0 376 17 3 14 15 0 8 0 art_table 32 594 0 376 2 0 2 2 0 8 0 art_node 16 126 0 86 1 0 1 1 0 8 0 sysvmsgpl 40 39 0 13 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 256 0 246 1 0 1 1 0 8 0 shmpl 112 105 0 11 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4066 0 2672 46 0 46 46 0 8 0 ffsino 240 4066 0 2672 83 0 83 83 0 8 0 nchpl 144 7324 0 5708 60 0 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 24324 0 24324 4 3 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 19186 0 19186 21 20 1 7 0 8 1 plimitpl 152 162 0 155 1 0 1 1 0 8 0 sigapl 432 1963 0 1949 2 0 2 2 0 8 0 futexpl 56 37600 0 37600 3 2 1 1 0 8 1 knotepl 112 513 0 494 1 0 1 1 0 8 0 kqueuepl 104 449 0 444 1 0 1 1 0 8 0 pipepl 112 1056 0 1030 4 3 1 2 0 8 0 fdescpl 424 1964 0 1949 2 0 2 2 0 8 0 filepl 120 14824 0 14711 6 2 4 5 0 8 0 lockfpl 104 925 0 921 1 0 1 1 0 8 0 lockfspl 48 247 0 244 1 0 1 1 0 8 0 sessionpl 112 27 0 17 1 0 1 1 0 8 0 pgrppl 48 37 0 27 1 0 1 1 0 8 0 ucredpl 96 1944 0 1936 1 0 1 1 0 8 0 zombiepl 144 1950 0 1949 4 3 1 1 0 8 0 processpl 864 1979 0 1949 4 0 4 4 0 8 0 procpl 632 4072 0 4033 4 0 4 4 0 8 0 sosppl 128 20 0 20 6 6 0 1 0 8 0 sockpl 384 1851 0 1832 6 3 3 4 0 8 0 mcl64k 65536 35 0 35 11 10 1 1 0 8 1 mcl16k 16384 6 0 6 3 3 0 1 0 8 0 mcl12k 12288 35 0 35 8 7 1 1 0 8 1 mcl9k 9216 18 0 18 5 5 0 1 0 8 0 mcl8k 8192 52 0 52 6 6 0 1 0 8 0 mcl4k 4096 129 0 129 4 4 0 1 0 8 0 mcl2k2 2112 18 0 18 8 8 0 1 0 8 0 mcl2k 2048 60495 0 60449 25 18 7 20 0 8 0 mtagpl 80 50 0 42 3 2 1 1 0 8 0 mbufpl 256 107648 0 107503 23 12 11 12 0 8 0 bufpl 256 9954 0 4812 322 0 322 322 0 8 0 anonpl 16 206786 0 194809 148 73 75 76 0 62 12 amapchunkpl 152 8614 0 8496 19 13 6 12 0 158 0 amappl16 192 10518 0 9702 115 65 50 53 0 8 8 amappl15 184 10 0 8 1 0 1 1 0 8 0 amappl14 176 357 0 353 2 1 1 1 0 8 0 amappl13 168 153 0 153 1 1 0 1 0 8 0 amappl12 160 411 0 409 2 1 1 1 0 8 0 amappl11 152 258 0 247 1 0 1 1 0 8 0 amappl10 144 149 0 145 1 0 1 1 0 8 0 amappl9 136 999 0 993 1 0 1 1 0 8 0 amappl8 128 557 0 530 1 0 1 1 0 8 0 amappl7 120 198 0 190 1 0 1 1 0 8 0 amappl6 112 264 0 252 1 0 1 1 0 8 0 amappl5 104 595 0 584 1 0 1 1 0 8 0 amappl4 96 1886 0 1855 1 0 1 1 0 8 0 amappl3 88 472 0 467 1 0 1 1 0 8 0 amappl2 80 14530 0 14456 4 2 2 3 0 8 0 amappl1 72 44988 0 44547 30 21 9 20 0 8 0 amappl 80 4414 0 4372 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 106 0 11 2 0 2 2 0 8 0 uaddrrnd 24 1966 0 1949 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1966 0 1949 1 0 1 1 0 8 0 vmmpekpl 168 15801 0 15772 2 0 2 2 0 8 0 vmmpepl 168 235761 0 233774 244 132 112 112 0 357 25 vmsppl 272 1963 0 1949 2 1 1 2 0 8 0 pdppl 4096 3938 0 3902 6 1 5 6 0 8 0 pvpl 32 538421 0 522866 312 134 178 180 0 265 31 pmappl 200 1965 0 1951 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 513 0 63 13 0 13 13 0 8 0