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 *301738 33874 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc8c2) at panic+0x15c sys/kern/subr_prf.c:207 uvm_mapent_clone(ffff8000006a2500,c000,10000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff8000006a2500,0,7,fffffd803f012550,20004000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff8000006a2500,0,7,fffffd803f012550,20004000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff800015962618,ffff8000ffff9b30) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a56800,ffff8000ffff9b30) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a56800,ffff8000ffff9b30) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd8037902340,c5005601,ffff800000a56800,1,fffffd803f7c6900,ffff8000ffff9b30) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802dbc1d30,c5005601,ffff800000a56800,ffff8000ffff9b30) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff9b30,ffff800014938cc8,ffff800014938d10) at sys_ioctl+0x5b9 syscall(ffff800014938d90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfcda2081a90, 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(ffffffff821cc8c2) at panic+0x15c sys/kern/subr_prf.c:207 uvm_mapent_clone(ffff8000006a2500,c000,10000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff8000006a2500,0,7,fffffd803f012550,20004000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff8000006a2500,0,7,fffffd803f012550,20004000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff800015962618,ffff8000ffff9b30) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a56800,ffff8000ffff9b30) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a56800,ffff8000ffff9b30) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd8037902340,c5005601,ffff800000a56800,1,fffffd803f7c6900,ffff8000ffff9b30) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802dbc1d30,c5005601,ffff800000a56800,ffff8000ffff9b30) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff9b30,ffff800014938cc8,ffff800014938d10) at sys_ioctl+0x5b9 syscall(ffff800014938d90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfcda2081a90, count: -11 ddb> show registers rdi 0xffffffff81506c37 db_enter+0x17 rsi 0x21ba __ALIGN_SIZE+0x11ba rbp 0xffff8000149386f0 rbx 0xffff8000149387a0 rdx 0x21bb __ALIGN_SIZE+0x11bb rcx 0xffff800016b61000 rax 0xffff800016b61000 r8 0xffff8000149386b0 r9 0x1 r10 0xffff8000009ed000 r11 0xd93398d82c6d3a4b r12 0x3000000008 r13 0xffff800014938700 r14 0x100 r15 0x1 rip 0xffffffff81506c38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149386e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=301738 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff89e8,0xffffffff825770b0 process=0xffff8000ffff66d0 user=0xffff800014933000, vmspace=0xfffffd803f012550 estcpu=36, cpticks=51, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 33874 388006 20137 0 2 0 syz-executor.0 *33874 301738 20137 0 7 0x4000000 syz-executor.0 86824 247206 0 0 3 0x14200 bored sosplice 63492 124025 0 0 3 0x14200 acct acct 20137 312002 83440 0 3 0x82 nanosleep syz-executor.0 83440 134791 36086 0 3 0x82 thrsleep syz-fuzzer 83440 164002 36086 0 3 0x4000082 thrsleep syz-fuzzer 83440 432459 36086 0 3 0x4000082 kqread syz-fuzzer 83440 377219 36086 0 3 0x4000082 thrsleep syz-fuzzer 83440 95050 36086 0 3 0x4000082 thrsleep syz-fuzzer 83440 399825 36086 0 3 0x4000082 thrsleep syz-fuzzer 83440 156083 36086 0 3 0x4000082 thrsleep syz-fuzzer 83440 196139 36086 0 3 0x4000082 thrsleep syz-fuzzer 36086 138056 37611 0 3 0x10008a pause ksh 37611 160554 75916 0 3 0x92 select sshd 12963 470229 1 0 3 0x100083 ttyin getty 75916 187924 1 0 3 0x80 select sshd 27868 340663 21007 73 3 0x100090 kqread syslogd 21007 201346 1 0 3 0x100082 netio syslogd 19066 375718 1 77 3 0x100090 poll dhclient 45033 69360 1 0 3 0x80 poll dhclient 25112 79828 0 0 2 0x14200 zerothread 22412 99939 0 0 3 0x14200 aiodoned aiodoned 85888 359149 0 0 3 0x14200 syncer update 12440 135186 0 0 3 0x14200 cleaner cleaner 26708 160374 0 0 3 0x14200 reaper reaper 85377 413901 0 0 3 0x14200 pgdaemon pagedaemon 43073 323631 0 0 3 0x14200 bored crynlk 37238 70505 0 0 3 0x14200 bored crypto 93386 241600 0 0 3 0x40014200 acpi0 acpi0 19896 276373 0 0 3 0x14200 bored softnet 99382 64445 0 0 3 0x14200 bored systqmp 37433 145217 0 0 3 0x14200 bored systq 65350 488 0 0 3 0x40014200 bored softclock 25923 482352 0 0 3 0x40014200 idle0 48032 396717 0 0 3 0x14200 bored smr 1 434892 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 9493 6337K 6723K 78643K 10932 0 pcb 13 8K 8K 78643K 49 0 rtable 86 3K 4K 78643K 242 0 ifaddr 53 11K 13K 78643K 80 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 24 0 iov 0 0K 24K 78643K 51 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1393 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 7 1K 1K 78643K 7 0 sem 12 1K 1K 78643K 24 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 4 9K 25K 78643K 158 0 sigio 0 0K 0K 78643K 2 0 proc 48 38K 63K 78643K 379 0 subproc 16 1K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 30 0 in_multi 31 2K 2K 78643K 42 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 108 477K 477K 78643K 108 0 exec 0 0K 1K 78643K 197 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 109 46K 55K 78643K 1258 0 UVM aobj 4 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 38 0 NDP 9 0K 0K 78643K 17 0 temp 106 3017K 3081K 78643K 5211 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 6 0 3 1 0 1 1 0 8 0 rtpcb 80 30 0 28 1 0 1 1 0 8 0 rtentry 112 49 0 16 2 0 2 2 0 8 0 unpcb 120 111 0 103 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 533 0 533 1 1 0 1 0 8 0 tcpcb 544 59 0 55 1 0 1 1 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 90 0 90 1 0 1 1 0 8 1 inpcb 280 231 0 224 2 0 2 2 0 8 1 nd6 48 4 0 2 1 0 1 1 0 8 0 ppxss 1128 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 224 0 51 14 0 14 14 0 8 1 art_table 32 225 0 51 2 0 2 2 0 8 0 art_node 16 48 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 27 1 0 1 1 0 8 0 semupl 112 5 0 5 1 0 1 1 0 8 1 semapl 112 22 0 12 1 0 1 1 0 8 0 shmpl 112 4 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1675 0 278 46 0 46 46 0 8 0 ffsino 240 1675 0 278 83 0 83 83 0 8 0 nchpl 144 2098 0 506 60 0 60 60 0 8 0 uvmvnodes 72 1807 0 0 33 0 33 33 0 8 0 vnodes 208 1807 0 0 96 0 96 96 0 8 0 namei 1024 5977 0 5977 2 1 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 192 6352 0 6352 8 5 3 7 0 8 3 plimitpl 152 22 0 16 1 0 1 1 0 8 0 sigapl 432 329 0 317 2 0 2 2 0 8 0 futexpl 56 4637 0 4637 1 0 1 1 0 8 1 knotepl 112 64 0 51 1 0 1 1 0 8 0 kqueuepl 104 35 0 32 1 0 1 1 0 8 0 pipepl 128 380 0 367 2 0 2 2 0 8 1 fdescpl 424 330 0 317 2 0 2 2 0 8 0 filepl 120 2754 0 2677 5 0 5 5 0 8 2 lockfpl 104 58 0 57 1 0 1 1 0 8 0 lockfspl 48 19 0 18 1 0 1 1 0 8 0 sessionpl 112 17 0 8 1 0 1 1 0 8 0 pgrppl 48 17 0 8 1 0 1 1 0 8 0 ucredpl 96 624 0 617 1 0 1 1 0 8 0 zombiepl 144 317 0 317 2 1 1 1 0 8 1 processpl 864 346 0 317 4 0 4 4 0 8 0 procpl 632 560 0 523 5 0 5 5 0 8 1 sosppl 128 4 0 4 1 0 1 1 0 8 1 sockpl 384 374 0 357 4 0 4 4 0 8 2 mcl64k 65536 16 0 16 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 1 0 1 1 0 8 1 mcl4k 4096 25 0 25 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 67469 0 67405 21 12 9 19 0 8 0 mtagpl 80 12 0 8 2 1 1 1 0 8 0 mbufpl 256 108363 0 108261 25 6 19 23 0 8 8 bufpl 280 6870 0 1959 351 0 351 351 0 8 0 anonpl 16 61367 0 41772 92 1 91 91 0 62 10 amapchunkpl 152 1838 0 1668 14 3 11 11 0 158 3 amappl16 192 2195 0 890 67 1 66 66 0 8 0 amappl15 184 51 0 46 1 0 1 1 0 8 0 amappl14 176 86 0 81 1 0 1 1 0 8 0 amappl13 168 67 0 65 1 0 1 1 0 8 0 amappl12 160 5 0 3 1 0 1 1 0 8 0 amappl11 152 46 0 35 1 0 1 1 0 8 0 amappl10 144 10 0 8 2 1 1 1 0 8 0 amappl9 136 556 0 554 1 0 1 1 0 8 0 amappl8 128 121 0 99 1 0 1 1 0 8 0 amappl7 120 89 0 78 1 0 1 1 0 8 0 amappl6 112 53 0 48 1 0 1 1 0 8 0 amappl5 104 145 0 133 1 0 1 1 0 8 0 amappl4 96 544 0 516 1 0 1 1 0 8 0 amappl3 88 173 0 166 1 0 1 1 0 8 0 amappl2 80 1949 0 1880 3 1 2 3 0 8 0 amappl1 72 15588 0 15181 26 16 10 20 0 8 0 amappl 80 784 0 740 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 5 0 2 1 0 1 1 0 8 0 uaddrrnd 24 335 0 317 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 335 0 317 1 0 1 1 0 8 0 vmmpekpl 168 6652 0 6626 2 0 2 2 0 8 0 vmmpepl 168 48052 0 45698 130 16 114 121 0 357 11 vmsppl 272 329 0 317 2 1 1 2 0 8 0 pdppl 4096 676 0 638 7 1 6 6 0 8 0 pvpl 32 171908 0 149365 212 0 212 212 0 265 29 pmappl 200 334 0 317 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 166 0 25 5 0 5 5 0 8 0