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 * 80292 61030 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(ffff800000ac9200,8000,709000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3721 uvm_share(ffff800000ac9200,0,7,fffffd803f012ee0,20008000,80000000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3779 [inline] uvm_share(ffff800000ac9200,0,7,fffffd803f012ee0,20008000,80000000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3681 vm_impl_init_vmx(ffff800014893860,ffff800014917bf0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a6c800,ffff800014917bf0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a6c800,ffff800014917bf0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803893ba90,c5005601,ffff800000a6c800,1,fffffd803f7c6a80,ffff800014917bf0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d310538,c5005601,ffff800000a6c800,ffff800014917bf0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800014917bf0,ffff800014912228,ffff800014912270) at sys_ioctl+0x5b9 syscall(ffff8000149122f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x13d0b0fbe10, 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(ffff800000ac9200,8000,709000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3721 uvm_share(ffff800000ac9200,0,7,fffffd803f012ee0,20008000,80000000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3779 [inline] uvm_share(ffff800000ac9200,0,7,fffffd803f012ee0,20008000,80000000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3681 vm_impl_init_vmx(ffff800014893860,ffff800014917bf0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a6c800,ffff800014917bf0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a6c800,ffff800014917bf0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803893ba90,c5005601,ffff800000a6c800,1,fffffd803f7c6a80,ffff800014917bf0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d310538,c5005601,ffff800000a6c800,ffff800014917bf0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800014917bf0,ffff800014912228,ffff800014912270) at sys_ioctl+0x5b9 syscall(ffff8000149122f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x13d0b0fbe10, count: -11 ddb> show registers rdi 0xffffffff81790a27 db_enter+0x17 rsi 0x23e6 __ALIGN_SIZE+0x13e6 rbp 0xffff800014911c50 rbx 0xffff800014911d00 rdx 0x23e7 __ALIGN_SIZE+0x13e7 rcx 0xffff800014945000 rax 0xffff800014945000 r8 0xffff800014911c10 r9 0x1 r10 0xffff800000a6e380 r11 0xc655eba8f21639cb r12 0x3000000008 r13 0xffff800014911c60 r14 0x100 r15 0x1 rip 0xffffffff81790a28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014911c40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=80292 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800014916a38,0xffffffff825b2828 process=0xffff8000ffff6a90 user=0xffff80001490d000, vmspace=0xfffffd803f012ee0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 61030 158642 62332 0 2 0 syz-executor.1 *61030 80292 62332 0 7 0x4000000 syz-executor.1 62332 366152 98419 0 3 0x82 nanosleep syz-executor.1 74037 246062 0 0 3 0x14200 acct acct 94535 342299 0 0 3 0x14200 bored sosplice 30198 132278 98419 0 2 0x2 syz-executor.0 98419 171992 87871 0 3 0x82 kqread syz-fuzzer 98419 335427 87871 0 3 0x4000082 thrsleep syz-fuzzer 98419 131515 87871 0 3 0x4000082 thrsleep syz-fuzzer 98419 183068 87871 0 3 0x4000082 thrsleep syz-fuzzer 98419 266775 87871 0 3 0x4000082 thrsleep syz-fuzzer 98419 241237 87871 0 3 0x4000082 thrsleep syz-fuzzer 98419 121246 87871 0 3 0x4000082 thrsleep syz-fuzzer 98419 224130 87871 0 3 0x4000082 thrsleep syz-fuzzer 87871 486976 51853 0 3 0x10008a pause ksh 51853 431959 48896 0 3 0x92 select sshd 24953 476555 1 0 3 0x100083 ttyin getty 48896 456190 1 0 3 0x80 select sshd 28517 317049 25400 73 3 0x100090 kqread syslogd 25400 165888 1 0 3 0x100082 netio syslogd 57282 38354 1 77 3 0x100090 poll dhclient 16028 200125 1 0 3 0x80 poll dhclient 40895 343358 0 0 2 0x14200 zerothread 17045 421669 0 0 3 0x14200 aiodoned aiodoned 7278 138698 0 0 3 0x14200 syncer update 16369 498716 0 0 3 0x14200 cleaner cleaner 27588 509509 0 0 3 0x14200 reaper reaper 65181 312475 0 0 3 0x14200 pgdaemon pagedaemon 92049 56583 0 0 3 0x14200 bored crynlk 46813 263034 0 0 3 0x14200 bored crypto 22184 337547 0 0 3 0x40014200 acpi0 acpi0 37537 492886 0 0 3 0x14200 bored softnet 4454 192776 0 0 3 0x14200 bored systqmp 63840 416836 0 0 3 0x14200 bored systq 67322 438778 0 0 3 0x40014200 bored softclock 86688 326920 0 0 3 0x40014200 idle0 75500 194410 0 0 3 0x14200 bored smr 1 332517 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 9509 6473K 6714K 78643K 11365 0 pcb 13 8K 9K 78643K 707 0 rtable 113 4K 4K 78643K 370 0 ifaddr 78 16K 16K 78643K 133 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 30 0 iov 0 0K 16K 78643K 65 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 76K 77K 78643K 1506 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 5 1K 1K 78643K 5 0 sem 12 0K 1K 78643K 55 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 362 0 sigio 0 0K 0K 78643K 8 0 proc 48 38K 54K 78643K 480 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 14 0 in_multi 92 4K 4K 78643K 115 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 66 291K 291K 78643K 66 0 exec 0 0K 1K 78643K 240 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 115 22K 31K 78643K 1750 0 UVM aobj 24 2K 3K 78643K 26 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 73 0 NDP 11 0K 0K 78643K 27 0 temp 116 3555K 3621K 78643K 5416 0 kqueue 0 0K 0K 78643K 1 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 12 0 6 1 0 1 1 0 8 0 rtpcb 96 57 0 55 1 0 1 1 0 8 0 rtentry 112 75 0 30 2 0 2 2 0 8 0 unpcb 120 223 0 214 1 0 1 1 0 8 0 syncache 280 7 0 7 3 2 1 1 0 8 1 tcpqe 32 143 0 143 1 1 0 1 0 8 0 tcpcb 640 90 0 86 2 0 2 2 0 8 1 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 1490 0 1483 7 5 2 4 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 9 0 5 1 0 1 1 0 8 0 ppxss 1128 5 0 5 2 2 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 316 0 95 16 2 14 14 0 8 0 art_table 32 318 0 95 2 0 2 2 0 8 0 art_node 16 74 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 27 0 19 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 53 0 43 1 0 1 1 0 8 0 shmpl 112 24 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1897 0 505 46 0 46 46 0 8 0 ffsino 240 1897 0 505 83 0 83 83 0 8 0 nchpl 144 2586 0 991 60 0 60 60 0 8 0 uvmvnodes 72 2158 0 0 40 0 40 40 0 8 0 vnodes 208 2158 0 0 114 0 114 114 0 8 0 namei 1024 7277 0 7277 1 0 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 520 3 0 0 1 0 1 1 0 8 0 scxspl 208 7733 0 7733 9 8 1 7 0 8 1 plimitpl 152 45 0 38 1 0 1 1 0 8 0 sigapl 432 526 0 513 2 0 2 2 0 8 0 futexpl 56 10225 0 10225 2 1 1 1 0 8 1 knotepl 112 197 0 178 3 2 1 3 0 8 0 kqueuepl 104 113 0 111 1 0 1 1 0 8 0 pipepl 128 258 0 239 1 0 1 1 0 8 0 fdescpl 424 527 0 513 2 0 2 2 0 8 0 filepl 120 4410 0 4314 6 2 4 5 0 8 1 lockfpl 104 93 0 92 1 0 1 1 0 8 0 lockfspl 48 38 0 37 1 0 1 1 0 8 0 sessionpl 128 19 0 9 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 377 0 370 1 0 1 1 0 8 0 zombiepl 144 513 0 513 1 0 1 1 0 8 1 processpl 896 543 0 513 4 0 4 4 0 8 0 procpl 648 942 0 904 4 0 4 4 0 8 0 sockpl 384 1795 0 1777 10 5 5 6 0 8 2 mcl64k 65536 36 0 36 2 1 1 1 0 8 1 mcl16k 16384 7 0 7 1 1 0 1 0 8 0 mcl12k 12288 9 0 9 2 1 1 1 0 8 1 mcl9k 9216 6 0 6 3 2 1 1 0 8 1 mcl8k 8192 13 0 13 3 2 1 1 0 8 1 mcl4k 4096 56 0 56 3 2 1 1 0 8 1 mcl2k2 2112 7 0 7 2 2 0 1 0 8 0 mcl2k 2048 67559 0 67539 14 10 4 11 0 8 0 mtagpl 80 17 0 10 2 1 1 1 0 8 0 mbufpl 256 113322 0 113238 35 26 9 29 0 8 0 bufpl 280 7215 0 2081 367 0 367 367 0 8 0 anonpl 16 87938 0 69892 105 11 94 103 0 62 7 amapchunkpl 152 2732 0 2585 13 6 7 11 0 158 0 amappl16 192 3570 0 2398 87 20 67 72 0 8 8 amappl15 184 77 0 72 1 0 1 1 0 8 0 amappl14 176 206 0 198 1 0 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 8 0 7 1 0 1 1 0 8 0 amappl11 152 152 0 141 1 0 1 1 0 8 0 amappl10 144 14 0 11 1 0 1 1 0 8 0 amappl9 136 581 0 578 1 0 1 1 0 8 0 amappl8 128 170 0 139 2 0 2 2 0 8 0 amappl7 120 52 0 47 1 0 1 1 0 8 0 amappl6 112 148 0 138 1 0 1 1 0 8 0 amappl5 104 171 0 161 1 0 1 1 0 8 0 amappl4 96 603 0 572 1 0 1 1 0 8 0 amappl3 88 411 0 404 1 0 1 1 0 8 0 amappl2 80 3359 0 3291 3 1 2 3 0 8 0 amappl1 72 19072 0 18666 26 17 9 20 0 8 0 amappl 80 1219 0 1172 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 25 0 2 1 0 1 1 0 8 0 uaddrrnd 24 530 0 513 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 530 0 513 1 0 1 1 0 8 0 vmmpekpl 168 7587 0 7560 2 0 2 2 0 8 0 vmmpepl 168 72620 0 70344 163 24 139 145 0 357 36 vmsppl 272 526 0 513 2 1 1 2 0 8 0 pdppl 4096 1066 0 1028 6 1 5 6 0 8 0 pvpl 32 233254 0 212663 235 14 221 234 0 265 27 pmappl 200 529 0 513 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 173 0 48 5 0 5 5 0 8 0