panic: malloc: allocation too large, type = 2, size = 18446744073709550976 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 449661 98225 0 0 0 1 syz-executor.0 *261462 98225 0 0 0x4000000 0K 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b5f640) at vm_get_info+0x9d VOP_IOCTL(fffffd806e208d00,c0185603,ffff800020b5f640,c6,fffffd807f7c6960,ffff800020aceef0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8079b4dd10,c0185603,ffff800020b5f640,ffff800020aceef0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020aceef0,ffff800020b5f758,ffff800020b5f7a0) at sys_ioctl+0x5b9 syscall(ffff800020b5f820) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b5f820) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,c191c6fb010) at Xsyscall+0x128 end of kernel end trace frame: 0xc1c178950a0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic malloc: allocation too large, type = 2, size = 18446744073709550976 ddb{0}> 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b5f640) at vm_get_info+0x9d VOP_IOCTL(fffffd806e208d00,c0185603,ffff800020b5f640,c6,fffffd807f7c6960,ffff800020aceef0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8079b4dd10,c0185603,ffff800020b5f640,ffff800020aceef0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020aceef0,ffff800020b5f758,ffff800020b5f7a0) at sys_ioctl+0x5b9 syscall(ffff800020b5f820) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b5f820) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,c191c6fb010) at Xsyscall+0x128 end of kernel end trace frame: 0xc1c178950a0, count: -9 ddb{0}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x2397 __ALIGN_SIZE+0x1397 rbp 0xffff800020b5f280 rbx 0xffff800020b5f330 rdx 0x2398 __ALIGN_SIZE+0x1398 rcx 0xffff800023578000 rax 0xffff800023578000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0xd8b6afb869925a67 r12 0x3000000008 r13 0xffff800020b5f290 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b5f270 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=261462 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020acfb48,0xffffffff8262fc50 process=0xffff800020add180 user=0xffff800020b5a000, vmspace=0xfffffd807f00cb80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 98225 449661 44860 0 7 0 syz-executor.0 *98225 261462 44860 0 7 0x4000000 syz-executor.0 83812 93463 33477 0 3 0x3000 suspend syz-executor.1 83812 416027 33477 0 2 0x4081000 syz-executor.1 44860 108481 52910 0 3 0x82 nanosleep syz-executor.0 33477 485852 52910 0 3 0x82 nanosleep syz-executor.1 61678 518745 1 0 3 0x100083 ttyin getty 81557 71092 0 0 3 0x14200 bored sosplice 52910 502058 601 0 3 0x82 thrsleep syz-fuzzer 52910 375501 601 0 2 0x4000482 syz-fuzzer 52910 413283 601 0 3 0x4000082 thrsleep syz-fuzzer 52910 30935 601 0 2 0x4000482 syz-fuzzer 52910 414505 601 0 3 0x4000082 thrsleep syz-fuzzer 52910 435542 601 0 3 0x4000082 thrsleep syz-fuzzer 52910 320994 601 0 3 0x4000082 thrsleep syz-fuzzer 52910 261708 601 0 3 0x4000082 thrsleep syz-fuzzer 52910 43906 601 0 3 0x4000082 kqread syz-fuzzer 52910 191102 601 0 3 0x4000082 thrsleep syz-fuzzer 601 474810 29209 0 3 0x10008a pause ksh 29209 92905 16893 0 3 0x92 select sshd 16893 416058 1 0 3 0x80 select sshd 41165 185038 82601 74 3 0x100092 bpf pflogd 82601 392726 1 0 3 0x80 netio pflogd 65715 211278 14926 73 3 0x100090 kqread syslogd 14926 27032 1 0 3 0x100082 netio syslogd 53126 130090 1 77 3 0x100090 poll dhclient 2461 486354 1 0 3 0x80 poll dhclient 79802 432539 0 0 3 0x14200 pgzero zerothread 77252 423557 0 0 3 0x14200 aiodoned aiodoned 14001 226622 0 0 3 0x14200 syncer update 21415 201725 0 0 3 0x14200 cleaner cleaner 15388 237834 0 0 3 0x14200 reaper reaper 22600 116259 0 0 3 0x14200 pgdaemon pagedaemon 86544 438217 0 0 3 0x14200 bored crynlk 32904 418789 0 0 3 0x14200 bored crypto 46412 396406 0 0 3 0x40014200 acpi0 acpi0 72059 349610 0 0 3 0x40014200 idle1 43509 452536 0 0 3 0x14200 bored softnet 73292 128979 0 0 3 0x14200 bored systqmp 47714 294245 0 0 3 0x14200 bored systq 11882 324262 0 0 3 0x40014200 bored softclock 71640 166800 0 0 3 0x40014200 idle0 7032 51738 0 0 3 0x14200 bored smr 1 474327 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 98225 (syz-executor.0) thread 0xffff800020aceef0 (261462) 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 83812 (syz-executor.1) thread 0xffff800020acea00 (416027) exclusive rrwlock inode r = 0 (0xfffffd806e393c48) #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9588 6581K 7612K 78643K 16294 0 0 pcb 13 8K 8K 78643K 301 0 0 rtable 117 12K 13K 78643K 992 0 0 ifaddr 79 17K 18K 78643K 317 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1581 0 0 iov 1 12K 24K 78643K 306 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 4305 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 33 0 0 VM map 2 1K 1K 78643K 6 0 0 sem 12 0K 1K 78643K 2169 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2722 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 62 63K 95K 78643K 1057 0 0 subproc 32 2K 2K 78643K 221 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 1 0K 0K 78643K 182 0 0 in_multi 33 2K 2K 78643K 205 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 493 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 122 22K 31K 78643K 9996 0 0 UVM aobj 100 5K 5K 78643K 110 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 322 0 0 NDP 18 0K 0K 78643K 99 0 0 temp 214 3556K 4196K 78643K 46868 0 0 kqueue 0 0K 0K 78643K 11 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 28 0 22 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 132 0 130 1 0 1 1 0 8 0 rtentry 112 158 0 114 2 0 2 2 0 8 0 unpcb 120 887 0 875 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 4728 0 4728 1 1 0 1 0 8 0 tcpcb 544 500 0 493 1 0 1 1 0 8 0 inpcb 280 2687 0 2677 5 4 1 2 0 8 0 nd6 48 26 0 22 1 0 1 1 0 8 0 pkpcb 40 15 0 15 7 7 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 39 0 39 9 8 1 1 0 8 1 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 76 0 53 1 0 1 1 0 8 0 pfstkey 112 76 0 53 1 0 1 1 0 8 0 pfstate 328 76 0 53 3 0 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 702 0 486 17 3 14 14 0 8 0 art_table 32 703 0 486 2 0 2 2 0 8 0 art_node 16 154 0 114 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 3 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2167 0 2157 1 0 1 1 0 8 0 shmpl 112 108 0 10 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6139 0 4738 46 0 46 46 0 8 0 ffsino 272 6139 0 4738 94 0 94 94 0 8 0 nchpl 144 10410 0 8800 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 31598 0 31598 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 4 0 4 2 2 0 1 0 8 0 scsiplug 64 5 0 5 2 2 0 1 0 8 0 scxspl 192 29290 0 29290 21 18 3 7 0 8 3 plimitpl 152 212 0 204 1 0 1 1 0 8 0 sigapl 432 2892 0 2876 3 1 2 3 0 8 0 futexpl 56 66313 0 66313 1 0 1 1 0 8 1 knotepl 112 598 0 579 2 1 1 2 0 8 0 kqueuepl 104 455 0 453 1 0 1 1 0 8 0 pipepl 112 9920 0 9893 8 5 3 3 0 8 2 fdescpl 488 2893 0 2876 3 0 3 3 0 8 0 filepl 152 25922 0 25808 17 10 7 8 0 8 2 lockfpl 104 624 0 620 1 0 1 1 0 8 0 lockfspl 48 218 0 215 1 0 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 48 0 37 1 0 1 1 0 8 0 ucredpl 96 2511 0 2502 1 0 1 1 0 8 0 zombiepl 144 2878 0 2877 3 2 1 1 0 8 0 processpl 896 2910 0 2877 4 0 4 4 0 8 0 procpl 632 8703 0 8659 5 0 5 5 0 8 0 srpgc 64 22 0 22 8 7 1 1 0 8 1 sosppl 128 22 0 22 5 5 0 1 0 8 0 sockpl 384 3747 0 3723 9 5 4 4 0 8 1 mcl64k 65536 516 0 0 65 0 65 65 0 8 1 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 24 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 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 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 135 0 0 15 0 15 15 0 8 0 mtagpl 80 17 0 0 1 0 1 1 0 8 0 mbufpl 256 698 0 0 37 0 37 37 0 8 0 bufpl 256 12070 0 5022 441 0 441 441 0 8 0 anonpl 16 271891 0 258200 112 37 75 75 0 124 15 amapchunkpl 152 17536 0 17389 13 6 7 11 0 158 0 amappl16 192 13316 0 12522 92 45 47 51 0 8 6 amappl15 184 8 0 8 1 1 0 1 0 8 0 amappl14 176 962 0 961 2 1 1 1 0 8 0 amappl13 168 202 0 202 1 1 0 1 0 8 0 amappl12 160 273 0 271 3 2 1 1 0 8 0 amappl11 152 536 0 519 1 0 1 1 0 8 0 amappl10 144 307 0 301 1 0 1 1 0 8 0 amappl9 136 1247 0 1241 1 0 1 1 0 8 0 amappl8 128 805 0 778 2 0 2 2 0 8 0 amappl7 120 375 0 366 1 0 1 1 0 8 0 amappl6 112 515 0 499 1 0 1 1 0 8 0 amappl5 104 498 0 482 1 0 1 1 0 8 0 amappl4 96 3108 0 3075 1 0 1 1 0 8 0 amappl3 88 1108 0 1100 1 0 1 1 0 8 0 amappl2 80 21546 0 21468 4 2 2 3 0 8 0 amappl1 72 73982 0 73526 26 16 10 20 0 8 0 amappl 80 9132 0 9082 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 109 0 10 2 0 2 2 0 8 0 uaddrrnd 24 2897 0 2876 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2897 0 2876 1 0 1 1 0 8 0 vmmpekpl 168 43604 0 43570 2 0 2 2 0 8 0 vmmpepl 168 359650 0 357600 228 116 112 133 0 357 22 vmsppl 368 2892 0 2876 2 0 2 2 0 8 0 pdppl 4096 5801 0 5760 7 1 6 6 0 8 0 pvpl 32 770828 0 753333 266 85 181 181 0 265 37 pmappl 232 2896 0 2880 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 698 0 9 20 0 20 20 0 8 0