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 124730 7711 0 0 0 0 syz-executor.1 *145542 7711 0 0 0x4000000 1K 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(ffff800000aa6e00,c000,1f0000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000aa6e00,0,7,fffffd807f008a10,20004000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000aa6e00,0,7,fffffd807f008a10,20004000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff800020b5f590,ffff800020a8a528) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create() at vm_create+0x1a0 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create() at vm_create+0x1a0 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd806e0d19c0,c5005601,ffff800000aa1800,3,fffffd807f7c6600,ffff800020a8a528) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd80640c8e58,c5005601,ffff800000aa1800,ffff800020a8a528) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020a8a528,ffff800023bab3f8,ffff800023bab440) at sys_ioctl+0x5b9 syscall(ffff800023bab4c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bab4c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcabcefd9670, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic uvm_mapent_clone: no space in map for entry in empty map ddb{1}> 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(ffff800000aa6e00,c000,1f0000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3708 uvm_share(ffff800000aa6e00,0,7,fffffd807f008a10,20004000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3766 [inline] uvm_share(ffff800000aa6e00,0,7,fffffd807f008a10,20004000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff800020b5f590,ffff800020a8a528) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create() at vm_create+0x1a0 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create() at vm_create+0x1a0 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd806e0d19c0,c5005601,ffff800000aa1800,3,fffffd807f7c6600,ffff800020a8a528) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd80640c8e58,c5005601,ffff800000aa1800,ffff800020a8a528) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020a8a528,ffff800023bab3f8,ffff800023bab440) at sys_ioctl+0x5b9 syscall(ffff800023bab4c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bab4c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcabcefd9670, count: -11 ddb{1}> show registers rdi 0xffffffff8157cc77 db_enter+0x17 rsi 0x1fa0 __ALIGN_SIZE+0xfa0 rbp 0xffff800023baae20 rbx 0xffff800023baaed0 rdx 0x1fa1 __ALIGN_SIZE+0xfa1 rcx 0xffff800022d8c000 rax 0xffff800022d8c000 r8 0xffffffff81a61d1f kprintf+0x16f r9 0x1 r10 0x25 r11 0x627025fc064795d r12 0x3000000008 r13 0xffff800023baae30 r14 0x100 r15 0x1 rip 0xffffffff8157cc78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023baae10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=145542 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020a8acc0,0xffff800020a8a7c0 process=0xffff800020ad0ea0 user=0xffff800023ba6000, vmspace=0xfffffd807f008a10 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 7711 124730 50764 0 7 0 syz-executor.1 * 7711 145542 50764 0 7 0x4000000 syz-executor.1 11020 237996 5248 0 2 0 syz-executor.0 11020 414114 5248 0 3 0x4000080 select syz-executor.0 11020 191924 5248 0 2 0x4000000 syz-executor.0 50764 291058 59186 0 3 0x82 nanosleep syz-executor.1 5248 381706 59186 0 3 0x82 nanosleep syz-executor.0 59186 113430 59011 0 3 0x82 thrsleep syz-fuzzer 59186 393677 59011 0 3 0x4000082 nanosleep syz-fuzzer 59186 244114 59011 0 3 0x4000082 thrsleep syz-fuzzer 59186 480760 59011 0 3 0x4000082 kqread syz-fuzzer 59186 339693 59011 0 3 0x4000082 thrsleep syz-fuzzer 59186 313189 59011 0 3 0x4000082 thrsleep syz-fuzzer 59186 242303 59011 0 3 0x4000082 thrsleep syz-fuzzer 59186 167288 59011 0 3 0x4000082 thrsleep syz-fuzzer 59186 494395 59011 0 3 0x4000082 thrsleep syz-fuzzer 59186 210271 59011 0 3 0x4000082 thrsleep syz-fuzzer 59011 439317 76217 0 3 0x10008a pause ksh 76217 75448 4993 0 3 0x92 select sshd 33266 67139 1 0 3 0x100083 ttyin getty 4993 23366 1 0 3 0x80 select sshd 14436 279197 73419 74 3 0x100092 bpf pflogd 73419 187993 1 0 3 0x80 netio pflogd 4505 329899 83700 73 3 0x100090 kqread syslogd 83700 82699 1 0 3 0x100082 netio syslogd 9296 483107 1 77 3 0x100090 poll dhclient 31292 63747 1 0 3 0x80 poll dhclient 54806 288906 0 0 2 0x14200 zerothread 49424 274656 0 0 3 0x14200 aiodoned aiodoned 80601 198789 0 0 3 0x14200 syncer update 5758 451819 0 0 3 0x14200 cleaner cleaner 2620 219776 0 0 3 0x14200 reaper reaper 20799 305440 0 0 3 0x14200 pgdaemon pagedaemon 98167 262901 0 0 3 0x14200 bored crynlk 11729 503633 0 0 3 0x14200 bored crypto 53500 277718 0 0 3 0x40014200 acpi0 acpi0 56048 287778 0 0 3 0x40014200 idle1 98863 380146 0 0 3 0x14200 bored softnet 20901 295281 0 0 3 0x14200 bored systqmp 37449 437546 0 0 3 0x14200 bored systq 39733 496039 0 0 3 0x40014200 bored softclock 60233 17949 0 0 3 0x40014200 idle0 70031 181188 0 0 3 0x14200 bored smr 1 159221 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 7711 (syz-executor.1) thread 0xffff800020a8a528 (145542) shared rwlock vmmaplk r = 0 (0xfffffd807f008a28) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvm_share+0xcf vm_map_lock_read_ln sys/uvm/uvm_map.c:5364 [inline] #1 uvm_share+0xcf sys/uvm/uvm_map.c:3627 #2 vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 #3 vm_create+0x1a0 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] #3 vm_create+0x1a0 sys/arch/amd64/amd64/vmm.c:1173 #4 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #5 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 #6 sys_ioctl+0x5b9 #7 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #7 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #8 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xffff800000aa6e18) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 vm_map_lock_ln+0x10d sys/uvm/uvm_map.c:5342 #3 uvm_share+0xa7 vm_map_lock_read_ln sys/uvm/uvm_map.c:5363 [inline] #3 uvm_share+0xa7 sys/uvm/uvm_map.c:3627 #4 vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 #5 vm_create+0x1a0 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] #5 vm_create+0x1a0 sys/arch/amd64/amd64/vmm.c:1173 #6 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #7 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 #8 sys_ioctl+0x5b9 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rwlock vmlistlock r = 0 (0xffff800000671478) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 vm_create+0x130 vm_impl_init sys/arch/amd64/amd64/vmm.c:1382 [inline] #1 vm_create+0x130 sys/arch/amd64/amd64/vmm.c:1173 #2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82687c48) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9505 6536K 6788K 78643K 10985 0 pcb 13 8K 8K 78643K 202 0 rtable 113 4K 5K 78643K 288 0 ifaddr 70 15K 15K 78643K 114 0 counters 39 33K 33K 78643K 39 0 ioctlops 1 2K 4K 78643K 1483 0 iov 0 0K 16K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1348 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 3 1K 1K 78643K 5 0 sem 12 1K 1K 78643K 27 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 186 0 sigio 0 0K 0K 78643K 6 0 proc 60 63K 95K 78643K 449 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 10 0 in_multi 74 3K 3K 78643K 77 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 48 212K 212K 78643K 48 0 exec 0 0K 1K 78643K 222 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 113 22K 22K 78643K 1532 0 UVM aobj 10 2K 2K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 9 0K 0K 78643K 21 0 temp 91 3570K 3638K 78643K 9040 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 96 33 0 31 1 0 1 1 0 8 0 rtentry 112 48 0 3 2 0 2 2 0 8 0 unpcb 120 83 0 73 1 0 1 1 0 8 0 syncache 280 7 0 7 2 1 1 1 0 8 1 tcpqe 32 101 0 101 1 1 0 1 0 8 0 tcpcb 640 61 0 57 1 0 1 1 0 8 0 inpcb 280 431 0 424 2 0 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 6 0 6 1 1 0 1 0 8 0 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 45 0 45 1 0 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 22 0 2 1 0 1 1 0 8 0 pfstkey 112 22 0 2 1 0 1 1 0 8 0 pfstate 328 22 0 2 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 218 0 0 14 0 14 14 0 8 0 art_table 32 220 0 0 2 0 2 2 0 8 0 art_node 16 47 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 0 1 1 0 8 1 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 23 0 13 1 0 1 1 0 8 0 shmpl 112 10 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1660 0 255 46 0 46 46 0 8 0 ffsino 272 1660 0 255 94 0 94 94 0 8 0 nchpl 144 2094 0 480 61 0 61 61 0 8 0 uvmvnodes 72 1798 0 0 33 0 33 33 0 8 0 vnodes 208 1798 0 0 95 0 95 95 0 8 0 namei 1024 5595 0 5595 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 3 0 2 1 0 1 1 0 8 0 scxspl 208 5908 0 5908 6 1 5 5 0 8 5 plimitpl 152 25 0 17 1 0 1 1 0 8 0 sigapl 432 384 0 368 3 1 2 3 0 8 0 futexpl 56 3153 0 3153 1 0 1 1 0 8 1 knotepl 112 76 0 57 1 0 1 1 0 8 0 kqueuepl 104 34 0 32 1 0 1 1 0 8 0 pipepl 160 316 0 297 2 0 2 2 0 8 1 fdescpl 488 385 0 368 3 0 3 3 0 8 0 filepl 152 2417 0 2315 5 0 5 5 0 8 1 lockfpl 104 53 0 52 1 0 1 1 0 8 0 lockfspl 48 21 0 20 1 0 1 1 0 8 0 sessionpl 128 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 132 0 123 1 0 1 1 0 8 0 zombiepl 144 368 0 368 1 0 1 1 0 8 1 processpl 928 400 0 368 5 0 5 5 0 8 0 procpl 648 774 0 730 5 0 5 5 0 8 1 sockpl 384 555 0 536 4 1 3 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 147 0 0 18 0 18 18 0 8 0 mtagpl 80 7 0 0 1 0 1 1 0 8 0 mbufpl 256 221 0 0 14 0 14 14 0 8 0 bufpl 280 6564 0 1310 376 0 376 376 0 8 0 anonpl 16 55858 0 35962 98 1 97 97 0 124 17 amapchunkpl 152 1917 0 1757 8 1 7 8 0 158 0 amappl16 192 2026 0 930 67 4 63 67 0 8 8 amappl15 184 143 0 139 1 0 1 1 0 8 0 amappl14 176 131 0 122 1 0 1 1 0 8 0 amappl13 168 2 0 1 1 0 1 1 0 8 0 amappl12 160 8 0 5 1 0 1 1 0 8 0 amappl11 152 61 0 46 1 0 1 1 0 8 0 amappl10 144 18 0 12 1 0 1 1 0 8 0 amappl9 136 599 0 596 1 0 1 1 0 8 0 amappl8 128 166 0 139 1 0 1 1 0 8 0 amappl7 120 38 0 35 1 0 1 1 0 8 0 amappl6 112 56 0 50 1 0 1 1 0 8 0 amappl5 104 134 0 119 1 0 1 1 0 8 0 amappl4 96 559 0 526 1 0 1 1 0 8 0 amappl3 88 279 0 268 1 0 1 1 0 8 0 amappl2 80 2257 0 2176 3 1 2 3 0 8 0 amappl1 72 17958 0 17502 26 16 10 20 0 8 0 amappl 80 1019 0 970 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 11 0 2 1 0 1 1 0 8 0 uaddrrnd 24 388 0 368 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 388 0 368 1 0 1 1 0 8 0 vmmpekpl 168 7392 0 7361 2 0 2 2 0 8 0 vmmpepl 168 54354 0 52004 141 11 130 133 0 357 27 vmsppl 368 384 0 368 2 0 2 2 0 8 0 pdppl 4096 783 0 740 6 0 6 6 0 8 0 pvpl 32 174381 0 151231 224 0 224 224 0 265 37 pmappl 232 387 0 370 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 162 0 3 5 0 5 5 0 8 0