panic: malloc: allocation too large, type = 2, size = 18446744073709550496 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 112444 88056 0 0 0 0 syz-executor.0 *281286 88056 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(fffffffffffffba0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800024dafd10) at vm_get_info+0x9d VOP_IOCTL(fffffd806e1e2c30,c0185603,ffff800024dafd10,3,fffffd807f7c6a20,ffff800020abf660) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8067502730,c0185603,ffff800024dafd10,ffff800020abf660) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020abf660,ffff800024dafe28,ffff800024dafe70) at sys_ioctl+0x5b9 syscall(ffff800024dafef0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dafef0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,b3dc166a1b0) at Xsyscall+0x128 end of kernel end trace frame: 0xb3fdee58260, 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 = 18446744073709550496 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(fffffffffffffba0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800024dafd10) at vm_get_info+0x9d VOP_IOCTL(fffffd806e1e2c30,c0185603,ffff800024dafd10,3,fffffd807f7c6a20,ffff800020abf660) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8067502730,c0185603,ffff800024dafd10,ffff800020abf660) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020abf660,ffff800024dafe28,ffff800024dafe70) at sys_ioctl+0x5b9 syscall(ffff800024dafef0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dafef0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,b3dc166a1b0) at Xsyscall+0x128 end of kernel end trace frame: 0xb3fdee58260, count: -9 ddb{1}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x2333 __ALIGN_SIZE+0x1333 rbp 0xffff800024daf950 rbx 0xffff800024dafa00 rdx 0x2334 __ALIGN_SIZE+0x1334 rcx 0xffff8000247aa000 rax 0xffff8000247aa000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x3975fdc02d2cbd0a r12 0x3000000008 r13 0xffff800024daf960 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024daf940 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=281286 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe2a0,0xffffffff8262fc50 process=0xffff800020adc700 user=0xffff800024daa000, vmspace=0xfffffd807f00c2e0 estcpu=31, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88056 112444 98943 0 7 0 syz-executor.0 88056 48380 98943 0 3 0x4000080 fsleep syz-executor.0 88056 403411 98943 0 3 0x4000080 fsleep syz-executor.0 *88056 281286 98943 0 7 0x4000000 syz-executor.0 98943 133371 39955 0 3 0x82 nanosleep syz-executor.0 3561 148519 1 0 3 0x100083 ttyin getty 25938 113259 39955 0 3 0x2 biowait syz-executor.1 13834 45611 0 0 3 0x14200 acct acct 61361 283120 0 0 3 0x14200 bored sosplice 39955 463083 47344 0 3 0x82 thrsleep syz-fuzzer 39955 247987 47344 0 3 0x4000082 nanosleep syz-fuzzer 39955 500150 47344 0 3 0x4000082 thrsleep syz-fuzzer 39955 306550 47344 0 3 0x4000082 nanosleep syz-fuzzer 39955 260813 47344 0 3 0x4000082 thrsleep syz-fuzzer 39955 35222 47344 0 3 0x4000082 kqread syz-fuzzer 39955 15653 47344 0 3 0x4000082 thrsleep syz-fuzzer 39955 335639 47344 0 3 0x4000082 thrsleep syz-fuzzer 39955 353252 47344 0 3 0x4000082 thrsleep syz-fuzzer 39955 363468 47344 0 3 0x4000082 thrsleep syz-fuzzer 47344 110232 89273 0 3 0x10008a pause ksh 89273 291164 40836 0 3 0x92 select sshd 40836 246545 1 0 3 0x80 select sshd 73130 42661 97062 74 3 0x100092 bpf pflogd 97062 347276 1 0 3 0x80 netio pflogd 67702 414263 64954 73 3 0x100090 kqread syslogd 64954 351300 1 0 3 0x100082 netio syslogd 28356 262312 1 77 3 0x100090 poll dhclient 84770 330791 1 0 3 0x80 poll dhclient 53332 350514 0 0 2 0x14200 zerothread 64361 238467 0 0 3 0x14200 aiodoned aiodoned 93849 457984 0 0 3 0x14200 syncer update 1042 7853 0 0 3 0x14200 cleaner cleaner 94311 450628 0 0 3 0x14200 reaper reaper 8235 54374 0 0 3 0x14200 pgdaemon pagedaemon 33493 217630 0 0 3 0x14200 bored crynlk 77766 513038 0 0 3 0x14200 bored crypto 2646 77705 0 0 3 0x40014200 acpi0 acpi0 79490 178678 0 0 3 0x40014200 idle1 86816 326892 0 0 3 0x14200 bored softnet 15006 166196 0 0 3 0x14200 bored systqmp 83232 207347 0 0 3 0x14200 bored systq 38527 515455 0 0 3 0x40014200 bored softclock 40218 127623 0 0 3 0x40014200 idle0 90407 322625 0 0 3 0x14200 bored smr 1 398712 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 88056 (syz-executor.0) thread 0xffff800020abf660 (281286) 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 25938 (syz-executor.1) thread 0xffff800020ab0508 (113259) exclusive rrwlock inode r = 0 (0xfffffd806e509810) #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 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #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 exclusive rrwlock inode r = 0 (0xfffffd806357ed60) #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 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9582 6517K 7792K 78643K 20887 0 0 pcb 13 8K 8K 78643K 566 0 0 rtable 111 4K 5K 78643K 1576 0 0 ifaddr 79 19K 21K 78643K 559 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1611 0 0 iov 0 0K 24K 78643K 431 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 5008 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 9 0 0 sem 12 1K 1K 78643K 74 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4185 0 0 sigio 0 0K 0K 78643K 31 0 0 proc 62 63K 95K 78643K 1473 0 0 subproc 32 2K 2K 78643K 272 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 384 0 0 in_multi 33 2K 2K 78643K 291 0 0 ether_multi 1 0K 0K 78643K 21 0 0 mrt 0 0K 0K 78643K 22 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 708 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 119 22K 31K 78643K 15300 0 0 UVM aobj 129 9K 9K 78643K 144 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 586 0 0 NDP 18 0K 0K 78643K 171 0 0 temp 214 3556K 4188K 78643K 56302 0 0 kqueue 0 0K 0K 78643K 24 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 30 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 221 0 219 1 0 1 1 0 8 0 rtentry 112 200 0 156 2 0 2 2 0 8 0 unpcb 120 1586 0 1569 2 1 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6696 0 6696 1 1 0 1 0 8 0 tcpcb 544 1027 0 1023 4 3 1 3 0 8 0 inpcb 280 2853 0 2846 18 17 1 3 0 8 0 rttmr 72 3 0 3 3 3 0 1 0 8 0 nd6 48 32 0 28 1 0 1 1 0 8 0 pkpcb 40 19 0 19 9 9 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 76 0 76 13 13 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 2 0 2 1 1 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 130 0 107 1 0 1 1 0 8 0 pfstkey 112 130 0 107 1 0 1 1 0 8 0 pfstate 328 130 0 107 4 1 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 853 0 639 15 1 14 15 0 8 0 art_table 32 854 0 639 2 0 2 2 0 8 0 art_node 16 189 0 149 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 41 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 71 0 61 1 0 1 1 0 8 0 shmpl 112 142 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9099 0 7695 46 0 46 46 0 8 0 ffsino 272 9099 0 7695 95 0 95 95 0 8 0 nchpl 144 16450 0 15976 61 39 22 61 0 8 0 uvmvnodes 72 6124 0 0 112 0 112 112 0 8 0 vnodes 208 6124 0 0 323 0 323 323 0 8 0 namei 1024 55408 0 55407 5 4 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 7 0 7 4 4 0 1 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 53662 0 53661 26 25 1 7 0 8 0 plimitpl 152 410 0 402 1 0 1 1 0 8 0 sigapl 432 4348 0 4333 3 1 2 3 0 8 0 futexpl 56 71522 0 71520 1 0 1 1 0 8 0 knotepl 112 799 0 780 1 0 1 1 0 8 0 kqueuepl 104 799 0 797 1 0 1 1 0 8 0 pipepl 112 2432 0 2413 7 6 1 2 0 8 0 fdescpl 488 4349 0 4333 3 0 3 3 0 8 0 filepl 152 34078 0 33976 13 8 5 6 0 8 1 lockfpl 104 8494 0 8493 1 0 1 1 0 8 0 lockfspl 48 2107 0 2106 1 0 1 1 0 8 0 sessionpl 112 37 0 26 1 0 1 1 0 8 0 pgrppl 48 74 0 63 1 0 1 1 0 8 0 ucredpl 96 4084 0 4074 1 0 1 1 0 8 0 zombiepl 144 4335 0 4335 3 2 1 1 0 8 1 processpl 896 4368 0 4335 4 0 4 4 0 8 0 procpl 632 13821 0 13776 6 1 5 5 0 8 0 srpgc 64 28 0 28 13 13 0 1 0 8 0 sosppl 128 53 0 53 11 11 0 1 0 8 0 sockpl 384 4744 0 4718 20 16 4 6 0 8 0 mcl64k 65536 480 0 0 55 23 32 33 0 8 1 mcl16k 16384 11 0 0 2 0 2 2 0 8 0 mcl12k 12288 37 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 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 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 168 0 0 18 6 12 18 0 8 0 mtagpl 80 44 0 0 1 0 1 1 0 8 0 mbufpl 256 641 0 0 23 0 23 23 0 8 0 bufpl 256 20047 0 12999 441 0 441 441 0 8 0 anonpl 16 442719 0 428826 152 81 71 75 0 124 9 amapchunkpl 152 28217 0 28104 33 27 6 10 0 158 0 amappl16 192 22089 0 21282 158 108 50 54 0 8 8 amappl15 184 262 0 262 3 3 0 1 0 8 0 amappl14 176 1347 0 1345 2 1 1 1 0 8 0 amappl13 168 575 0 574 1 0 1 1 0 8 0 amappl12 160 947 0 947 3 2 1 1 0 8 1 amappl11 152 912 0 893 1 0 1 1 0 8 0 amappl10 144 46 0 43 1 0 1 1 0 8 0 amappl9 136 940 0 933 1 0 1 1 0 8 0 amappl8 128 482 0 447 2 0 2 2 0 8 0 amappl7 120 152 0 141 1 0 1 1 0 8 0 amappl6 112 893 0 876 1 0 1 1 0 8 0 amappl5 104 1193 0 1179 1 0 1 1 0 8 0 amappl4 96 3726 0 3689 2 1 1 2 0 8 0 amappl3 88 2859 0 2852 1 0 1 1 0 8 0 amappl2 80 33257 0 33186 4 2 2 3 0 8 0 amappl1 72 105579 0 105130 25 15 10 20 0 8 0 amappl 80 14300 0 14260 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 143 0 15 3 0 3 3 0 8 0 uaddrrnd 24 4356 0 4333 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4356 0 4333 1 0 1 1 0 8 0 vmmpekpl 168 36537 0 36504 2 0 2 2 0 8 0 vmmpepl 168 542571 0 540605 306 190 116 116 0 357 24 vmsppl 368 4348 0 4333 2 0 2 2 0 8 0 pdppl 4096 8719 0 8680 7 1 6 6 0 8 0 pvpl 32 1187954 0 1170838 342 164 178 184 0 265 27 pmappl 232 4355 0 4340 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 681 0 41 19 0 19 19 0 8 0