panic: malloc: allocation too large, type = 2, size = 18446744073709551296 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 253469 61265 0 0 0 0 syz-executor.1 *320367 61265 0 0 0x4000000 1K 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(ffff80002338d1f0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e2028f0,c0185603,ffff80002338d1f0,1,fffffd807f7c6a20,ffff800020ab0018) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806368c310,c0185603,ffff80002338d1f0,ffff800020ab0018) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab0018,ffff80002338d308,ffff80002338d350) at sys_ioctl+0x5b9 syscall(ffff80002338d3d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002338d3d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff53,0,3,2636e133010) at Xsyscall+0x128 end of kernel end trace frame: 0x26578ba4730, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic malloc: allocation too large, type = 2, size = 18446744073709551296 ddb{1}> 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(ffff80002338d1f0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e2028f0,c0185603,ffff80002338d1f0,1,fffffd807f7c6a20,ffff800020ab0018) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806368c310,c0185603,ffff80002338d1f0,ffff800020ab0018) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab0018,ffff80002338d308,ffff80002338d350) at sys_ioctl+0x5b9 syscall(ffff80002338d3d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002338d3d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff53,0,3,2636e133010) at Xsyscall+0x128 end of kernel end trace frame: 0x26578ba4730, count: -9 ddb{1}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x1799 __ALIGN_SIZE+0x799 rbp 0xffff80002338ce30 rbx 0xffff80002338cee0 rdx 0x179a __ALIGN_SIZE+0x79a rcx 0xffff80002398e000 rax 0xffff80002398e000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x67b73cdf4d8c1466 r12 0x3000000008 r13 0xffff80002338ce40 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002338ce20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=320367 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1160,0xffff800020ab0ef8 process=0xffff800020a4b508 user=0xffff800023388000, vmspace=0xfffffd807f00c730 estcpu=30, cpticks=0, pctcpu=1.2 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61265 253469 87433 0 7 0 syz-executor.1 *61265 320367 87433 0 7 0x4000000 syz-executor.1 61265 379717 87433 0 2 0x4000080 syz-executor.1 57127 255791 10507 0 3 0 vmmaplk syz-executor.0 57127 117018 10507 0 3 0x4000000 physio syz-executor.0 10507 284079 34982 0 3 0x82 nanosleep syz-executor.0 87433 263627 34982 0 3 0x82 nanosleep syz-executor.1 12732 363276 1 0 3 0x100083 ttyopn getty 21916 195039 0 0 3 0x14200 bored sosplice 34982 58923 3393 0 3 0x82 thrsleep syz-fuzzer 34982 29984 3393 0 3 0x4000082 thrsleep syz-fuzzer 34982 230013 3393 0 3 0x4000082 thrsleep syz-fuzzer 34982 135849 3393 0 3 0x4000082 kqread syz-fuzzer 34982 112365 3393 0 3 0x4000082 thrsleep syz-fuzzer 34982 245029 3393 0 3 0x4000082 thrsleep syz-fuzzer 34982 166786 3393 0 3 0x4000082 thrsleep syz-fuzzer 34982 390594 3393 0 3 0x4000082 thrsleep syz-fuzzer 34982 297179 3393 0 3 0x4000082 thrsleep syz-fuzzer 34982 97493 3393 0 3 0x4000082 thrsleep syz-fuzzer 3393 427572 87459 0 3 0x10008a pause ksh 87459 49723 10014 0 3 0x92 select sshd 10014 451253 1 0 3 0x80 select sshd 60867 31916 42552 74 3 0x100092 bpf pflogd 42552 205595 1 0 3 0x80 netio pflogd 31968 329785 7497 73 3 0x100090 kqread syslogd 7497 293461 1 0 3 0x100082 netio syslogd 49563 336384 1 77 3 0x100090 poll dhclient 48633 369248 1 0 3 0x80 poll dhclient 67692 82178 0 0 3 0x14200 pgzero zerothread 97921 444536 0 0 3 0x14200 aiodoned aiodoned 23860 84289 0 0 3 0x14200 syncer update 39708 493913 0 0 3 0x14200 cleaner cleaner 23697 338772 0 0 3 0x14200 reaper reaper 21602 285729 0 0 3 0x14200 pgdaemon pagedaemon 3942 503413 0 0 3 0x14200 bored crynlk 68569 27142 0 0 3 0x14200 bored crypto 70078 77410 0 0 3 0x40014200 acpi0 acpi0 17883 41210 0 0 3 0x40014200 idle1 56715 82546 0 0 3 0x14200 bored softnet 87875 297309 0 0 3 0x14200 bored systqmp 87291 446724 0 0 3 0x14200 bored systq 58866 250975 0 0 3 0x40014200 bored softclock 77460 66621 0 0 3 0x40014200 idle0 88593 334680 0 0 3 0x14200 bored smr 1 393411 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 61265 (syz-executor.1) thread 0xffff800020ab0018 (320367) shared rwlock vmlistlock r = 0 (0xffff80000066e478) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 vm_get_info+0x39 sys/arch/amd64/amd64/vmm.c:3712 #2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82663928) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 Process 57127 (syz-executor.0) thread 0xffff800020ab0290 (117018) shared rwlock vmmaplk r = 0 (0xfffffd807f00c2f8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvm_vslock_device+0x11e sys/uvm/uvm_glue.c:174 #2 physio+0x26a sys/kern/kern_physio.c:139 #3 spec_read+0xf1 sys/kern/spec_vnops.c:223 #4 VOP_READ+0xbf sys/kern/vfs_vops.c:248 #5 vn_read+0x124 sys/kern/vfs_vnops.c:366 #6 dofilereadv+0x1a2 sys/kern/sys_generic.c:236 #7 sys_preadv+0xb8 sys/kern/vfs_syscalls.c:3207 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9580 6464K 7730K 78643K 21105 0 0 pcb 13 8K 8K 78643K 443 0 0 rtable 117 12K 13K 78643K 1227 0 0 ifaddr 79 17K 18K 78643K 420 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1561 0 0 iov 0 0K 32K 78643K 331 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 77K 78643K 4763 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 42 0 0 VM map 2 1K 1K 78643K 4 0 0 sem 12 1K 1K 78643K 14 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3380 0 0 sigio 0 0K 0K 78643K 56 0 0 proc 62 63K 83K 78643K 1214 0 0 subproc 32 2K 2K 78643K 238 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 308 0 0 in_multi 33 2K 2K 78643K 265 0 0 ether_multi 1 0K 0K 78643K 17 0 0 mrt 0 0K 0K 78643K 12 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 584 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 112 22K 31K 78643K 12609 0 0 UVM aobj 130 8K 8K 78643K 135 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 590 0 0 NDP 18 0K 0K 78643K 130 0 0 temp 214 3556K 4196K 78643K 56392 0 0 kqueue 0 0K 0K 78643K 20 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> 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 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 177 0 175 1 0 1 1 0 8 0 rtentry 112 175 0 131 2 0 2 2 0 8 0 unpcb 120 1231 0 1219 1 0 1 1 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 5598 0 5598 1 1 0 1 0 8 0 tcpcb 544 4623 0 4616 16 14 2 3 0 8 1 inpcb 280 6249 0 6239 15 13 2 3 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 28 0 24 1 0 1 1 0 8 0 pkpcb 40 15 0 15 5 5 0 1 0 8 0 ppxss 1128 51 0 51 12 12 0 1 0 8 0 pffrag 232 3 0 3 2 2 0 1 0 482 0 pffrnode 88 3 0 3 2 2 0 1 0 8 0 pffrent 40 6 0 6 2 2 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 117 0 101 1 0 1 1 0 8 0 pfstkey 112 118 0 102 1 0 1 1 0 8 0 pfstate 328 118 0 102 4 2 2 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 753 0 535 14 0 14 14 0 8 0 art_table 32 754 0 535 2 0 2 2 0 8 0 art_node 16 168 0 128 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 49 2 1 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6447 0 5047 46 0 46 46 0 8 0 ffsino 272 6447 0 5047 94 0 94 94 0 8 0 nchpl 144 12014 0 10388 61 0 61 61 0 8 0 uvmvnodes 72 6239 0 0 114 0 114 114 0 8 0 vnodes 208 6239 0 0 329 0 329 329 0 8 0 namei 1024 38305 0 38305 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 2 0 2 1 1 0 1 0 8 0 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 32864 0 32863 19 18 1 7 0 8 0 plimitpl 152 331 0 323 1 0 1 1 0 8 0 sigapl 432 3546 0 3530 3 1 2 3 0 8 0 futexpl 56 63157 0 63157 1 0 1 1 0 8 1 knotepl 112 739 0 720 3 2 1 2 0 8 0 kqueuepl 104 660 0 658 1 0 1 1 0 8 0 pipepl 112 1692 0 1673 5 4 1 2 0 8 0 fdescpl 488 3547 0 3530 3 0 3 3 0 8 0 filepl 152 27006 0 26899 19 13 6 6 0 8 1 lockfpl 104 981 0 980 1 0 1 1 0 8 0 lockfspl 48 333 0 332 1 0 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 77 0 66 1 0 1 1 0 8 0 ucredpl 96 4296 0 4286 1 0 1 1 0 8 0 zombiepl 144 3530 0 3530 3 2 1 1 0 8 1 processpl 896 3563 0 3530 4 0 4 4 0 8 0 procpl 632 11256 0 11211 11 6 5 5 0 8 1 srpgc 64 24 0 24 11 10 1 1 0 8 1 sosppl 128 46 0 46 12 11 1 1 0 8 1 sockpl 384 7716 0 7692 28 23 5 6 0 8 2 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 23 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 14 0 0 2 0 2 2 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 145 0 0 15 0 15 15 0 8 0 mtagpl 80 25 0 0 1 0 1 1 0 8 0 mbufpl 256 508 0 0 28 1 27 28 0 8 0 bufpl 256 15799 0 8750 441 0 441 441 0 8 0 anonpl 16 349244 0 336441 145 74 71 76 0 124 8 amapchunkpl 152 22107 0 21995 17 7 10 10 0 158 4 amappl16 192 17424 0 16570 140 93 47 54 0 8 4 amappl15 184 728 0 727 1 0 1 1 0 8 0 amappl14 176 521 0 519 2 1 1 1 0 8 0 amappl13 168 437 0 435 3 2 1 1 0 8 0 amappl12 160 610 0 610 3 3 0 1 0 8 0 amappl11 152 884 0 868 1 0 1 1 0 8 0 amappl10 144 395 0 390 1 0 1 1 0 8 0 amappl9 136 1001 0 991 1 0 1 1 0 8 0 amappl8 128 551 0 519 4 2 2 2 0 8 0 amappl7 120 463 0 454 1 0 1 1 0 8 0 amappl6 112 864 0 851 1 0 1 1 0 8 0 amappl5 104 837 0 823 1 0 1 1 0 8 0 amappl4 96 3551 0 3516 1 0 1 1 0 8 0 amappl3 88 1192 0 1186 1 0 1 1 0 8 0 amappl2 80 27260 0 27180 4 2 2 3 0 8 0 amappl1 72 87553 0 87103 25 15 10 20 0 8 0 amappl 80 11696 0 11656 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 3549 0 3530 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3549 0 3530 1 0 1 1 0 8 0 vmmpekpl 168 29791 0 29754 2 0 2 2 0 8 0 vmmpepl 168 441638 0 439542 292 176 116 119 0 357 23 vmsppl 368 3546 0 3530 2 0 2 2 0 8 0 pdppl 4096 7105 0 7064 7 1 6 6 0 8 0 pvpl 32 952075 0 934964 330 154 176 183 0 265 28 pmappl 232 3548 0 3532 4 3 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 636 0 21 18 0 18 18 0 8 0