login: panic: malloc: allocation too large, type = 2, size = 18446744073709550976 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 456531 77679 0 0 0 0 syz-executor.1 * 3046 77679 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800021d41980) at vm_get_info+0x9d VOP_IOCTL(fffffd806e160c30,c0185603,ffff800021d41980,81,fffffd807f7c68a0,ffff800020ab1160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8066bfc020,c0185603,ffff800021d41980,ffff800020ab1160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab1160,ffff800021d41a98,ffff800021d41ae0) at sys_ioctl+0x5b9 syscall(ffff800021d41b60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021d41b60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,aa2af4fe0e0) at Xsyscall+0x128 end of kernel end trace frame: 0xaa4e635fc40, 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 = 18446744073709550976 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(fffffffffffffd80,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800021d41980) at vm_get_info+0x9d VOP_IOCTL(fffffd806e160c30,c0185603,ffff800021d41980,81,fffffd807f7c68a0,ffff800020ab1160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8066bfc020,c0185603,ffff800021d41980,ffff800020ab1160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab1160,ffff800021d41a98,ffff800021d41ae0) at sys_ioctl+0x5b9 syscall(ffff800021d41b60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021d41b60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,aa2af4fe0e0) at Xsyscall+0x128 end of kernel end trace frame: 0xaa4e635fc40, count: -9 ddb{1}> show registers rdi 0xffffffff81bdfd17 db_enter+0x17 rsi 0x240f __ALIGN_SIZE+0x140f rbp 0xffff800021d415c0 rbx 0xffff800021d41670 rdx 0x2410 __ALIGN_SIZE+0x1410 rcx 0xffff800021b3c000 rax 0xffff800021b3c000 r8 0xffffffff816bf1ff kprintf+0x16f r9 0x1 r10 0x25 r11 0x4139aec0f05bb291 r12 0x3000000008 r13 0xffff800021d415d0 r14 0x100 r15 0x1 rip 0xffffffff81bdfd18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021d415b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=3046 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b40,0xffffffff8265d288 process=0xffff800020adca80 user=0xffff800021d3c000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77679 456531 34879 0 7 0 syz-executor.1 77679 203320 34879 0 3 0x4000080 fsleep syz-executor.1 *77679 3046 34879 0 7 0x4000000 syz-executor.1 34879 51165 15446 0 3 0x82 nanosleep syz-executor.1 89233 252741 15446 0 3 0x2 biowait syz-executor.0 66033 24690 1 0 3 0x100083 ttyin getty 27904 151695 0 0 3 0x14200 bored sosplice 15446 184476 44243 0 3 0x82 thrsleep syz-fuzzer 15446 10188 44243 0 3 0x4000082 nanosleep syz-fuzzer 15446 486829 44243 0 3 0x4000082 thrsleep syz-fuzzer 15446 382324 44243 0 3 0x4000082 thrsleep syz-fuzzer 15446 68971 44243 0 3 0x4000082 thrsleep syz-fuzzer 15446 136990 44243 0 3 0x4000082 thrsleep syz-fuzzer 15446 514793 44243 0 3 0x4000082 thrsleep syz-fuzzer 15446 326015 44243 0 3 0x4000082 thrsleep syz-fuzzer 15446 474224 44243 0 3 0x4000082 nanosleep syz-fuzzer 15446 295739 44243 0 3 0x4000082 kqread syz-fuzzer 44243 332450 31985 0 3 0x10008a pause ksh 31985 124797 21834 0 3 0x92 select sshd 21834 150878 1 0 3 0x80 select sshd 49794 418635 12610 74 3 0x100092 bpf pflogd 12610 231822 1 0 3 0x80 netio pflogd 14383 40561 88043 73 3 0x100090 kqread syslogd 88043 71933 1 0 3 0x100082 netio syslogd 85286 376719 1 77 3 0x100090 poll dhclient 75671 419487 1 0 3 0x80 poll dhclient 64589 83464 0 0 3 0x14200 pgzero zerothread 15886 315943 0 0 3 0x14200 aiodoned aiodoned 97187 121489 0 0 3 0x14200 syncer update 25236 448356 0 0 3 0x14200 cleaner cleaner 95266 220814 0 0 3 0x14200 reaper reaper 630 274973 0 0 3 0x14200 pgdaemon pagedaemon 89505 385507 0 0 3 0x14200 bored crynlk 59427 431345 0 0 3 0x14200 bored crypto 28254 360559 0 0 3 0x40014200 acpi0 acpi0 58277 418742 0 0 3 0x40014200 idle1 28970 387769 0 0 3 0x14200 bored softnet 93146 518867 0 0 3 0x14200 bored systqmp 67507 119801 0 0 3 0x14200 bored systq 94926 379673 0 0 3 0x40014200 bored softclock 25603 406844 0 0 3 0x40014200 idle0 77624 271521 0 0 3 0x14200 bored smr 1 143526 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 77679 (syz-executor.1) thread 0xffff800020ab1160 (3046) 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 (0xffffffff82662188) #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 89233 (syz-executor.0) thread 0xffff800020ab09f8 (252741) exclusive rrwlock inode r = 0 (0xfffffd806e262808) #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 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:567 #11 namei+0x62c sys/kern/vfs_lookup.c:248 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806fa9c5f0) #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #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 9579 7471K 7601K 78643K 15434 0 0 pcb 13 8K 8K 78643K 239 0 0 rtable 103 4K 4K 78643K 865 0 0 ifaddr 69 16K 17K 78643K 275 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1555 0 0 iov 0 0K 16K 78643K 189 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 77K 78643K 3075 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 6 0 0 sem 12 0K 0K 78643K 317 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2028 0 0 sigio 0 0K 0K 78643K 39 0 0 proc 61 63K 95K 78643K 954 0 0 subproc 32 2K 2K 78643K 191 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 204 0 0 in_multi 29 1K 2K 78643K 209 0 0 ether_multi 1 0K 0K 78643K 23 0 0 mrt 1 0K 0K 78643K 12 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 485 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 100 21K 30K 78643K 7983 0 0 UVM aobj 59 3K 3K 78643K 87 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 227 0 0 NDP 15 0K 0K 78643K 82 0 0 temp 193 3556K 4196K 78643K 72125 0 0 kqueue 0 0K 0K 78643K 7 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 24 0 18 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 153 0 151 1 0 1 1 0 8 0 rtentry 112 125 0 85 2 0 2 2 0 8 0 unpcb 120 1445 0 1433 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 4848 0 4848 1 1 0 1 0 8 0 tcpcb 544 478 0 474 1 0 1 1 0 8 0 inpcb 280 1181 0 1174 3 2 1 2 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 18 0 15 1 0 1 1 0 8 0 pkpcb 40 17 0 17 6 6 0 1 0 8 0 ppxss 1128 34 0 34 6 5 1 1 0 8 1 pffrag 232 8 0 8 4 3 1 1 0 482 1 pffrnode 88 8 0 8 4 3 1 1 0 8 1 pffrent 40 17 0 17 4 3 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 70 0 37 1 0 1 1 0 8 0 pfstkey 112 70 0 37 1 0 1 1 0 8 0 pfstate 328 70 0 37 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 561 0 360 20 6 14 15 0 8 0 art_table 32 562 0 360 2 0 2 2 0 8 0 art_node 16 124 0 87 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 11 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 311 0 301 1 0 1 1 0 8 0 shmpl 112 85 0 28 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4401 0 3002 46 0 46 46 0 8 0 ffsino 272 4401 0 3002 95 1 94 95 0 8 0 nchpl 144 7673 0 6067 61 0 61 61 0 8 0 uvmvnodes 72 5795 0 0 106 0 106 106 0 8 0 vnodes 208 5795 0 0 305 0 305 305 0 8 0 namei 1024 24913 0 24913 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 4 0 4 1 1 0 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 22416 0 22415 22 21 1 7 0 8 0 plimitpl 152 182 0 174 1 0 1 1 0 8 0 sigapl 432 2202 0 2187 3 1 2 3 0 8 0 futexpl 56 40147 0 40146 1 0 1 1 0 8 0 knotepl 112 579 0 560 4 3 1 3 0 8 0 kqueuepl 104 384 0 382 1 0 1 1 0 8 0 pipepl 112 4432 0 4409 7 5 2 2 0 8 1 fdescpl 488 2203 0 2187 3 0 3 3 0 8 0 filepl 152 18430 0 18322 12 7 5 6 0 8 0 lockfpl 104 1745 0 1744 1 0 1 1 0 8 0 lockfspl 48 731 0 730 1 0 1 1 0 8 0 sessionpl 112 28 0 17 1 0 1 1 0 8 0 pgrppl 48 40 0 29 1 0 1 1 0 8 0 ucredpl 96 2497 0 2488 1 0 1 1 0 8 0 zombiepl 144 2187 0 2187 3 2 1 1 0 8 1 processpl 896 2219 0 2187 4 0 4 4 0 8 0 procpl 632 6797 0 6754 6 1 5 5 0 8 1 srpgc 64 20 0 20 6 6 0 1 0 8 0 sosppl 128 21 0 21 5 4 1 1 0 8 1 sockpl 384 2823 0 2802 8 4 4 4 0 8 0 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 19 0 0 3 1 2 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 144 0 0 17 0 17 17 0 8 0 mtagpl 80 16 0 0 1 0 1 1 0 8 0 mbufpl 256 606 0 0 29 0 29 29 0 8 0 bufpl 256 10787 0 3739 441 0 441 441 0 8 0 anonpl 16 226342 0 212534 130 57 73 74 0 124 13 amapchunkpl 152 14127 0 14018 14 8 6 10 0 158 0 amappl16 192 10653 0 9868 101 52 49 52 0 8 8 amappl15 184 489 0 485 2 1 1 1 0 8 0 amappl14 176 82 0 80 2 1 1 1 0 8 0 amappl13 168 17 0 16 3 2 1 1 0 8 0 amappl12 160 319 0 316 1 0 1 1 0 8 0 amappl11 152 654 0 639 1 0 1 1 0 8 0 amappl10 144 295 0 291 1 0 1 1 0 8 0 amappl9 136 1030 0 1023 1 0 1 1 0 8 0 amappl8 128 563 0 536 1 0 1 1 0 8 0 amappl7 120 374 0 366 1 0 1 1 0 8 0 amappl6 112 651 0 637 1 0 1 1 0 8 0 amappl5 104 511 0 496 1 0 1 1 0 8 0 amappl4 96 2361 0 2327 2 1 1 2 0 8 0 amappl3 88 341 0 335 1 0 1 1 0 8 0 amappl2 80 16751 0 16677 3 1 2 3 0 8 0 amappl1 72 58725 0 58283 26 16 10 20 0 8 0 amappl 80 7186 0 7148 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 86 0 28 1 0 1 1 0 8 0 uaddrrnd 24 2207 0 2187 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2207 0 2187 1 0 1 1 0 8 0 vmmpekpl 168 27724 0 27689 2 0 2 2 0 8 0 vmmpepl 168 279279 0 277349 212 99 113 118 0 357 19 vmsppl 368 2202 0 2187 2 0 2 2 0 8 0 pdppl 4096 4421 0 4382 7 1 6 6 0 8 0 pvpl 32 634926 0 617922 278 103 175 178 0 265 34 pmappl 232 2206 0 2191 5 4 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 634 0 14 18 0 18 18 0 8 0