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 *520901 42239 0 0 0x4000000 0 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 uvm_mapent_clone(ffff800000ba9100,e000,1df000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff800000ba9100,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff800000ba9100,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff800015969a68,ffff800015955bf0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000baa800,ffff800015955bf0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000baa800,ffff800015955bf0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803cb96270,c5005601,ffff800000baa800,1,fffffd803f7c6a80,ffff800015955bf0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d5b7f10,c5005601,ffff800000baa800,ffff800015955bf0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800015955bf0,ffff800015966ff8,ffff800015967040) at sys_ioctl+0x5b9 syscall(ffff8000159670c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8e03d273e60, 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(ffff800000ba9100,e000,1df000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff800000ba9100,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff800000ba9100,0,7,fffffd803f012330,20002000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff800015969a68,ffff800015955bf0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000baa800,ffff800015955bf0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000baa800,ffff800015955bf0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803cb96270,c5005601,ffff800000baa800,1,fffffd803f7c6a80,ffff800015955bf0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d5b7f10,c5005601,ffff800000baa800,ffff800015955bf0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800015955bf0,ffff800015966ff8,ffff800015967040) at sys_ioctl+0x5b9 syscall(ffff8000159670c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8e03d273e60, count: -11 ddb> show registers rdi 0xffffffff819e8e47 db_enter+0x17 rsi 0x27c8 __ALIGN_SIZE+0x17c8 rbp 0xffff800015966a20 rbx 0xffff800015966ad0 rdx 0x27c9 __ALIGN_SIZE+0x17c9 rcx 0xffff800014921000 rax 0xffff800014921000 r8 0xffff8000159669e0 r9 0x1 r10 0xffff800000a6d380 r11 0x4ea3c54f6e227daf r12 0x3000000008 r13 0xffff800015966a30 r14 0x100 r15 0x1 rip 0xffffffff819e8e48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015966a10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=520901 stat=onproc flags process=0 proc=4000000 pri=53, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800015954cc0,0xffffffff825b8d60 process=0xffff8000ffff7190 user=0xffff800015962000, vmspace=0xfffffd803f012330 estcpu=3, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42239 366165 23445 0 2 0 syz-executor.0 *42239 520901 23445 0 7 0x4000000 syz-executor.0 97072 295852 52428 0 2 0 syz-executor.1 97072 93050 52428 0 2 0x4000000 syz-executor.1 97072 2834 52428 0 3 0x4000080 fsleep syz-executor.1 47965 304575 0 0 3 0x14200 bored sosplice 52428 392144 75733 0 3 0x82 nanosleep syz-executor.1 23445 151858 75733 0 3 0x82 nanosleep syz-executor.0 75733 411525 16278 0 3 0x82 thrsleep syz-fuzzer 75733 218006 16278 0 3 0x4000082 thrsleep syz-fuzzer 75733 204845 16278 0 3 0x4000082 kqread syz-fuzzer 75733 239136 16278 0 3 0x4000082 thrsleep syz-fuzzer 75733 82867 16278 0 3 0x4000082 thrsleep syz-fuzzer 75733 518070 16278 0 3 0x4000082 thrsleep syz-fuzzer 75733 223012 16278 0 3 0x4000082 thrsleep syz-fuzzer 16278 413143 48949 0 3 0x10008a pause ksh 48949 2184 80868 0 3 0x92 select sshd 20547 398089 1 0 3 0x100083 ttyin getty 80868 356802 1 0 3 0x80 select sshd 44716 190342 87520 73 2 0x100010 syslogd 87520 19804 1 0 3 0x100082 netio syslogd 55376 370595 1 77 3 0x100090 poll dhclient 12912 313715 1 0 3 0x80 poll dhclient 62269 30122 0 0 2 0x14200 zerothread 58603 345142 0 0 3 0x14200 aiodoned aiodoned 94766 299256 0 0 3 0x14200 syncer update 27509 310078 0 0 3 0x14200 cleaner cleaner 59283 338038 0 0 3 0x14200 reaper reaper 62377 505205 0 0 3 0x14200 pgdaemon pagedaemon 17545 387229 0 0 3 0x14200 bored crynlk 60338 445769 0 0 3 0x14200 bored crypto 23801 430661 0 0 3 0x40014200 acpi0 acpi0 38746 271474 0 0 3 0x14200 bored softnet 50389 507854 0 0 3 0x14200 bored systqmp 27131 225125 0 0 3 0x14200 bored systq 11610 313455 0 0 3 0x40014200 bored softclock 52988 479191 0 0 3 0x40014200 idle0 54936 54548 0 0 3 0x14200 bored smr 1 203905 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 9467 6345K 7831K 78643K 11028 0 pcb 13 8K 8K 78643K 41 0 rtable 109 3K 3K 78643K 205 0 ifaddr 48 11K 11K 78643K 53 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 17 0 iov 0 0K 12K 78643K 6 0 mount 1 1K 1K 78643K 1 0 vnodes 1234 78K 78K 78643K 1323 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 5K 78643K 3 0 VM map 3 0K 0K 78643K 3 0 sem 12 0K 0K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 84 0 proc 48 38K 54K 78643K 361 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 33 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 42 185K 185K 78643K 42 0 exec 0 0K 1K 78643K 181 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 112 22K 26K 78643K 1053 0 UVM aobj 5 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 26 0 NDP 7 0K 0K 78643K 12 0 temp 88 3552K 3617K 78643K 5522 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 8 0 0 1 0 1 1 0 8 0 rtpcb 96 21 0 19 1 0 1 1 0 8 0 rtentry 112 47 0 1 2 0 2 2 0 8 0 unpcb 120 87 0 77 1 0 1 1 0 8 0 syncache 280 4 0 4 1 1 0 1 0 8 0 tcpqe 32 203 0 203 1 0 1 1 0 8 1 tcpcb 640 30 0 26 1 0 1 1 0 8 0 inpcb 280 104 0 95 2 0 2 2 0 8 1 nd6 48 4 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 214 0 0 14 0 14 14 0 8 0 art_table 32 215 0 0 2 0 2 2 0 8 0 art_node 16 46 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1489 0 93 46 0 46 46 0 8 0 ffsino 240 1489 0 93 83 0 83 83 0 8 0 nchpl 144 1794 0 187 60 0 60 60 0 8 0 uvmvnodes 72 1628 0 0 30 0 30 30 0 8 0 vnodes 208 1628 0 0 86 0 86 86 0 8 0 namei 1024 4479 0 4479 1 0 1 1 0 8 1 vmpool 520 1 0 0 1 0 1 1 0 8 0 scxspl 208 5008 0 5008 8 1 7 7 0 8 7 plimitpl 152 20 0 13 1 0 1 1 0 8 0 sigapl 432 254 0 240 2 0 2 2 0 8 0 futexpl 56 1442 0 1441 1 0 1 1 0 8 0 knotepl 112 62 0 43 1 0 1 1 0 8 0 kqueuepl 104 12 0 10 1 0 1 1 0 8 0 pipepl 128 166 0 147 2 0 2 2 0 8 1 fdescpl 424 255 0 240 2 0 2 2 0 8 0 filepl 120 1506 0 1407 4 0 4 4 0 8 1 lockfpl 104 17 0 16 1 0 1 1 0 8 0 lockfspl 48 8 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 127 0 120 1 0 1 1 0 8 0 zombiepl 144 240 0 240 1 0 1 1 0 8 1 processpl 896 270 0 240 4 0 4 4 0 8 0 procpl 648 336 0 297 4 0 4 4 0 8 0 sosppl 144 1 0 1 1 0 1 1 0 8 1 sockpl 384 212 0 193 3 0 3 3 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k2 2112 5 0 5 1 0 1 1 0 8 1 mcl2k 2048 69467 0 69439 14 3 11 11 0 8 6 mtagpl 80 4 0 2 2 1 1 1 0 8 0 mbufpl 256 110382 0 110293 14 4 10 10 0 8 1 bufpl 280 6316 0 1473 347 0 347 347 0 8 0 anonpl 16 43761 0 24666 78 1 77 77 0 62 0 amapchunkpl 152 1441 0 1284 11 0 11 11 0 158 4 amappl16 192 1353 0 296 53 0 53 53 0 8 0 amappl14 176 75 0 67 1 0 1 1 0 8 0 amappl13 168 22 0 20 1 0 1 1 0 8 0 amappl12 160 6 0 6 1 1 0 1 0 8 0 amappl11 152 49 0 37 1 0 1 1 0 8 0 amappl10 144 9 0 8 1 0 1 1 0 8 0 amappl9 136 566 0 562 1 0 1 1 0 8 0 amappl8 128 152 0 123 2 0 2 2 0 8 0 amappl7 120 33 0 29 1 0 1 1 0 8 0 amappl6 112 59 0 49 1 0 1 1 0 8 0 amappl5 104 123 0 114 1 0 1 1 0 8 0 amappl4 96 436 0 409 1 0 1 1 0 8 0 amappl3 88 167 0 157 1 0 1 1 0 8 0 amappl2 80 1243 0 1165 3 1 2 3 0 8 0 amappl1 72 14145 0 13716 27 16 11 20 0 8 2 amappl 80 596 0 548 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 256 0 240 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 256 0 240 1 0 1 1 0 8 0 vmmpekpl 168 5988 0 5964 2 0 2 2 0 8 0 vmmpepl 168 38163 0 35942 144 9 135 135 0 357 38 vmsppl 272 254 0 240 2 0 2 2 0 8 1 pdppl 4096 518 0 480 6 0 6 6 0 8 1 pvpl 32 140141 0 117967 184 0 184 184 0 265 5 pmappl 200 255 0 240 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 145 0 10 4 0 4 4 0 8 0