login: panic: malloc: allocation too large, type = 2, size = 18446744073709550656 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 463993 86118 0 0 0 0 syz-executor.0 *388409 86118 0 0 0x4000000 1K syz-executor.0 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(fffffffffffffc40,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b4cde0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e2d7b60,c0185603,ffff800020b4cde0,1,fffffd807f7c6780,ffff800020ab0290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807d049e50,c0185603,ffff800020b4cde0,ffff800020ab0290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab0290,ffff800020b4cef8,ffff800020b4cf40) at sys_ioctl+0x5b9 syscall(ffff800020b4cfc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b4cfc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,6aa3e9e70e0) at Xsyscall+0x128 end of kernel end trace frame: 0x6ad154cd860, 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 = 18446744073709550656 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(fffffffffffffc40,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b4cde0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e2d7b60,c0185603,ffff800020b4cde0,1,fffffd807f7c6780,ffff800020ab0290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807d049e50,c0185603,ffff800020b4cde0,ffff800020ab0290) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab0290,ffff800020b4cef8,ffff800020b4cf40) at sys_ioctl+0x5b9 syscall(ffff800020b4cfc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b4cfc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,6aa3e9e70e0) at Xsyscall+0x128 end of kernel end trace frame: 0x6ad154cd860, count: -9 ddb{1}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x2199 __ALIGN_SIZE+0x1199 rbp 0xffff800020b4ca20 rbx 0xffff800020b4cad0 rdx 0x219a __ALIGN_SIZE+0x119a rcx 0xffff80002358a000 rax 0xffff80002358a000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x9836f808a53605b5 r12 0x3000000008 r13 0xffff800020b4ca30 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b4ca10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=388409 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0c70,0xffffffff8262fc50 process=0xffff800020add500 user=0xffff800020b48000, vmspace=0xfffffd807f00c8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 86118 463993 4583 0 7 0 syz-executor.0 86118 523743 4583 0 3 0x4000080 fsleep syz-executor.0 *86118 388409 4583 0 7 0x4000000 syz-executor.0 66141 215444 1 0 3 0x100083 ttyin getty 4583 60450 77815 0 3 0x82 nanosleep syz-executor.0 39133 417071 0 0 3 0x14200 bored sosplice 90216 443854 0 0 3 0x14200 acct acct 77815 453857 21683 0 3 0x82 thrsleep syz-fuzzer 77815 481252 21683 0 3 0x4000082 nanosleep syz-fuzzer 77815 152866 21683 0 3 0x4000082 thrsleep syz-fuzzer 77815 510366 21683 0 2 0x4000002 syz-fuzzer 77815 297478 21683 0 3 0x4000082 thrsleep syz-fuzzer 77815 361949 21683 0 3 0x4000082 kqread syz-fuzzer 77815 444387 21683 0 3 0x4000082 thrsleep syz-fuzzer 77815 447029 21683 0 3 0x4000082 thrsleep syz-fuzzer 77815 334116 21683 0 3 0x4000082 thrsleep syz-fuzzer 77815 106988 21683 0 3 0x4000082 thrsleep syz-fuzzer 21683 195077 58570 0 3 0x10008a pause ksh 58570 352656 22664 0 3 0x92 select sshd 22664 468810 1 0 3 0x80 select sshd 90290 409036 85695 74 3 0x100092 bpf pflogd 85695 301824 1 0 3 0x80 netio pflogd 15651 144301 30416 73 3 0x100090 kqread syslogd 30416 446375 1 0 3 0x100082 netio syslogd 9010 146733 1 77 3 0x100090 poll dhclient 99106 144995 1 0 3 0x80 poll dhclient 25832 23604 0 0 2 0x14200 zerothread 7398 289945 0 0 3 0x14200 aiodoned aiodoned 38958 458603 0 0 3 0x14200 syncer update 87082 399760 0 0 3 0x14200 cleaner cleaner 17277 273884 0 0 3 0x14200 reaper reaper 38050 312125 0 0 3 0x14200 pgdaemon pagedaemon 49742 146924 0 0 3 0x14200 bored crynlk 79011 84656 0 0 3 0x14200 bored crypto 64406 193810 0 0 3 0x40014200 acpi0 acpi0 1011 163072 0 0 3 0x40014200 idle1 47332 397906 0 0 3 0x14200 bored softnet 33384 147997 0 0 3 0x14200 bored systqmp 30548 253801 0 0 3 0x14200 bored systq 50937 524203 0 0 3 0x40014200 bored softclock 11090 51386 0 0 3 0x40014200 idle0 68805 468589 0 0 3 0x14200 bored smr 1 520755 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 86118 (syz-executor.0) thread 0xffff800020ab0290 (388409) 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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9569 6562K 7075K 78643K 17101 0 0 pcb 13 8K 8K 78643K 443 0 0 rtable 95 12K 13K 78643K 1190 0 0 ifaddr 66 15K 17K 78643K 364 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1634 0 0 iov 0 0K 24K 78643K 2814 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 3958 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 31 0 0 VM map 2 1K 1K 78643K 8 0 0 sem 12 0K 0K 78643K 826 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 3259 0 0 sigio 0 0K 0K 78643K 39 0 0 proc 61 63K 83K 78643K 1134 0 0 subproc 16 1K 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 228 0 0 in_multi 22 1K 2K 78643K 241 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 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 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 628 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 101 13K 31K 78643K 12271 0 0 UVM aobj 130 8K 8K 78643K 134 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 360 0 0 NDP 15 0K 0K 78643K 114 0 0 temp 178 3555K 3626K 78643K 46331 0 0 kqueue 0 0K 0K 78643K 16 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 36 0 32 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 169 0 167 1 0 1 1 0 8 0 rtentry 112 182 0 148 2 0 2 2 0 8 0 unpcb 120 1247 0 1233 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 5861 0 5861 2 2 0 1 0 8 0 tcpcb 544 755 0 751 1 0 1 1 0 8 0 inpcb 280 2579 0 2572 9 8 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 28 0 26 1 0 1 1 0 8 0 pkpcb 40 17 0 17 5 5 0 1 0 8 0 ppxss 1128 42 0 42 6 5 1 1 0 8 1 pffrag 232 8 0 8 5 5 0 1 0 482 0 pffrnode 88 8 0 8 5 5 0 1 0 8 0 pffrent 40 18 0 18 6 5 1 1 0 8 1 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 86 0 61 1 0 1 1 0 8 0 pfstkey 112 86 0 61 2 0 2 2 0 8 0 pfstate 328 86 0 61 4 0 4 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 762 0 590 15 1 14 14 0 8 0 art_table 32 763 0 590 2 0 2 2 0 8 0 art_node 16 179 0 148 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 30 3 2 1 1 0 8 0 semapl 112 824 0 814 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7370 0 5975 46 0 46 46 0 8 0 ffsino 272 7370 0 5975 95 0 95 95 0 8 0 nchpl 144 12851 0 11245 61 0 61 61 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 44980 0 44980 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 6 3 3 0 1 0 8 0 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 34317 0 34317 22 21 1 7 0 8 1 plimitpl 152 276 0 269 1 0 1 1 0 8 0 sigapl 432 3425 0 3411 3 1 2 3 0 8 0 futexpl 56 59374 0 59373 1 0 1 1 0 8 0 knotepl 112 615 0 602 1 0 1 1 0 8 0 kqueuepl 104 752 0 750 1 0 1 1 0 8 0 pipepl 112 1768 0 1755 5 4 1 2 0 8 0 fdescpl 488 3426 0 3411 3 0 3 3 0 8 0 filepl 152 28187 0 28106 14 9 5 6 0 8 0 lockfpl 104 3546 0 3545 1 0 1 1 0 8 0 lockfspl 48 921 0 920 1 0 1 1 0 8 0 sessionpl 112 32 0 22 1 0 1 1 0 8 0 pgrppl 48 95 0 85 1 0 1 1 0 8 0 ucredpl 96 4998 0 4989 1 0 1 1 0 8 0 zombiepl 144 3411 0 3411 3 2 1 1 0 8 1 processpl 896 3443 0 3411 4 0 4 4 0 8 0 procpl 632 10186 0 10143 5 0 5 5 0 8 1 srpgc 64 26 0 26 12 11 1 1 0 8 1 sosppl 128 29 0 29 9 8 1 1 0 8 1 sockpl 384 4059 0 4036 17 14 3 5 0 8 0 mcl64k 65536 516 0 0 65 5 60 65 0 8 1 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 19 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 124 0 0 15 0 15 15 0 8 0 mtagpl 80 26 0 0 1 0 1 1 0 8 0 mbufpl 256 666 0 0 37 0 37 37 0 8 0 bufpl 256 12581 0 5533 441 0 441 441 0 8 0 anonpl 16 322035 0 307411 125 59 66 74 0 124 5 amapchunkpl 152 20352 0 20241 28 22 6 10 0 158 0 amappl16 192 14970 0 14153 91 49 42 54 0 8 0 amappl15 184 1612 0 1612 4 4 0 1 0 8 0 amappl14 176 292 0 290 2 1 1 1 0 8 0 amappl13 168 237 0 236 2 1 1 1 0 8 0 amappl12 160 730 0 728 2 1 1 1 0 8 0 amappl11 152 791 0 775 1 0 1 1 0 8 0 amappl10 144 25 0 20 1 0 1 1 0 8 0 amappl9 136 1109 0 1102 1 0 1 1 0 8 0 amappl8 128 655 0 625 3 1 2 2 0 8 0 amappl7 120 100 0 90 1 0 1 1 0 8 0 amappl6 112 778 0 764 1 0 1 1 0 8 0 amappl5 104 969 0 955 1 0 1 1 0 8 0 amappl4 96 3713 0 3682 1 0 1 1 0 8 0 amappl3 88 436 0 430 1 0 1 1 0 8 0 amappl2 80 26695 0 26625 4 2 2 3 0 8 0 amappl1 72 83459 0 83026 25 15 10 20 0 8 0 amappl 80 10629 0 10592 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 3432 0 3411 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3432 0 3411 1 0 1 1 0 8 0 vmmpekpl 168 27605 0 27572 2 0 2 2 0 8 0 vmmpepl 168 424220 0 422330 222 121 101 117 0 357 7 vmsppl 368 3425 0 3411 2 0 2 2 0 8 0 pdppl 4096 6871 0 6834 7 1 6 6 0 8 0 pvpl 32 901870 0 884118 294 123 171 180 0 265 25 pmappl 232 3431 0 3417 5 4 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 696 0 12 20 0 20 20 0 8 0