panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *231453 30604 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(ffff8000149162a0) at vm_get_info+0x9a VOP_IOCTL(fffffd80362014e0,c0185603,ffff8000149162a0,2,fffffd803f7c69c0,ffff8000ffff29f8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802ece5da8,c0185603,ffff8000149162a0,ffff8000ffff29f8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff29f8,ffff8000149163b8,ffff800014916400) at sys_ioctl+0x5b9 syscall(ffff800014916480) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,6dfd78e2010) at Xsyscall+0x128 end of kernel end trace frame: 0x6e248467fc0, 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(ffff8000149162a0) at vm_get_info+0x9a VOP_IOCTL(fffffd80362014e0,c0185603,ffff8000149162a0,2,fffffd803f7c69c0,ffff8000ffff29f8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802ece5da8,c0185603,ffff8000149162a0,ffff8000ffff29f8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff29f8,ffff8000149163b8,ffff800014916400) at sys_ioctl+0x5b9 syscall(ffff800014916480) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,6dfd78e2010) at Xsyscall+0x128 end of kernel end trace frame: 0x6e248467fc0, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x26f0 __ALIGN_SIZE+0x16f0 rbp 0xffff800014915ee0 rbx 0xffff800014915f90 rdx 0x26f1 __ALIGN_SIZE+0x16f1 rcx 0xffff800015741000 rax 0xffff800015741000 r8 0xffff800014915ea0 r9 0x1 r10 0xffff800000a62b40 r11 0xf150ad93ef49736a r12 0x3000000008 r13 0xffff800014915ef0 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014915ed0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=231453 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff38c8,0xffffffff82555660 process=0xffff8000148a2d98 user=0xffff800014911000, vmspace=0xfffffd803f013440 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 30604 227747 26086 0 2 0 syz-executor.1 *30604 231453 26086 0 7 0x4000000 syz-executor.1 510 178379 81122 0 2 0x2 syz-executor.0 26086 208399 81122 0 3 0x82 nanosleep syz-executor.1 62450 476370 1 0 3 0x100083 ttyin getty 80830 3255 0 0 3 0x14200 acct acct 14049 398451 0 0 3 0x14200 bored sosplice 81122 3179 71802 0 3 0x82 thrsleep syz-fuzzer 81122 204014 71802 0 3 0x4000082 nanosleep syz-fuzzer 81122 285602 71802 0 3 0x4000082 thrsleep syz-fuzzer 81122 244232 71802 0 3 0x4000082 thrsleep syz-fuzzer 81122 266431 71802 0 3 0x4000082 kqread syz-fuzzer 81122 155979 71802 0 3 0x4000082 thrsleep syz-fuzzer 81122 22162 71802 0 3 0x4000082 thrsleep syz-fuzzer 71802 99933 87094 0 3 0x10008a pause ksh 87094 430505 4732 0 3 0x92 select sshd 4732 153301 1 0 3 0x80 select sshd 10195 390785 56613 73 3 0x100090 kqread syslogd 56613 270251 1 0 3 0x100082 netio syslogd 18383 323083 1 77 3 0x100090 poll dhclient 28674 392667 1 0 3 0x80 poll dhclient 74840 76781 0 0 2 0x14200 zerothread 44636 218784 0 0 3 0x14200 aiodoned aiodoned 12769 13888 0 0 3 0x14200 syncer update 44259 462279 0 0 3 0x14200 cleaner cleaner 30200 499174 0 0 3 0x14200 reaper reaper 92024 27435 0 0 3 0x14200 pgdaemon pagedaemon 20216 512370 0 0 3 0x14200 bored crynlk 28661 222686 0 0 3 0x14200 bored crypto 63685 287377 0 0 3 0x40014200 acpi0 acpi0 19255 125256 0 0 3 0x14200 bored softnet 87293 48202 0 0 3 0x14200 bored systqmp 19513 420419 0 0 3 0x14200 bored systq 70063 192217 0 0 3 0x40014200 bored softclock 70451 40134 0 0 3 0x40014200 idle0 31146 142824 0 0 3 0x14200 bored smr 1 239476 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 9548 6426K 7195K 78643K 15951 0 0 pcb 13 8K 8K 78643K 231 0 0 rtable 94 3K 4K 78643K 2527 0 0 ifaddr 68 15K 15K 78643K 283 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 81 0 0 iov 0 0K 32K 78643K 212 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 3161 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 19 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 1K 1K 78643K 18 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1825 0 0 sigio 0 0K 0K 78643K 33 0 0 proc 49 38K 63K 78643K 705 0 0 subproc 32 2K 2K 78643K 136 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 260 0 0 in_multi 22 1K 2K 78643K 169 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 1 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 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 420 0 0 pfkey data 0 0K 0K 78643K 2 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 102 21K 23K 78643K 5254 0 0 UVM aobj 86 3K 3K 78643K 96 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 203 0 0 NDP 16 0K 0K 78643K 86 0 0 temp 198 3536K 3610K 78643K 31820 0 0 kqueue 0 0K 0K 78643K 20 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 18 0 14 1 0 1 1 0 8 0 rtpcb 80 2023 0 2021 1 0 1 1 0 8 0 rtentry 112 108 0 73 2 0 2 2 0 8 0 unpcb 120 781 0 771 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6809 0 6809 1 1 0 1 0 8 0 tcpcb 544 363 0 359 1 0 1 1 0 8 0 inpcb 280 1127 0 1120 2 1 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 16 0 14 1 0 1 1 0 8 0 pkpcb 40 12 0 12 4 4 0 1 0 8 0 ppxss 1128 30 0 30 6 5 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 490 0 318 16 5 11 14 0 8 0 art_table 32 491 0 318 2 0 2 2 0 8 0 art_node 16 106 0 75 1 0 1 1 0 8 0 sysvmsgpl 40 62 0 24 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 94 0 10 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4356 0 2963 46 0 46 46 0 8 0 ffsino 240 4356 0 2963 83 0 83 83 0 8 0 nchpl 144 7339 0 5728 60 0 60 60 0 8 0 uvmvnodes 72 5780 0 0 106 0 106 106 0 8 0 vnodes 208 5780 0 0 305 0 305 305 0 8 0 namei 1024 24439 0 24439 3 2 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scxspl 192 21344 0 21344 16 15 1 7 0 8 1 plimitpl 152 163 0 156 1 0 1 1 0 8 0 sigapl 432 1979 0 1966 2 0 2 2 0 8 0 futexpl 56 39628 0 39628 1 0 1 1 0 8 1 knotepl 112 491 0 472 2 1 1 2 0 8 0 kqueuepl 104 437 0 435 1 0 1 1 0 8 0 pipepl 112 1128 0 1109 7 6 1 2 0 8 0 fdescpl 424 1980 0 1966 2 0 2 2 0 8 0 filepl 120 15984 0 15885 9 5 4 5 0 8 1 lockfpl 104 1106 0 1105 1 0 1 1 0 8 0 lockfspl 48 400 0 399 1 0 1 1 0 8 0 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 45 0 35 1 0 1 1 0 8 0 ucredpl 96 3064 0 3057 1 0 1 1 0 8 0 zombiepl 144 1966 0 1966 3 2 1 1 0 8 1 processpl 864 1996 0 1966 4 0 4 4 0 8 0 procpl 632 4282 0 4245 4 0 4 4 0 8 0 sosppl 128 18 0 18 4 3 1 1 0 8 1 sockpl 384 3958 0 3939 13 9 4 5 0 8 1 mcl64k 65536 54 0 54 6 5 1 1 0 8 1 mcl16k 16384 17 0 17 9 8 1 1 0 8 1 mcl12k 12288 41 0 41 7 6 1 1 0 8 1 mcl9k 9216 15 0 15 6 6 0 1 0 8 0 mcl8k 8192 56 0 56 4 3 1 1 0 8 1 mcl4k 4096 218 0 218 2 1 1 1 0 8 1 mcl2k2 2112 15 0 15 8 8 0 1 0 8 0 mcl2k 2048 52674 0 52626 19 12 7 15 0 8 0 mtagpl 80 42 0 40 4 3 1 1 0 8 0 mbufpl 256 121468 0 121309 336 312 24 104 0 8 8 bufpl 256 10520 0 5540 313 1 312 312 0 8 0 anonpl 16 192531 0 178678 125 52 73 73 0 62 15 amapchunkpl 152 8673 0 8570 14 9 5 8 0 158 0 amappl16 192 10023 0 9247 100 52 48 51 0 8 8 amappl15 184 240 0 238 1 0 1 1 0 8 0 amappl14 176 328 0 325 2 1 1 1 0 8 0 amappl12 160 172 0 169 1 0 1 1 0 8 0 amappl11 152 452 0 441 1 0 1 1 0 8 0 amappl10 144 806 0 805 2 1 1 1 0 8 0 amappl9 136 658 0 651 1 0 1 1 0 8 0 amappl8 128 219 0 192 1 0 1 1 0 8 0 amappl7 120 851 0 845 1 0 1 1 0 8 0 amappl6 112 443 0 434 1 0 1 1 0 8 0 amappl5 104 339 0 328 1 0 1 1 0 8 0 amappl4 96 2220 0 2192 1 0 1 1 0 8 0 amappl3 88 434 0 427 1 0 1 1 0 8 0 amappl2 80 14808 0 14741 4 2 2 3 0 8 0 amappl1 72 44675 0 44272 28 19 9 20 0 8 0 amappl 80 4584 0 4548 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 95 0 10 2 0 2 2 0 8 0 uaddrrnd 24 1982 0 1966 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1982 0 1966 1 0 1 1 0 8 0 vmmpekpl 168 15605 0 15580 2 0 2 2 0 8 0 vmmpepl 168 239071 0 237255 208 113 95 108 0 357 9 vmsppl 272 1979 0 1966 2 1 1 2 0 8 0 pdppl 4096 3970 0 3936 6 1 5 6 0 8 0 pvpl 32 530398 0 513527 287 112 175 177 0 265 37 pmappl 200 1981 0 1968 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 806 0 353 17 3 14 16 0 8 0