login: panic: malloc: allocation too large, type = 2, size = 18446744073709550816 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 304767 51082 0 0 0 1 syz-executor.0 *224680 51082 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(fffffffffffffce0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b53c90) at vm_get_info+0x9d VOP_IOCTL(fffffd806e1eba90,c0185603,ffff800020b53c90,1,fffffd807f7c6a20,ffff800020ab18c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807dc8e448,c0185603,ffff800020b53c90,ffff800020ab18c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab18c8,ffff800020b53da8,ffff800020b53df0) at sys_ioctl+0x5b9 syscall(ffff800020b53e70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b53e70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,39297a14010) at Xsyscall+0x128 end of kernel end trace frame: 0x395613803f0, 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 = 18446744073709550816 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(fffffffffffffce0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b53c90) at vm_get_info+0x9d VOP_IOCTL(fffffd806e1eba90,c0185603,ffff800020b53c90,1,fffffd807f7c6a20,ffff800020ab18c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807dc8e448,c0185603,ffff800020b53c90,ffff800020ab18c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020ab18c8,ffff800020b53da8,ffff800020b53df0) at sys_ioctl+0x5b9 syscall(ffff800020b53e70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b53e70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,39297a14010) at Xsyscall+0x128 end of kernel end trace frame: 0x395613803f0, count: -9 ddb{0}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x233d __ALIGN_SIZE+0x133d rbp 0xffff800020b538d0 rbx 0xffff800020b53980 rdx 0x233e __ALIGN_SIZE+0x133e rcx 0xffff800020b56000 rax 0xffff800020b56000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0xf20e69573f9d0b7b r12 0x3000000008 r13 0xffff800020b538e0 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b538c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=224680 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab13d8,0xffffffff8262fc50 process=0xffff800020a8b190 user=0xffff800020b4e000, vmspace=0xfffffd807f00ccf0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51082 304767 12675 0 7 0 syz-executor.0 *51082 224680 12675 0 7 0x4000000 syz-executor.0 4523 41489 1 0 3 0x100083 ttyin getty 65733 238695 7143 0 2 0x2 syz-executor.1 12675 183385 7143 0 2 0x482 syz-executor.0 80656 199383 0 0 3 0x14200 acct acct 2369 469527 0 0 3 0x14200 bored sosplice 7143 201142 19495 0 3 0x82 thrsleep syz-fuzzer 7143 133739 19495 0 3 0x4000082 nanosleep syz-fuzzer 7143 293990 19495 0 3 0x4000082 thrsleep syz-fuzzer 7143 80782 19495 0 3 0x4000082 thrsleep syz-fuzzer 7143 425534 19495 0 3 0x4000082 kqread syz-fuzzer 7143 142764 19495 0 2 0x4000482 syz-fuzzer 7143 41660 19495 0 3 0x4000082 thrsleep syz-fuzzer 7143 467540 19495 0 3 0x4000082 thrsleep syz-fuzzer 7143 314120 19495 0 3 0x4000082 thrsleep syz-fuzzer 7143 278231 19495 0 3 0x4000082 thrsleep syz-fuzzer 19495 321691 55759 0 3 0x10008a pause ksh 55759 367093 3577 0 3 0x92 select sshd 3577 275098 1 0 3 0x80 select sshd 48318 219758 90598 74 3 0x100092 bpf pflogd 90598 381854 1 0 3 0x80 netio pflogd 43507 475215 66248 73 3 0x100090 kqread syslogd 66248 451057 1 0 3 0x100082 netio syslogd 2776 355106 0 0 3 0x14200 pgzero zerothread 69291 7571 0 0 3 0x14200 aiodoned aiodoned 52971 233323 0 0 3 0x14200 syncer update 90363 322729 0 0 3 0x14200 cleaner cleaner 54631 99255 0 0 3 0x14200 reaper reaper 41599 402823 0 0 3 0x14200 pgdaemon pagedaemon 64684 400520 0 0 3 0x14200 bored crynlk 62934 518355 0 0 3 0x14200 bored crypto 4563 401416 0 0 3 0x40014200 acpi0 acpi0 5458 132004 0 0 3 0x40014200 idle1 20348 217851 0 0 3 0x14200 bored softnet 79498 350804 0 0 3 0x14200 bored systqmp 3948 378864 0 0 3 0x14200 bored systq 51668 19800 0 0 3 0x40014200 bored softclock 7298 194264 0 0 3 0x40014200 idle0 54475 430537 0 0 3 0x14200 bored smr 1 111412 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 51082 (syz-executor.0) thread 0xffff800020ab18c8 (224680) 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 65733 (syz-executor.1) thread 0xffff800020ab09f8 (238695) exclusive rrwlock inode r = 0 (0xfffffd806e3173c8) #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 (0xfffffd807e1010a0) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9576 6385K 7545K 78643K 21513 0 0 pcb 13 8K 8K 78643K 1413 0 0 rtable 111 4K 4K 78643K 1248 0 0 ifaddr 82 17K 18K 78643K 447 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2822 0 0 iov 0 0K 24K 78643K 716 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 4833 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 44 0 0 VM map 2 1K 1K 78643K 7 0 0 sem 12 0K 0K 78643K 431 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 3858 0 0 sigio 0 0K 0K 78643K 26 0 0 proc 56 51K 83K 78643K 1141 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 0 0K 0K 78643K 281 0 0 in_multi 34 2K 2K 78643K 259 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 471 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 560 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 97 21K 31K 78643K 13554 0 0 UVM aobj 130 9K 9K 78643K 134 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 396 0 0 NDP 19 0K 0K 78643K 135 0 0 temp 221 3556K 3626K 78643K 69561 0 0 kqueue 0 0K 0K 78643K 19 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 26 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 146 0 146 9 9 0 1 0 8 0 rtentry 112 239 0 195 2 0 2 2 0 8 0 unpcb 120 1166 0 1153 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5307 0 5307 1 1 0 1 0 8 0 tcpcb 544 649 0 645 1 0 1 1 0 8 0 inpcb 280 8213 0 8207 11 9 2 4 0 8 1 rttmr 72 82 0 82 3 3 0 1 0 8 0 nd6 48 26 0 22 1 0 1 1 0 8 0 pkpcb 40 9 0 9 6 6 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 59 0 59 14 13 1 1 0 8 1 pffrag 232 3 0 3 2 2 0 1 0 482 0 pffrnode 88 3 0 3 2 2 0 1 0 8 0 pffrent 40 6 0 6 2 2 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 218 0 88 1 0 1 1 0 8 0 pfstkey 112 218 0 88 4 0 4 4 0 8 0 pfstate 328 218 0 88 12 0 12 12 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 737 0 522 21 7 14 15 0 8 0 art_table 32 738 0 522 2 0 2 2 0 8 0 art_node 16 234 0 194 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semapl 112 429 0 419 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6708 0 5309 46 0 46 46 0 8 0 ffsino 272 6708 0 5309 94 0 94 94 0 8 0 nchpl 144 11918 0 10308 61 0 61 61 0 8 0 uvmvnodes 72 6077 0 0 111 0 111 111 0 8 0 vnodes 208 6077 0 0 320 0 320 320 0 8 0 namei 1024 37454 0 37454 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 5 0 5 3 2 1 1 0 8 1 scsiplug 64 7 0 7 4 4 0 1 0 8 0 scxspl 192 35887 0 35887 18 16 2 7 0 8 2 plimitpl 152 258 0 251 1 0 1 1 0 8 0 sigapl 432 4028 0 4015 3 1 2 3 0 8 0 futexpl 56 60191 0 60191 1 0 1 1 0 8 1 knotepl 112 716 0 697 2 1 1 2 0 8 0 kqueuepl 104 677 0 675 1 0 1 1 0 8 0 pipepl 112 1702 0 1683 6 4 2 2 0 8 1 fdescpl 488 4029 0 4015 3 0 3 3 0 8 0 filepl 152 27836 0 27743 15 10 5 7 0 8 1 lockfpl 104 1032 0 1032 2 1 1 1 0 8 1 lockfspl 48 329 0 329 2 1 1 1 0 8 1 sessionpl 112 32 0 23 1 0 1 1 0 8 0 pgrppl 48 60 0 51 1 0 1 1 0 8 0 ucredpl 96 3387 0 3378 1 0 1 1 0 8 0 zombiepl 144 4017 0 4017 2 1 1 1 0 8 1 processpl 896 4048 0 4017 4 0 4 4 0 8 0 procpl 632 12218 0 12177 16 12 4 5 0 8 0 srpgc 64 22 0 22 9 9 0 1 0 8 0 sosppl 128 32 0 32 10 10 0 1 0 8 0 sockpl 384 9587 0 9568 22 18 4 7 0 8 1 mcl64k 65536 12 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 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 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 147 0 0 17 2 15 17 0 8 0 mtagpl 80 142 0 0 3 0 3 3 0 8 0 mbufpl 256 407 0 0 22 0 22 22 0 8 0 bufpl 256 17330 0 10282 441 0 441 441 0 8 0 anonpl 16 392082 0 377825 153 90 63 74 0 124 1 amapchunkpl 152 25138 0 25036 43 35 8 12 0 158 1 amappl16 192 19946 0 19135 133 92 41 53 0 8 0 amappl15 184 544 0 544 3 3 0 1 0 8 0 amappl14 176 1590 0 1589 1 0 1 1 0 8 0 amappl13 168 450 0 449 3 2 1 1 0 8 0 amappl12 160 526 0 524 3 2 1 1 0 8 0 amappl11 152 87 0 78 1 0 1 1 0 8 0 amappl10 144 572 0 567 1 0 1 1 0 8 0 amappl9 136 1154 0 1148 1 0 1 1 0 8 0 amappl8 128 707 0 681 1 0 1 1 0 8 0 amappl7 120 627 0 619 1 0 1 1 0 8 0 amappl6 112 102 0 92 1 0 1 1 0 8 0 amappl5 104 735 0 723 1 0 1 1 0 8 0 amappl4 96 3975 0 3945 1 0 1 1 0 8 0 amappl3 88 1322 0 1316 1 0 1 1 0 8 0 amappl2 80 31282 0 31216 3 1 2 3 0 8 0 amappl1 72 97366 0 96961 26 16 10 20 0 8 0 amappl 80 12662 0 12629 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 4034 0 4015 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4034 0 4015 1 0 1 1 0 8 0 vmmpekpl 168 29963 0 29927 2 0 2 2 0 8 0 vmmpepl 168 496752 0 494890 266 169 97 111 0 357 10 vmsppl 368 4028 0 4015 2 0 2 2 0 8 0 pdppl 4096 8075 0 8040 7 2 5 6 0 8 0 pvpl 32 1051491 0 1034122 323 165 158 180 0 265 14 pmappl 232 4033 0 4020 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 623 0 15 18 0 18 18 0 8 0