>>>>panic: malloc: allocation too large, type = 2, size = 18446744073709551456 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 390936 49296 0 0 0 0 syz-executor.1 *199027 49296 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(ffffffffffffff60,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80002196cf60) at vm_get_info+0x9d VOP_IOCTL(fffffd806e122a90,c0185603,ffff80002196cf60,1,fffffd807f7c6900,ffff800020acf168) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8064ed8270,c0185603,ffff80002196cf60,ffff800020acf168) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acf168,ffff80002196d078,ffff80002196d0c0) at sys_ioctl+0x5b9 syscall(ffff80002196d140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002196d140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,2f42fa3c0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x2f6ec2e6a30, 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 = 18446744073709551456 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(ffffffffffffff60,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80002196cf60) at vm_get_info+0x9d VOP_IOCTL(fffffd806e122a90,c0185603,ffff80002196cf60,1,fffffd807f7c6900,ffff800020acf168) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8064ed8270,c0185603,ffff80002196cf60,ffff800020acf168) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acf168,ffff80002196d078,ffff80002196d0c0) at sys_ioctl+0x5b9 syscall(ffff80002196d140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002196d140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,2f42fa3c0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x2f6ec2e6a30, count: -9 ddb{1}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x2487 __ALIGN_SIZE+0x1487 rbp 0xffff80002196cba0 rbx 0xffff80002196cc50 rdx 0x2488 __ALIGN_SIZE+0x1488 rcx 0xffff800021986000 rax 0xffff800021986000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x9cd90d2e284d8daa r12 0x3000000008 r13 0xffff80002196cbb0 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002196cb90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=199027 stat=onproc flags process=0 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020acec78,0xffffffff8262fc50 process=0xffff800020adc700 user=0xffff800021968000, vmspace=0xfffffd807f00c000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49296 390936 57526 0 7 0 syz-executor.1 49296 356125 57526 0 3 0x4000080 fsleep syz-executor.1 *49296 199027 57526 0 7 0x4000000 syz-executor.1 57526 481445 67347 0 3 0x82 nanosleep syz-executor.1 8627 522492 47973 0 3 0x80 nanosleep syz-executor.0 8627 432683 47973 0 3 0x4000080 ttyin syz-executor.0 8627 212451 47973 0 3 0x4000080 fsleep syz-executor.0 8627 81847 47973 0 3 0x4000080 ttyin syz-executor.0 8627 283716 47973 0 3 0x4000080 fsleep syz-executor.0 47973 455485 67347 0 3 0x82 nanosleep syz-executor.0 29566 412564 1 0 3 0x100083 ttyin getty 9561 324900 0 0 3 0x14200 bored sosplice 20378 233352 0 0 3 0x14200 acct acct 67347 529 67374 0 3 0x82 thrsleep syz-fuzzer 67347 224326 67374 0 3 0x4000082 nanosleep syz-fuzzer 67347 198332 67374 0 3 0x4000082 thrsleep syz-fuzzer 67347 364253 67374 0 3 0x4000082 kqread syz-fuzzer 67347 362256 67374 0 3 0x4000082 thrsleep syz-fuzzer 67347 4596 67374 0 3 0x4000082 thrsleep syz-fuzzer 67347 470422 67374 0 3 0x4000082 thrsleep syz-fuzzer 67347 336387 67374 0 3 0x4000082 thrsleep syz-fuzzer 67347 17477 67374 0 3 0x4000082 thrsleep syz-fuzzer 67347 101434 67374 0 3 0x4000082 thrsleep syz-fuzzer 67374 138136 95865 0 3 0x10008a pause ksh 95865 366844 18543 0 3 0x92 select sshd 18543 401406 1 0 3 0x80 select sshd 19434 42028 34410 74 3 0x100092 bpf pflogd 34410 193233 1 0 3 0x80 netio pflogd 30579 58808 14398 73 3 0x100090 kqread syslogd 14398 360 1 0 3 0x100082 netio syslogd 62411 444008 1 77 3 0x100090 poll dhclient 62692 239044 1 0 3 0x80 poll dhclient 84580 408118 0 0 3 0x14200 pgzero zerothread 52515 471195 0 0 3 0x14200 aiodoned aiodoned 80981 244882 0 0 3 0x14200 syncer update 25497 198365 0 0 3 0x14200 cleaner cleaner 52286 134093 0 0 3 0x14200 reaper reaper 61669 37429 0 0 3 0x14200 pgdaemon pagedaemon 10157 357381 0 0 3 0x14200 bored crynlk 87587 509019 0 0 3 0x14200 bored crypto 48769 33105 0 0 3 0x40014200 acpi0 acpi0 14633 345335 0 0 3 0x40014200 idle1 35175 80788 0 0 3 0x14200 bored softnet 88855 493693 0 0 3 0x14200 bored systqmp 84661 389562 0 0 3 0x14200 bored systq 77954 363873 0 0 3 0x40014200 bored softclock 44580 70930 0 0 3 0x40014200 idle0 94407 209274 0 0 3 0x14200 bored smr 1 444354 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 49296 (syz-executor.1) thread 0xffff800020acf168 (199027) 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 9572 6512K 7669K 78643K 18552 0 0 pcb 13 8K 8K 78643K 370 0 0 rtable 116 12K 13K 78643K 1105 0 0 ifaddr 72 16K 17K 78643K 366 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1584 0 0 iov 0 0K 24K 78643K 312 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 5007 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 58 0 0 VM map 2 1K 1K 78643K 3 0 0 sem 12 0K 0K 78643K 340 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2679 0 0 sigio 0 0K 0K 78643K 30 0 0 proc 61 63K 95K 78643K 1052 0 0 subproc 32 2K 2K 78643K 204 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 227 0 0 in_multi 33 2K 2K 78643K 247 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 544 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 117 22K 31K 78643K 11186 0 0 UVM aobj 106 8K 8K 78643K 111 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 339 0 0 NDP 18 0K 0K 78643K 111 0 0 temp 200 3556K 4196K 78643K 16443 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 27 0 21 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 141 0 139 1 0 1 1 0 8 0 rtentry 112 159 0 115 2 0 2 2 0 8 0 unpcb 120 1216 0 1199 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 7114 0 7114 2 2 0 2 0 8 0 tcpcb 544 618 0 614 1 0 1 1 0 8 0 inpcb 280 2746 0 2739 17 16 1 3 0 8 0 rttmr 72 3 0 3 3 3 0 1 0 8 0 nd6 48 24 0 20 1 0 1 1 0 8 0 pkpcb 40 9 0 9 5 5 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 52 0 52 17 17 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 4 0 4 1 1 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 125 0 105 1 0 1 1 0 8 0 pfstkey 112 125 0 105 1 0 1 1 0 8 0 pfstate 328 125 0 105 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 679 0 461 17 3 14 15 0 8 0 art_table 32 680 0 461 2 0 2 2 0 8 0 art_node 16 148 0 108 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 10 1 0 1 1 0 8 0 semapl 112 338 0 328 1 0 1 1 0 8 0 shmpl 112 109 0 5 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6471 0 5075 46 0 46 46 0 8 0 ffsino 272 6471 0 5075 95 0 95 95 0 8 0 nchpl 144 10550 0 8946 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 40185 0 40185 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 1 0 1 1 1 0 1 0 8 0 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 28696 0 28696 25 24 1 7 0 8 1 plimitpl 152 235 0 227 1 0 1 1 0 8 0 sigapl 432 2852 0 2836 3 1 2 3 0 8 0 futexpl 56 51817 0 51814 1 0 1 1 0 8 0 knotepl 112 581 0 562 1 0 1 1 0 8 0 kqueuepl 104 579 0 577 1 0 1 1 0 8 0 pipepl 112 1526 0 1507 3 2 1 2 0 8 0 fdescpl 488 2853 0 2836 3 0 3 3 0 8 0 filepl 152 26936 0 26827 23 18 5 7 0 8 0 lockfpl 104 1725 0 1724 1 0 1 1 0 8 0 lockfspl 48 569 0 568 1 0 1 1 0 8 0 sessionpl 112 31 0 20 1 0 1 1 0 8 0 pgrppl 48 65 0 54 1 0 1 1 0 8 0 ucredpl 96 9382 0 9373 1 0 1 1 0 8 0 zombiepl 144 2836 0 2836 2 1 1 1 0 8 1 processpl 896 2870 0 2836 4 0 4 4 0 8 0 procpl 632 9924 0 9875 5 0 5 5 0 8 0 srpgc 64 20 0 20 9 8 1 1 0 8 1 sosppl 128 44 0 44 15 14 1 1 0 8 1 sockpl 384 4151 0 4125 15 11 4 6 0 8 0 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 227 0 0 27 2 25 27 0 8 0 mtagpl 80 30 0 0 1 0 1 1 0 8 0 mbufpl 256 553 0 0 29 0 29 29 0 8 0 bufpl 256 11876 0 4828 441 0 441 441 0 8 0 anonpl 16 279981 0 269009 162 102 60 75 0 124 0 amapchunkpl 152 19794 0 19655 22 15 7 11 0 158 0 amappl16 192 13456 0 12668 133 93 40 52 0 8 0 amappl15 184 1329 0 1329 2 2 0 1 0 8 0 amappl14 176 458 0 455 1 0 1 1 0 8 0 amappl13 168 18 0 17 3 2 1 1 0 8 0 amappl12 160 539 0 537 1 0 1 1 0 8 0 amappl11 152 89 0 74 1 0 1 1 0 8 0 amappl10 144 14 0 11 1 0 1 1 0 8 0 amappl9 136 1391 0 1385 1 0 1 1 0 8 0 amappl8 128 945 0 916 2 0 2 2 0 8 0 amappl7 120 92 0 83 1 0 1 1 0 8 0 amappl6 112 105 0 90 1 0 1 1 0 8 0 amappl5 104 752 0 737 1 0 1 1 0 8 0 amappl4 96 2495 0 2464 1 0 1 1 0 8 0 amappl3 88 1152 0 1142 1 0 1 1 0 8 0 amappl2 80 22097 0 22014 3 0 3 3 0 8 0 amappl1 72 75504 0 75032 27 16 11 20 0 8 0 amappl 80 10324 0 10276 2 0 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 110 0 5 2 0 2 2 0 8 0 uaddrrnd 24 2854 0 2836 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2854 0 2836 1 0 1 1 0 8 0 vmmpekpl 168 28080 0 28046 2 0 2 2 0 8 0 vmmpepl 168 361544 0 359485 357 238 119 119 0 357 27 vmsppl 368 2852 0 2836 2 0 2 2 0 8 0 pdppl 4096 5715 0 5674 7 1 6 6 0 8 0 pvpl 32 791739 0 777405 365 218 147 183 0 265 1 pmappl 232 2853 0 2837 7 5 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 639 0 11 18 0 18 18 0 8 0