panic: uvm_mapent_clone: no space in map for entry in empty map Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 3261 24742 0 0 0x4000000 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 uvm_mapent_clone(ffff800000a8b300,6d9000,3000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000a8b300,0,7,fffffd803f011660,20040000,80000000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000a8b300,0,7,fffffd803f011660,20040000,80000000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff80001488cc30,ffff8000ffff2f48) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000aa9800,ffff8000ffff2f48) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000aa9800,ffff8000ffff2f48) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803851a410,c5005601,ffff800000aa9800,1,fffffd803f7c6900,ffff8000ffff2f48) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802da487f8,c5005601,ffff800000aa9800,ffff8000ffff2f48) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2f48,ffff8000159107e8,ffff800015910830) at sys_ioctl+0x5b9 syscall(ffff8000159108b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3ae3bbd9460, count: 4 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic uvm_mapent_clone: no space in map for entry in empty map ddb> 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 uvm_mapent_clone(ffff800000a8b300,6d9000,3000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000a8b300,0,7,fffffd803f011660,20040000,80000000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000a8b300,0,7,fffffd803f011660,20040000,80000000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff80001488cc30,ffff8000ffff2f48) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000aa9800,ffff8000ffff2f48) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000aa9800,ffff8000ffff2f48) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803851a410,c5005601,ffff800000aa9800,1,fffffd803f7c6900,ffff8000ffff2f48) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802da487f8,c5005601,ffff800000aa9800,ffff8000ffff2f48) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2f48,ffff8000159107e8,ffff800015910830) at sys_ioctl+0x5b9 syscall(ffff8000159108b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3ae3bbd9460, count: -11 ddb> show registers rdi 0xffffffff81b8b077 db_enter+0x17 rsi 0x241e __ALIGN_SIZE+0x141e rbp 0xffff800015910210 rbx 0xffff8000159102c0 rdx 0x241f __ALIGN_SIZE+0x141f rcx 0xffff800017b55000 rax 0xffff800017b55000 r8 0xffff8000159101d0 r9 0x1 r10 0xffff800000a9bb00 r11 0x49c14163261866a4 r12 0x3000000008 r13 0xffff800015910220 r14 0x100 r15 0x1 rip 0xffffffff81b8b078 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015910200 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=3261 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3968,0xffff8000ffff3c00 process=0xffff8000ffff6e10 user=0xffff80001590b000, vmspace=0xfffffd803f011660 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24742 204637 28217 0 2 0 syz-executor.1 *24742 3261 28217 0 7 0x4000000 syz-executor.1 76125 392757 3568 0 2 0 syz-executor.0 76125 522120 3568 0 3 0x4000080 fsleep syz-executor.0 76125 417640 3568 0 2 0x4000000 syz-executor.0 28217 368869 28571 0 3 0x82 nanosleep syz-executor.1 34769 253135 0 0 3 0x14200 bored sosplice 3568 141027 28571 0 3 0x82 nanosleep syz-executor.0 28571 209203 25822 0 3 0x82 thrsleep syz-fuzzer 28571 460990 25822 0 3 0x4000082 thrsleep syz-fuzzer 28571 214081 25822 0 3 0x4000082 thrsleep syz-fuzzer 28571 256793 25822 0 3 0x4000082 thrsleep syz-fuzzer 28571 316500 25822 0 3 0x4000082 kqread syz-fuzzer 28571 139580 25822 0 3 0x4000082 thrsleep syz-fuzzer 28571 472428 25822 0 3 0x4000082 thrsleep syz-fuzzer 28571 67884 25822 0 3 0x4000082 thrsleep syz-fuzzer 25822 367449 91707 0 3 0x10008a pause ksh 91707 110836 93451 0 3 0x92 select sshd 98157 513367 1 0 3 0x100083 ttyin getty 93451 450731 1 0 3 0x80 select sshd 65988 243465 63335 73 3 0x100090 kqread syslogd 63335 197897 1 0 3 0x100082 netio syslogd 84596 426666 1 77 3 0x100090 poll dhclient 56729 168542 1 0 3 0x80 poll dhclient 80066 338916 0 0 2 0x14200 zerothread 71312 123819 0 0 3 0x14200 aiodoned aiodoned 79580 285622 0 0 3 0x14200 syncer update 61105 154527 0 0 3 0x14200 cleaner cleaner 93218 82529 0 0 3 0x14200 reaper reaper 9090 190193 0 0 3 0x14200 pgdaemon pagedaemon 79727 116974 0 0 3 0x14200 bored crynlk 68514 261407 0 0 3 0x14200 bored crypto 90724 253347 0 0 3 0x40014200 acpi0 acpi0 68134 409407 0 0 3 0x14200 bored softnet 13549 511789 0 0 3 0x14200 bored systqmp 50765 12546 0 0 3 0x14200 bored systq 26966 150316 0 0 3 0x40014200 bored softclock 57249 502259 0 0 3 0x40014200 idle0 5291 83339 0 0 3 0x14200 bored smr 1 27760 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9517 6427K 7198K 78643K 11736 0 pcb 13 10K 12K 78643K 117 0 rtable 91 3K 4K 78643K 337 0 ifaddr 69 12K 13K 78643K 113 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 34 0 iov 0 0K 16K 78643K 85 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 76K 77K 78643K 1676 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 7 1K 1K 78643K 7 0 sem 12 0K 0K 78643K 124 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 339 0 sigio 0 0K 0K 78643K 7 0 proc 48 38K 63K 78643K 422 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 143 0 in_multi 37 2K 2K 78643K 68 0 ether_multi 1 0K 0K 78643K 5 0 mrt 2 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 78 344K 344K 78643K 78 0 exec 0 0K 1K 78643K 221 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 114 54K 63K 78643K 1856 0 UVM aobj 32 2K 2K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 1 0K 1K 78643K 162 0 NDP 13 0K 0K 78643K 26 0 temp 139 3539K 3608K 78643K 7412 0 kqueue 0 0K 0K 78643K 4 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 6 1 0 1 1 0 8 0 rtpcb 96 51 0 49 1 0 1 1 0 8 0 rtentry 112 61 0 27 2 0 2 2 0 8 0 unpcb 120 320 0 312 1 0 1 1 0 8 0 syncache 280 5 0 5 2 2 0 1 0 8 0 tcpqe 32 270 0 270 2 2 0 1 0 8 0 tcpcb 640 434 0 430 19 12 7 18 0 8 6 ipq 40 7 0 7 2 1 1 1 0 8 1 ipqe 40 25 0 25 2 1 1 1 0 8 1 inpcb 280 810 0 802 9 2 7 9 0 8 6 nd6 48 6 0 4 2 1 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 ppxss 1128 4 0 4 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 270 0 96 17 5 12 14 0 8 0 art_table 32 271 0 96 2 0 2 2 0 8 0 art_node 16 60 0 29 1 0 1 1 0 8 0 sysvmsgpl 40 65 0 36 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 120 0 110 1 0 1 1 0 8 0 shmpl 112 31 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1988 0 594 46 0 46 46 0 8 0 ffsino 240 1988 0 594 83 0 83 83 0 8 0 nchpl 144 2652 0 1055 60 0 60 60 0 8 0 uvmvnodes 72 2316 0 0 43 0 43 43 0 8 0 vnodes 208 2316 0 0 122 0 122 122 0 8 0 namei 1024 8333 0 8333 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 520 5 0 0 1 0 1 1 0 8 0 scxspl 208 7512 0 7512 11 8 3 7 0 8 3 plimitpl 152 35 0 28 1 0 1 1 0 8 0 sigapl 432 506 0 492 2 0 2 2 0 8 0 futexpl 56 12027 0 12026 1 0 1 1 0 8 0 knotepl 112 114 0 95 1 0 1 1 0 8 0 kqueuepl 104 242 0 240 4 2 2 4 0 8 1 pipepl 128 450 0 431 4 2 2 2 0 8 1 fdescpl 424 507 0 492 2 0 2 2 0 8 0 filepl 120 5077 0 4974 12 3 9 11 0 8 5 lockfpl 104 130 0 129 1 0 1 1 0 8 0 lockfspl 48 46 0 45 1 0 1 1 0 8 0 sessionpl 128 18 0 8 1 0 1 1 0 8 0 pgrppl 48 32 0 22 1 0 1 1 0 8 0 ucredpl 96 1247 0 1240 1 0 1 1 0 8 0 zombiepl 144 492 0 492 1 0 1 1 0 8 1 processpl 896 522 0 492 4 0 4 4 0 8 0 procpl 648 1108 0 1068 5 1 4 5 0 8 0 sosppl 144 12 0 12 4 3 1 1 0 8 1 sockpl 384 1190 0 1172 16 8 8 14 0 8 6 mcl64k 65536 35 0 35 1 0 1 1 0 8 1 mcl16k 16384 19 0 19 2 1 1 1 0 8 1 mcl12k 12288 14 0 14 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 3 2 1 1 0 8 1 mcl8k 8192 51 0 51 1 0 1 1 0 8 1 mcl4k 4096 38 0 38 2 1 1 1 0 8 1 mcl2k2 2112 2 0 2 2 2 0 1 0 8 0 mcl2k 2048 70938 0 70906 15 10 5 13 0 8 0 mtagpl 80 18 0 6 3 2 1 1 0 8 0 mbufpl 256 115357 0 115266 14 5 9 9 0 8 0 bufpl 256 7150 0 2270 306 0 306 306 0 8 0 anonpl 16 71578 0 51423 90 1 89 89 0 62 7 amapchunkpl 152 2965 0 2797 12 0 12 12 0 158 5 amappl16 192 2733 0 1626 58 1 57 57 0 8 1 amappl14 176 51 0 46 1 0 1 1 0 8 0 amappl12 160 78 0 75 2 1 1 1 0 8 0 amappl11 152 136 0 125 1 0 1 1 0 8 0 amappl10 144 11 0 8 1 0 1 1 0 8 0 amappl9 136 570 0 567 1 0 1 1 0 8 0 amappl8 128 169 0 138 2 0 2 2 0 8 0 amappl7 120 37 0 33 1 0 1 1 0 8 0 amappl6 112 141 0 132 1 0 1 1 0 8 0 amappl5 104 238 0 226 1 0 1 1 0 8 0 amappl4 96 656 0 632 1 0 1 1 0 8 0 amappl3 88 202 0 195 1 0 1 1 0 8 0 amappl2 80 3211 0 3136 3 1 2 3 0 8 0 amappl1 72 19233 0 18793 27 18 9 20 0 8 0 amappl 80 1361 0 1313 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 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 32 0 1 1 0 1 1 0 8 0 uaddrrnd 24 512 0 492 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 512 0 492 1 0 1 1 0 8 0 vmmpekpl 168 8315 0 8288 2 0 2 2 0 8 0 vmmpepl 168 68798 0 66503 168 36 132 141 0 357 32 vmsppl 272 506 0 492 3 2 1 2 0 8 0 pdppl 4096 1030 0 988 7 1 6 6 0 8 0 pvpl 32 211303 0 188259 208 3 205 205 0 265 19 pmappl 200 511 0 492 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 458 0 27 13 0 13 13 0 8 0