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 *126215 23820 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(ffff800000aa3800,6e9000,3000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000aa3800,10000,7,fffffd803f012000,20040000,80000000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000aa3800,10000,7,fffffd803f012000,20040000,80000000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff80001488dc70,ffff8000149142a0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a88800,ffff8000149142a0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a88800,ffff8000149142a0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803ea878f0,c5005601,ffff800000a88800,1,fffffd803f7c6b40,ffff8000149142a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d659e98,c5005601,ffff800000a88800,ffff8000149142a0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000149142a0,ffff800016582418,ffff800016582460) at sys_ioctl+0x5b9 syscall(ffff8000165824e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd818c848c30, 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(ffff800000aa3800,6e9000,3000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000aa3800,10000,7,fffffd803f012000,20040000,80000000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000aa3800,10000,7,fffffd803f012000,20040000,80000000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff80001488dc70,ffff8000149142a0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a88800,ffff8000149142a0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a88800,ffff8000149142a0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803ea878f0,c5005601,ffff800000a88800,1,fffffd803f7c6b40,ffff8000149142a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d659e98,c5005601,ffff800000a88800,ffff8000149142a0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000149142a0,ffff800016582418,ffff800016582460) at sys_ioctl+0x5b9 syscall(ffff8000165824e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd818c848c30, count: -11 ddb> show registers rdi 0xffffffff8115b787 db_enter+0x17 rsi 0x25d4 __ALIGN_SIZE+0x15d4 rbp 0xffff800016581e40 rbx 0xffff800016581ef0 rdx 0x25d5 __ALIGN_SIZE+0x15d5 rcx 0xffff800015543000 rax 0xffff800015543000 r8 0xffff800016581e00 r9 0x1 r10 0xffff800000a6d940 r11 0xd15f7e5aca24eb83 r12 0x3000000008 r13 0xffff800016581e50 r14 0x100 r15 0x1 rip 0xffffffff8115b788 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016581e30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=126215 stat=onproc flags process=0 proc=4000000 pri=70, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800014915458,0xffffffff82580b38 process=0xffff8000ffff7c10 user=0xffff80001657d000, vmspace=0xfffffd803f012000 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23820 501935 32323 0 2 0 syz-executor.0 *23820 126215 32323 0 7 0x4000000 syz-executor.0 72567 315434 82931 0 2 0 syz-executor.1 72567 125197 82931 0 3 0x4000080 fsleep syz-executor.1 36343 216126 0 0 3 0x14200 bored sosplice 32323 126840 75655 0 3 0x82 nanosleep syz-executor.0 82931 339688 75655 0 3 0x82 nanosleep syz-executor.1 75655 171121 919 0 3 0x82 thrsleep syz-fuzzer 75655 423260 919 0 3 0x4000082 thrsleep syz-fuzzer 75655 275255 919 0 3 0x4000082 thrsleep syz-fuzzer 75655 425361 919 0 3 0x4000082 thrsleep syz-fuzzer 75655 361007 919 0 3 0x4000082 kqread syz-fuzzer 75655 129583 919 0 3 0x4000082 thrsleep syz-fuzzer 75655 82783 919 0 3 0x4000082 thrsleep syz-fuzzer 919 179446 49692 0 3 0x10008a pause ksh 49692 12886 61532 0 3 0x92 select sshd 32832 295902 1 0 3 0x100083 ttyin getty 61532 75176 1 0 3 0x80 select sshd 3308 283406 19677 73 3 0x100090 kqread syslogd 19677 519467 1 0 3 0x100082 netio syslogd 99981 520406 1 77 3 0x100090 poll dhclient 42850 387087 1 0 3 0x80 poll dhclient 85607 244459 0 0 2 0x14200 zerothread 24870 479249 0 0 3 0x14200 aiodoned aiodoned 22508 146025 0 0 3 0x14200 syncer update 3549 24617 0 0 3 0x14200 cleaner cleaner 30513 394411 0 0 3 0x14200 reaper reaper 3642 177354 0 0 3 0x14200 pgdaemon pagedaemon 12981 468920 0 0 3 0x14200 bored crynlk 394 370482 0 0 3 0x14200 bored crypto 68076 459643 0 0 3 0x40014200 acpi0 acpi0 93537 519932 0 0 3 0x14200 bored softnet 78599 194841 0 0 3 0x14200 bored systqmp 47555 372229 0 0 3 0x14200 bored systq 51734 4795 0 0 3 0x40014200 bored softclock 55702 328652 0 0 3 0x40014200 idle0 59958 237134 0 0 3 0x14200 bored smr 1 376563 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 Kern Lim devbuf 9464 6329K 9696K 78643K 11268 0 0 pcb 13 8K 8K 78643K 53 0 0 rtable 104 3K 4K 78643K 245 0 0 ifaddr 50 11K 12K 78643K 70 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 1 2K 2K 78643K 16 0 0 iov 0 0K 16K 78643K 54 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1272 80K 80K 78643K 1388 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 4 0 0 VM map 3 0K 0K 78643K 3 0 0 sem 12 0K 0K 78643K 32 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1794 195K 288K 78643K 12646 0 0 file desc 6 17K 25K 78643K 117 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 48 38K 63K 78643K 367 0 0 subproc 32 2K 2K 78643K 34 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 16 0 0 in_multi 40 2K 2K 78643K 40 0 0 ether_multi 1 0K 0K 78643K 2 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 36 159K 159K 78643K 36 0 0 exec 0 0K 1K 78643K 189 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 104 21K 26K 78643K 1117 0 0 UVM aobj 4 2K 2K 78643K 6 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 16 0 0 NDP 7 0K 0K 78643K 14 0 0 temp 114 3558K 3623K 78643K 9217 0 0 kqueue 0 0K 0K 78643K 2 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 3 1 0 1 1 0 8 0 rtpcb 96 25 0 23 1 0 1 1 0 8 0 rtentry 112 54 0 12 2 0 2 2 0 8 0 unpcb 120 327 0 317 2 0 2 2 0 8 1 syncache 280 4 0 4 1 1 0 1 0 8 0 tcpqe 32 163 0 163 1 1 0 1 0 8 0 tcpcb 640 45 0 40 2 0 2 2 0 8 1 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 6 0 6 1 0 1 1 0 8 1 inpcb 280 165 0 157 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 4 0 0 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 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 226 0 11 14 0 14 14 0 8 0 art_table 32 227 0 11 2 0 2 2 0 8 0 art_node 16 53 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 30 0 20 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 1541 0 146 46 0 46 46 0 8 0 ffsino 240 1541 0 146 83 0 83 83 0 8 0 nchpl 144 1918 0 310 60 0 60 60 0 8 0 uvmvnodes 72 1740 0 0 32 0 32 32 0 8 0 vnodes 208 1740 0 0 92 0 92 92 0 8 0 namei 1024 5048 0 5048 1 0 1 1 0 8 1 vmpool 520 1 0 0 1 0 1 1 0 8 0 scxspl 208 5474 0 5474 8 1 7 7 0 8 7 plimitpl 152 28 0 21 1 0 1 1 0 8 0 sigapl 432 287 0 273 2 0 2 2 0 8 0 futexpl 56 3728 0 3727 1 0 1 1 0 8 0 knotepl 112 85 0 66 1 0 1 1 0 8 0 kqueuepl 104 44 0 42 1 0 1 1 0 8 0 pipepl 128 178 0 159 1 0 1 1 0 8 0 fdescpl 424 288 0 273 2 0 2 2 0 8 0 filepl 120 2211 0 2112 6 0 6 6 0 8 3 lockfpl 104 38 0 37 1 0 1 1 0 8 0 lockfspl 48 14 0 13 1 0 1 1 0 8 0 sessionpl 128 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 126 0 119 1 0 1 1 0 8 0 zombiepl 144 273 0 273 1 0 1 1 0 8 1 processpl 896 303 0 273 4 0 4 4 0 8 0 procpl 648 425 0 387 4 0 4 4 0 8 0 sosppl 144 4 0 4 1 0 1 1 0 8 1 sockpl 384 531 0 511 9 0 9 9 0 8 7 mcl64k 65536 243 0 243 29 5 24 29 0 8 24 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 8 0 8 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 0 1 1 0 8 1 mcl4k 4096 19 0 19 2 1 1 1 0 8 1 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 69269 0 69238 13 4 9 11 0 8 4 mtagpl 80 13 0 3 2 1 1 1 0 8 0 mbufpl 256 110941 0 110850 21 5 16 19 0 8 8 bufpl 280 6496 0 1660 347 0 347 347 0 8 1 anonpl 16 53347 0 33628 96 1 95 95 0 62 14 amapchunkpl 152 1615 0 1458 16 0 16 16 0 158 9 amappl16 192 1985 0 896 66 3 63 66 0 8 8 amappl14 176 44 0 40 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 12 0 10 1 0 1 1 0 8 0 amappl11 152 98 0 83 1 0 1 1 0 8 0 amappl10 144 52 0 49 2 1 1 1 0 8 0 amappl9 136 559 0 556 1 0 1 1 0 8 0 amappl8 128 153 0 127 1 0 1 1 0 8 0 amappl7 120 77 0 72 1 0 1 1 0 8 0 amappl6 112 102 0 88 1 0 1 1 0 8 0 amappl5 104 142 0 132 1 0 1 1 0 8 0 amappl4 96 499 0 471 1 0 1 1 0 8 0 amappl3 88 112 0 106 1 0 1 1 0 8 0 amappl2 80 1514 0 1440 3 1 2 3 0 8 0 amappl1 72 14630 0 14207 25 16 9 20 0 8 0 amappl 80 655 0 607 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 289 0 273 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 289 0 273 1 0 1 1 0 8 0 vmmpekpl 168 6223 0 6198 2 0 2 2 0 8 0 vmmpepl 168 42834 0 40573 132 5 127 129 0 357 28 vmsppl 272 287 0 273 2 1 1 2 0 8 0 pdppl 4096 584 0 546 6 1 5 6 0 8 0 pvpl 32 158260 0 135420 223 0 223 223 0 265 38 pmappl 200 288 0 273 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 179 0 19 5 0 5 5 0 8 0