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 *483662 97188 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(ffff800000a7c400,1000,d000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000a7c400,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000a7c400,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff800014919a68,ffff8000ffff2cc0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a75000,ffff8000ffff2cc0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a75000,ffff8000ffff2cc0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd8037ccc680,c5005601,ffff800000a75000,1,fffffd803f7c67e0,ffff8000ffff2cc0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8030668a68,c5005601,ffff800000a75000,ffff8000ffff2cc0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2cc0,ffff8000179820e8,ffff800017982130) at sys_ioctl+0x5b9 syscall(ffff8000179821b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x85c3d724ef0, 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(ffff800000a7c400,1000,d000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000a7c400,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000a7c400,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff800014919a68,ffff8000ffff2cc0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a75000,ffff8000ffff2cc0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a75000,ffff8000ffff2cc0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd8037ccc680,c5005601,ffff800000a75000,1,fffffd803f7c67e0,ffff8000ffff2cc0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8030668a68,c5005601,ffff800000a75000,ffff8000ffff2cc0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2cc0,ffff8000179820e8,ffff800017982130) at sys_ioctl+0x5b9 syscall(ffff8000179821b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x85c3d724ef0, count: -11 ddb> show registers rdi 0xffffffff819579e7 db_enter+0x17 rsi 0x2777 __ALIGN_SIZE+0x1777 rbp 0xffff800017981b10 rbx 0xffff800017981bc0 rdx 0x2778 __ALIGN_SIZE+0x1778 rcx 0xffff800014d21000 rax 0xffff800014d21000 r8 0xffff800017981ad0 r9 0x1 r10 0xffff800000a6de40 r11 0x8bccafe558820a17 r12 0x3000000008 r13 0xffff800017981b20 r14 0x100 r15 0x1 rip 0xffffffff819579e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017981b00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=483662 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff27b0,0xffffffff825aae18 process=0xffff8000ffff6a90 user=0xffff80001797d000, vmspace=0xfffffd803f012330 estcpu=30, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92212 287238 12772 0 2 0 syz-executor.0 92212 187465 12772 0 3 0x4000080 fsleep syz-executor.0 97188 188728 58360 0 2 0 syz-executor.1 97188 322904 58360 0 3 0x4000000 inode syz-executor.1 97188 95995 58360 0 2 0x4000000 syz-executor.1 *97188 483662 58360 0 7 0x4000000 syz-executor.1 12772 499381 15659 0 3 0x82 nanosleep syz-executor.0 58360 85276 15659 0 3 0x82 nanosleep syz-executor.1 15659 516555 74634 0 3 0x82 thrsleep syz-fuzzer 15659 162612 74634 0 2 0x4000482 syz-fuzzer 15659 109434 74634 0 3 0x4000082 thrsleep syz-fuzzer 15659 18971 74634 0 3 0x4000082 thrsleep syz-fuzzer 15659 196133 74634 0 3 0x4000082 thrsleep syz-fuzzer 15659 313137 74634 0 3 0x4000082 kqread syz-fuzzer 15659 115910 74634 0 3 0x4000082 thrsleep syz-fuzzer 74634 94533 31854 0 3 0x10008a pause ksh 31854 161342 25376 0 3 0x92 select sshd 14622 325646 1 0 3 0x100083 ttyin getty 25376 18322 1 0 3 0x80 select sshd 44350 361717 69344 73 3 0x100090 kqread syslogd 69344 75623 1 0 3 0x100082 netio syslogd 85233 244079 1 77 3 0x100090 poll dhclient 14002 20053 1 0 3 0x80 poll dhclient 1483 247803 0 0 2 0x14200 zerothread 66234 244866 0 0 3 0x14200 aiodoned aiodoned 46636 234738 0 0 3 0x14200 syncer update 47638 112362 0 0 3 0x14200 cleaner cleaner 79709 331348 0 0 3 0x14200 reaper reaper 45214 638 0 0 3 0x14200 pgdaemon pagedaemon 78403 58798 0 0 3 0x14200 bored crynlk 5859 14677 0 0 3 0x14200 bored crypto 79845 76574 0 0 3 0x40014200 acpi0 acpi0 88893 254194 0 0 3 0x14200 bored softnet 29732 211810 0 0 3 0x14200 bored systqmp 76255 284857 0 0 3 0x14200 bored systq 77539 280069 0 0 3 0x40014200 bored softclock 58174 185174 0 0 3 0x40014200 idle0 78648 162860 0 0 3 0x14200 bored smr 1 333403 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 9449 6323K 6711K 78643K 10653 0 pcb 13 8K 8K 78643K 23 0 rtable 106 3K 3K 78643K 215 0 ifaddr 38 9K 10K 78643K 54 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 24 0 iov 1 12K 16K 78643K 9 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1245 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 3 0K 0K 78643K 3 0 sem 6 0K 0K 78643K 6 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 72 0 proc 48 38K 63K 78643K 367 0 subproc 32 2K 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 4 0 in_multi 29 1K 2K 78643K 39 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 36 159K 159K 78643K 36 0 exec 0 0K 1K 78643K 183 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 103 21K 21K 78643K 997 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 4 0 NDP 5 0K 0K 78643K 12 0 temp 71 3549K 3613K 78643K 3894 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 0 1 0 1 1 0 8 0 rtpcb 96 25 0 23 1 0 1 1 0 8 0 rtentry 112 50 0 7 2 0 2 2 0 8 0 unpcb 120 59 0 49 1 0 1 1 0 8 0 syncache 280 4 0 4 2 2 0 1 0 8 0 tcpqe 32 331 0 331 1 0 1 1 0 8 1 tcpcb 640 22 0 18 1 0 1 1 0 8 0 ipq 40 3 0 3 1 0 1 1 0 8 1 ipqe 40 135 0 135 1 0 1 1 0 8 1 inpcb 280 134 0 127 2 0 2 2 0 8 1 rttmr 72 1 0 0 1 0 1 1 0 8 0 nd6 48 5 0 2 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 260 0 39 14 0 14 14 0 8 0 art_table 32 261 0 39 2 0 2 2 0 8 0 art_node 16 49 0 9 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semapl 112 4 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1469 0 70 46 0 46 46 0 8 0 ffsino 240 1469 0 70 83 0 83 83 0 8 0 nchpl 144 1754 0 145 60 0 60 60 0 8 0 uvmvnodes 72 1534 0 0 28 0 28 28 0 8 0 vnodes 208 1534 0 0 81 0 81 81 0 8 0 namei 1024 4287 0 4287 1 0 1 1 0 8 1 vmpool 520 1 0 0 1 0 1 1 0 8 0 scxspl 208 4982 0 4982 8 1 7 7 0 8 7 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 432 242 0 228 2 0 2 2 0 8 0 futexpl 56 1215 0 1214 1 0 1 1 0 8 0 knotepl 112 62 0 43 1 0 1 1 0 8 0 kqueuepl 104 16 0 14 1 0 1 1 0 8 0 pipepl 128 184 0 163 2 0 2 2 0 8 1 fdescpl 424 243 0 228 2 0 2 2 0 8 0 filepl 120 1392 0 1289 4 0 4 4 0 8 0 lockfpl 104 24 0 22 1 0 1 1 0 8 0 lockfspl 48 9 0 7 1 0 1 1 0 8 0 sessionpl 128 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 72 0 65 1 0 1 1 0 8 0 zombiepl 144 228 0 228 1 0 1 1 0 8 1 processpl 896 257 0 228 4 0 4 4 0 8 0 procpl 648 317 0 278 4 0 4 4 0 8 0 sockpl 384 220 0 201 3 0 3 3 0 8 1 mcl64k 65536 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 2 0 2 1 0 1 1 0 8 1 mcl4k 4096 13 0 13 3 2 1 1 0 8 1 mcl2k 2048 69002 0 68960 20 6 14 17 0 8 8 mtagpl 80 5 0 2 2 1 1 1 0 8 0 mbufpl 256 109720 0 109632 24 4 20 23 0 8 8 bufpl 280 6316 0 1438 349 0 349 349 0 8 0 anonpl 16 46143 0 27243 94 2 92 92 0 62 16 amapchunkpl 152 1142 0 973 9 0 9 9 0 158 0 amappl16 192 1548 0 520 63 0 63 63 0 8 11 amappl14 176 45 0 40 1 0 1 1 0 8 0 amappl12 160 43 0 35 1 0 1 1 0 8 0 amappl11 152 45 0 33 1 0 1 1 0 8 0 amappl10 144 9 0 8 3 2 1 1 0 8 0 amappl9 136 226 0 222 1 0 1 1 0 8 0 amappl8 128 156 0 131 2 0 2 2 0 8 0 amappl7 120 37 0 33 1 0 1 1 0 8 0 amappl6 112 60 0 49 1 0 1 1 0 8 0 amappl5 104 854 0 840 1 0 1 1 0 8 0 amappl4 96 412 0 388 1 0 1 1 0 8 0 amappl3 88 151 0 143 1 0 1 1 0 8 0 amappl2 80 1161 0 1086 3 1 2 3 0 8 0 amappl1 72 13707 0 13265 26 14 12 20 0 8 2 amappl 80 550 0 500 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 244 0 228 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 244 0 228 1 0 1 1 0 8 0 vmmpekpl 168 6007 0 5985 2 0 2 2 0 8 0 vmmpepl 168 37883 0 35662 142 9 133 133 0 357 36 vmsppl 272 242 0 228 2 0 2 2 0 8 1 pdppl 4096 494 0 456 6 0 6 6 0 8 1 pvpl 32 140604 0 118632 214 0 214 214 0 265 36 pmappl 200 243 0 228 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 161 0 14 5 0 5 5 0 8 0