panic: malloc: allocation too large, type = 2, size = 18446744073709549856 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 66643 21480 0 0 0x4000000 1K syz-executor.0 112142 95475 0 0 0 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(fffffffffffff920,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800024d89a10) at vm_get_info+0x9d VOP_IOCTL(fffffd807da2cb60,c0185603,ffff800024d89a10,1,fffffd807f7c67e0,ffff800020ab1400) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807dca8610,c0185603,ffff800024d89a10,ffff800020ab1400) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab1400,ffff800024d89b28,ffff800024d89b70) at sys_ioctl+0x5b9 syscall(ffff800024d89bf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d89bf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,7dfe7d84010) at Xsyscall+0x128 end of kernel end trace frame: 0x7e2846597b0, 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 = 18446744073709549856 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(fffffffffffff920,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800024d89a10) at vm_get_info+0x9d VOP_IOCTL(fffffd807da2cb60,c0185603,ffff800024d89a10,1,fffffd807f7c67e0,ffff800020ab1400) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807dca8610,c0185603,ffff800024d89a10,ffff800020ab1400) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab1400,ffff800024d89b28,ffff800024d89b70) at sys_ioctl+0x5b9 syscall(ffff800024d89bf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d89bf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,7dfe7d84010) at Xsyscall+0x128 end of kernel end trace frame: 0x7e2846597b0, count: -9 ddb{1}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x229d __ALIGN_SIZE+0x129d rbp 0xffff800024d89650 rbx 0xffff800024d89700 rdx 0x229e __ALIGN_SIZE+0x129e rcx 0xffff800021980000 rax 0xffff800021980000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x6e775bd2d452bb65 r12 0x3000000008 r13 0xffff800024d89660 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024d89640 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=66643 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b68,0xffff800020ab0a30 process=0xffff800020adc700 user=0xffff800024d84000, vmspace=0xfffffd807f00c5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21480 479665 31654 0 2 0 syz-executor.0 *21480 66643 31654 0 7 0x4000000 syz-executor.0 21480 363975 31654 0 3 0x4000080 fsleep syz-executor.0 95475 112142 47650 0 7 0 syz-executor.1 95475 373267 47650 0 3 0x4000080 piperd syz-executor.1 95475 55092 47650 0 3 0x4000000 biowait syz-executor.1 95475 42118 47650 0 3 0x4000000 inode syz-executor.1 88390 136310 1 0 3 0x100083 ttyin getty 47650 18079 59129 0 3 0x82 nanosleep syz-executor.1 31654 237363 59129 0 3 0x82 nanosleep syz-executor.0 47830 117283 0 0 3 0x14200 acct acct 86636 115179 0 0 3 0x14200 bored sosplice 59129 475481 33399 0 3 0x82 kqread syz-fuzzer 59129 421330 33399 0 3 0x4000082 nanosleep syz-fuzzer 59129 67159 33399 0 3 0x4000082 thrsleep syz-fuzzer 59129 105426 33399 0 3 0x4000082 thrsleep syz-fuzzer 59129 97381 33399 0 3 0x4000082 thrsleep syz-fuzzer 59129 206921 33399 0 3 0x4000082 thrsleep syz-fuzzer 59129 449379 33399 0 3 0x4000082 thrsleep syz-fuzzer 59129 485202 33399 0 3 0x4000082 thrsleep syz-fuzzer 59129 61889 33399 0 3 0x4000082 thrsleep syz-fuzzer 59129 361316 33399 0 3 0x4000082 thrsleep syz-fuzzer 33399 96856 2419 0 3 0x10008a pause ksh 2419 107487 15983 0 3 0x92 select sshd 15983 214596 1 0 3 0x80 select sshd 18676 343873 93761 74 3 0x100092 bpf pflogd 93761 247071 1 0 3 0x80 netio pflogd 31469 170364 50533 73 3 0x100090 kqread syslogd 50533 5630 1 0 3 0x100082 netio syslogd 62757 56271 1 77 3 0x100090 poll dhclient 92112 154486 1 0 3 0x80 poll dhclient 11415 497504 0 0 2 0x14200 zerothread 97995 63721 0 0 3 0x14200 aiodoned aiodoned 99835 431875 0 0 3 0x14200 syncer update 32323 436218 0 0 3 0x14200 cleaner cleaner 72789 512890 0 0 3 0x14200 reaper reaper 85067 208145 0 0 3 0x14200 pgdaemon pagedaemon 3685 197320 0 0 3 0x14200 bored crynlk 47585 37707 0 0 3 0x14200 bored crypto 18718 135210 0 0 3 0x40014200 acpi0 acpi0 21565 425070 0 0 3 0x40014200 idle1 43160 151783 0 0 3 0x14200 bored softnet 59850 9226 0 0 3 0x14200 bored systqmp 7221 187761 0 0 3 0x14200 bored systq 37265 199098 0 0 3 0x40014200 bored softclock 24183 199433 0 0 3 0x40014200 idle0 52956 207954 0 0 3 0x14200 bored smr 1 125684 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 21480 (syz-executor.0) thread 0xffff800020ab1400 (66643) 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 95475 (syz-executor.1) thread 0xffff800020ab1188 (55092) exclusive rrwlock inode r = 0 (0xfffffd806ac63b38) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vn_write+0x11b sys/kern/vfs_vnops.c:402 #6 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #7 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3269 #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 Process 95475 (syz-executor.1) thread 0xffff800020ab07a8 (42118) exclusive rrwlock inode r = 0 (0xfffffd806f7472b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:418 #6 namei+0x62c sys/kern/vfs_lookup.c:248 #7 vn_open+0x144 sys/kern/vfs_vnops.c:103 #8 doopenat+0x28e sys/kern/vfs_syscalls.c:1157 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9595 6458K 8396K 78643K 35568 0 0 pcb 13 8K 8K 78643K 542 0 0 rtable 113 4K 5K 78643K 1530 0 0 ifaddr 79 17K 18K 78643K 522 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1624 0 0 iov 1 12K 32K 78643K 1843 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 8425 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 74 0 0 VM map 2 1K 1K 78643K 13 0 0 sem 12 0K 0K 78643K 477 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4348 0 0 sigio 0 0K 0K 78643K 29 0 0 proc 62 63K 95K 78643K 1548 0 0 subproc 32 2K 2K 78643K 306 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 400 0 0 in_multi 33 2K 2K 78643K 339 0 0 ether_multi 1 0K 0K 78643K 24 0 0 mrt 0 0K 0K 78643K 21 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 180 795K 795K 78643K 180 0 0 exec 0 0K 1K 78643K 759 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 116 22K 32K 78643K 15643 0 0 UVM aobj 130 4K 4K 78643K 138 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 512 0 0 NDP 18 0K 0K 78643K 161 0 0 temp 214 3556K 3628K 78643K 81858 0 0 kqueue 0 0K 0K 78643K 19 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 39 0 33 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 201 0 199 1 0 1 1 0 8 0 rtentry 112 216 0 172 2 0 2 2 0 8 0 unpcb 120 1660 0 1643 4 3 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5269 0 5269 1 1 0 1 0 8 0 tcpcb 544 2467 0 2463 4 3 1 2 0 8 0 inpcb 280 4267 0 4260 20 19 1 2 0 8 0 rttmr 72 3 0 3 2 2 0 1 0 8 0 nd6 48 36 0 32 1 0 1 1 0 8 0 pkpcb 40 29 0 29 12 12 0 1 0 8 0 ppxss 1128 74 0 74 12 11 1 1 0 8 1 pffrag 232 3 0 3 3 3 0 1 0 482 0 pffrnode 88 3 0 3 3 3 0 1 0 8 0 pffrent 40 7 0 7 3 3 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 126 0 100 1 0 1 1 0 8 0 pfstkey 112 126 0 100 1 0 1 1 0 8 0 pfstate 328 126 0 100 5 2 3 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 957 0 739 16 2 14 15 0 8 0 art_table 32 958 0 739 2 0 2 2 0 8 0 art_node 16 208 0 168 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 4 1 0 1 1 0 8 0 semapl 112 470 0 460 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9118 0 7705 46 0 46 46 0 8 0 ffsino 272 9118 0 7705 95 0 95 95 0 8 0 nchpl 144 16060 0 14417 61 0 61 61 0 8 0 uvmvnodes 72 6186 0 0 113 0 113 113 0 8 0 vnodes 208 6186 0 0 326 0 326 326 0 8 0 namei 1024 57420 0 57419 5 4 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 11 0 11 6 6 0 1 0 8 0 scsiplug 64 11 0 11 8 8 0 1 0 8 0 scxspl 192 48209 0 48208 25 24 1 7 0 8 0 plimitpl 152 380 0 372 1 0 1 1 0 8 0 sigapl 432 4504 0 4488 3 1 2 3 0 8 0 futexpl 56 80539 0 80538 2 1 1 1 0 8 0 knotepl 112 1045 0 1026 2 1 1 2 0 8 0 kqueuepl 104 1079 0 1077 1 0 1 1 0 8 0 pipepl 112 2290 0 2269 9 8 1 2 0 8 0 fdescpl 488 4505 0 4488 3 0 3 3 0 8 0 filepl 152 36151 0 36043 29 24 5 9 0 8 0 lockfpl 104 1414 0 1412 1 0 1 1 0 8 0 lockfspl 48 478 0 476 1 0 1 1 0 8 0 sessionpl 112 38 0 27 1 0 1 1 0 8 0 pgrppl 48 84 0 73 1 0 1 1 0 8 0 ucredpl 96 5415 0 5404 1 0 1 1 0 8 0 zombiepl 144 4490 0 4490 7 6 1 1 0 8 1 processpl 896 4524 0 4490 4 0 4 4 0 8 0 procpl 632 14088 0 14040 9 4 5 5 0 8 0 srpgc 64 32 0 32 16 16 0 1 0 8 0 sosppl 128 53 0 53 13 13 0 1 0 8 0 sockpl 384 6202 0 6176 13 9 4 7 0 8 0 mcl64k 65536 265 0 0 34 30 4 34 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 20 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 209 0 0 23 4 19 23 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 507 0 0 24 0 24 24 0 8 0 bufpl 256 19474 0 12426 441 0 441 441 0 8 0 anonpl 16 457654 0 443355 169 96 73 75 0 124 8 amapchunkpl 152 28359 0 28228 35 28 7 13 0 158 0 amappl16 192 23603 0 22767 190 140 50 54 0 8 8 amappl15 184 355 0 354 1 0 1 1 0 8 0 amappl14 176 1115 0 1112 2 1 1 1 0 8 0 amappl13 168 428 0 428 4 4 0 1 0 8 0 amappl12 160 1105 0 1102 2 1 1 1 0 8 0 amappl11 152 885 0 870 1 0 1 1 0 8 0 amappl10 144 197 0 191 1 0 1 1 0 8 0 amappl9 136 1136 0 1130 1 0 1 1 0 8 0 amappl8 128 702 0 668 2 0 2 2 0 8 0 amappl7 120 276 0 266 1 0 1 1 0 8 0 amappl6 112 859 0 841 1 0 1 1 0 8 0 amappl5 104 1353 0 1338 1 0 1 1 0 8 0 amappl4 96 4997 0 4964 1 0 1 1 0 8 0 amappl3 88 544 0 538 1 0 1 1 0 8 0 amappl2 80 34681 0 34600 4 2 2 3 0 8 0 amappl1 72 108475 0 108013 26 16 10 20 0 8 0 amappl 80 14598 0 14555 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 4516 0 4488 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4516 0 4488 1 0 1 1 0 8 0 vmmpekpl 168 37832 0 37796 2 0 2 2 0 8 0 vmmpepl 168 560376 0 558273 314 203 111 117 0 357 19 vmsppl 368 4504 0 4488 2 0 2 2 0 8 0 pdppl 4096 9039 0 8998 7 1 6 6 0 8 0 pvpl 32 1198839 0 1181212 348 171 177 179 0 265 28 pmappl 232 4515 0 4499 4 3 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 667 0 47 19 0 19 19 0 8 0