panic: malloc: allocation too large, type = 2, size = 18446744073709547776 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 396483 93841 0 0 0 0 syz-executor.0 * 12045 47228 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(fffffffffffff100,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800021178e90) at vm_get_info+0x9d VOP_IOCTL(fffffd806ebf3d00,c0185603,ffff800021178e90,81,fffffd807f7c6960,ffff800020ace2a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807c3c2ef8,c0185603,ffff800021178e90,ffff800020ace2a0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ace2a0,ffff800021178fa8,ffff800021178ff0) at sys_ioctl+0x5b9 syscall(ffff800021179070) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021179070) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,6e447dc2010) at Xsyscall+0x128 end of kernel end trace frame: 0x6e651863c40, 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 = 18446744073709547776 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(fffffffffffff100,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800021178e90) at vm_get_info+0x9d VOP_IOCTL(fffffd806ebf3d00,c0185603,ffff800021178e90,81,fffffd807f7c6960,ffff800020ace2a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807c3c2ef8,c0185603,ffff800021178e90,ffff800020ace2a0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ace2a0,ffff800021178fa8,ffff800021178ff0) at sys_ioctl+0x5b9 syscall(ffff800021179070) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021179070) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,6e447dc2010) at Xsyscall+0x128 end of kernel end trace frame: 0x6e651863c40, count: -9 ddb{1}> show registers rdi 0xffffffff81bdfd17 db_enter+0x17 rsi 0x2481 __ALIGN_SIZE+0x1481 rbp 0xffff800021178ad0 rbx 0xffff800021178b80 rdx 0x2482 __ALIGN_SIZE+0x1482 rcx 0xffff800021364000 rax 0xffff800021364000 r8 0xffffffff816bf1ff kprintf+0x16f r9 0x1 r10 0x25 r11 0x13ce54b673b35dc5 r12 0x3000000008 r13 0xffff800021178ae0 r14 0x100 r15 0x1 rip 0xffffffff81bdfd18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021178ac0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=12045 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf170,0xffff800020acef08 process=0xffff800020adc000 user=0xffff800021174000, vmspace=0xfffffd807f00bb80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93841 396483 43526 0 7 0 syz-executor.0 93841 467654 43526 0 3 0x4000080 fsleep syz-executor.0 47228 287908 15352 0 2 0 syz-executor.1 *47228 12045 15352 0 7 0x4000000 syz-executor.1 15352 352608 82942 0 3 0x82 nanosleep syz-executor.1 43526 177873 82942 0 3 0x82 nanosleep syz-executor.0 19361 252175 0 0 3 0x14200 acct acct 50776 482578 1 0 3 0x100083 ttyin getty 79165 80160 0 0 3 0x14200 bored sosplice 82942 247655 44684 0 3 0x82 thrsleep syz-fuzzer 82942 269889 44684 0 3 0x4000082 nanosleep syz-fuzzer 82942 145040 44684 0 3 0x4000082 thrsleep syz-fuzzer 82942 165015 44684 0 3 0x4000082 kqread syz-fuzzer 82942 483840 44684 0 3 0x4000082 thrsleep syz-fuzzer 82942 168615 44684 0 3 0x4000082 thrsleep syz-fuzzer 82942 332393 44684 0 3 0x4000082 thrsleep syz-fuzzer 82942 460606 44684 0 3 0x4000082 thrsleep syz-fuzzer 82942 490453 44684 0 3 0x4000082 thrsleep syz-fuzzer 82942 193476 44684 0 3 0x4000082 thrsleep syz-fuzzer 44684 87469 69578 0 3 0x10008a pause ksh 69578 435292 81150 0 3 0x92 select sshd 81150 496632 1 0 3 0x80 select sshd 4931 149029 47657 74 3 0x100092 bpf pflogd 47657 282787 1 0 3 0x80 netio pflogd 43973 18557 46748 73 3 0x100090 kqread syslogd 46748 351582 1 0 3 0x100082 netio syslogd 64968 313200 1 77 3 0x100090 poll dhclient 66862 163554 1 0 3 0x80 poll dhclient 19790 384177 0 0 2 0x14200 zerothread 34830 398093 0 0 3 0x14200 aiodoned aiodoned 1536 306834 0 0 3 0x14200 syncer update 5980 298085 0 0 3 0x14200 cleaner cleaner 89296 140302 0 0 3 0x14200 reaper reaper 60461 440492 0 0 3 0x14200 pgdaemon pagedaemon 73084 233486 0 0 3 0x14200 bored crynlk 80705 335500 0 0 3 0x14200 bored crypto 10643 495309 0 0 3 0x40014200 acpi0 acpi0 30323 487084 0 0 3 0x40014200 idle1 88894 197232 0 0 3 0x14200 bored softnet 49063 110466 0 0 3 0x14200 bored systqmp 58172 506105 0 0 3 0x14200 bored systq 40254 467045 0 0 3 0x40014200 bored softclock 12638 1604 0 0 3 0x40014200 idle0 89988 181480 0 0 3 0x14200 bored smr 1 369847 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 47228 (syz-executor.1) thread 0xffff800020ace2a0 (12045) 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 (0xffffffff82662188) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9686 7174K 9087K 78643K 99582 0 0 pcb 13 8K 8K 78643K 1895 0 0 rtable 120 12K 13K 78643K 5200 0 0 ifaddr 84 23K 27K 78643K 1732 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2197 0 0 iov 0 0K 32K 78643K 1517 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 78K 78643K 28107 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 254 0 0 VM map 2 1K 1K 78643K 26 0 0 sem 12 1K 1K 78643K 13 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 14824 0 0 sigio 0 0K 0K 78643K 156 0 0 proc 62 63K 95K 78643K 4060 0 0 subproc 32 2K 2K 78643K 1045 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 1418 0 0 in_multi 33 2K 2K 78643K 1121 0 0 ether_multi 1 0K 0K 78643K 58 0 0 mrt 0 0K 0K 78643K 43 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 204 901K 901K 78643K 204 0 0 exec 0 0K 1K 78643K 2131 0 0 pfkey data 0 0K 4K 78643K 6 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 145 24K 31K 78643K 51834 0 0 UVM aobj 130 8K 8K 78643K 190 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 1957 0 0 NDP 20 0K 0K 78643K 555 0 0 temp 228 3557K 4196K 78643K 292371 0 0 kqueue 0 0K 0K 78643K 137 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 133 0 127 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 792 0 790 1 0 1 1 0 8 0 rtentry 112 681 0 635 2 0 2 2 0 8 0 unpcb 120 5769 0 5743 12 10 2 2 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5320 0 5320 2 2 0 1 0 8 0 tcpcb 544 6729 0 6725 9 7 2 3 0 8 1 inpcb 280 13240 0 13233 43 40 3 3 0 8 2 rttmr 72 6 0 6 6 6 0 1 0 8 0 nd6 48 122 0 118 1 0 1 1 0 8 0 pkpcb 40 108 0 108 40 40 0 1 0 8 0 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 268 0 268 50 49 1 1 0 8 1 pffrag 232 22 0 22 12 12 0 1 0 482 0 pffrnode 88 22 0 22 12 12 0 1 0 8 0 pffrent 40 52 0 52 12 12 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 428 0 397 1 0 1 1 0 8 0 pfstkey 112 428 0 397 2 0 2 2 0 8 0 pfstate 328 428 0 397 7 4 3 4 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 2908 0 2662 20 4 16 16 0 8 0 art_table 32 2909 0 2662 3 0 3 3 0 8 0 art_node 16 651 0 609 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 12 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 188 0 60 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 24666 0 23234 48 1 47 47 0 8 0 ffsino 272 24666 0 23234 96 0 96 96 0 8 0 nchpl 144 45229 0 44677 63 37 26 62 0 8 0 uvmvnodes 72 7264 0 0 133 0 133 133 0 8 0 vnodes 208 7264 0 0 383 0 383 383 0 8 0 namei 1024 183301 0 183301 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 24 0 24 12 12 0 1 0 8 0 scsiplug 64 28 0 28 22 22 0 1 0 8 0 scxspl 192 134211 0 134211 71 70 1 7 0 8 1 plimitpl 152 1298 0 1289 1 0 1 1 0 8 0 sigapl 432 14857 0 14841 3 1 2 3 0 8 0 futexpl 56 297533 0 297532 3 2 1 1 0 8 0 knotepl 112 6210 0 6191 2 1 1 2 0 8 0 kqueuepl 104 8835 0 8833 1 0 1 1 0 8 0 pipepl 112 20240 0 20221 33 32 1 2 0 8 0 fdescpl 488 14858 0 14841 3 0 3 3 0 8 0 filepl 152 144019 0 143913 88 82 6 9 0 8 1 lockfpl 104 4872 0 4871 1 0 1 1 0 8 0 lockfspl 48 1645 0 1644 1 0 1 1 0 8 0 sessionpl 112 87 0 76 1 0 1 1 0 8 0 pgrppl 48 233 0 222 1 0 1 1 0 8 0 ucredpl 96 32761 0 32748 1 0 1 1 0 8 0 zombiepl 144 14847 0 14847 6 5 1 1 0 8 1 processpl 896 14881 0 14847 4 0 4 4 0 8 0 procpl 632 48045 0 48000 6 1 5 5 0 8 0 srpgc 64 118 0 118 51 51 0 1 0 8 0 sosppl 128 166 0 166 46 46 0 1 0 8 0 sockpl 384 20134 0 20099 52 45 7 7 0 8 2 mcl64k 65536 872 0 0 97 84 13 65 0 8 1 mcl16k 16384 32 0 0 4 2 2 3 0 8 0 mcl12k 12288 65 0 0 2 0 2 2 0 8 0 mcl9k 9216 34 0 0 3 1 2 2 0 8 0 mcl8k 8192 45 0 0 5 3 2 3 0 8 0 mcl4k 4096 33 0 0 5 2 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 164 0 0 17 3 14 17 0 8 0 mtagpl 80 115 0 0 1 0 1 1 0 8 0 mbufpl 256 1274 0 0 39 2 37 37 0 8 0 bufpl 256 54569 0 47303 455 0 455 455 0 8 0 anonpl 16 1487094 0 1475061 422 358 64 90 0 124 0 amapchunkpl 152 95257 0 95147 73 66 7 12 0 158 0 amappl16 192 77062 0 76234 528 478 50 64 0 8 8 amappl15 184 3259 0 3258 1 0 1 1 0 8 0 amappl14 176 2860 0 2856 2 1 1 1 0 8 0 amappl13 168 2731 0 2729 7 6 1 1 0 8 0 amappl12 160 836 0 835 3 2 1 1 0 8 0 amappl11 152 3138 0 3123 1 0 1 1 0 8 0 amappl10 144 1360 0 1356 1 0 1 1 0 8 0 amappl9 136 2422 0 2415 1 0 1 1 0 8 0 amappl8 128 2037 0 1981 2 0 2 2 0 8 0 amappl7 120 1636 0 1628 1 0 1 1 0 8 0 amappl6 112 3015 0 2997 1 0 1 1 0 8 0 amappl5 104 1466 0 1451 1 0 1 1 0 8 0 amappl4 96 15301 0 15266 1 0 1 1 0 8 0 amappl3 88 3476 0 3470 1 0 1 1 0 8 0 amappl2 80 117782 0 117697 3 1 2 3 0 8 0 amappl1 72 336844 0 336392 25 15 10 20 0 8 0 amappl 80 49328 0 49289 3 1 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 189 0 60 3 0 3 3 0 8 0 uaddrrnd 24 14882 0 14841 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14882 0 14841 1 0 1 1 0 8 0 vmmpekpl 168 138852 0 138816 6 3 3 3 0 8 0 vmmpepl 168 1836154 0 1834049 804 685 119 127 0 357 20 vmsppl 368 14857 0 14841 2 0 2 2 0 8 0 pdppl 4096 29771 0 29730 7 1 6 6 0 8 0 pvpl 32 3941351 0 3925990 849 687 162 197 0 265 13 pmappl 232 14881 0 14865 11 10 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 769 0 115 20 0 20 20 0 8 0