login: 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 *329442 81219 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ca362) at panic+0x15c sys/kern/subr_prf.c:207 uvm_mapent_clone(ffff8000009f7c00,e000,10000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff8000009f7c00,0,7,fffffd803f012770,20002000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff8000009f7c00,0,7,fffffd803f012770,20002000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff80001596dc70,ffff8000ffff38c8) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a0a000,ffff8000ffff38c8) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a0a000,ffff8000ffff38c8) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803a6e01a0,c5005601,ffff800000a0a000,1,fffffd803f7c69c0,ffff8000ffff38c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d9d5f18,c5005601,ffff800000a0a000,ffff8000ffff38c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff38c8,ffff8000159625f8,ffff800015962640) at sys_ioctl+0x5b9 syscall(ffff8000159626c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x348fdc55130, 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(ffffffff821ca362) at panic+0x15c sys/kern/subr_prf.c:207 uvm_mapent_clone(ffff8000009f7c00,e000,10000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff8000009f7c00,0,7,fffffd803f012770,20002000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff8000009f7c00,0,7,fffffd803f012770,20002000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff80001596dc70,ffff8000ffff38c8) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000a0a000,ffff8000ffff38c8) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000a0a000,ffff8000ffff38c8) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803a6e01a0,c5005601,ffff800000a0a000,1,fffffd803f7c69c0,ffff8000ffff38c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802d9d5f18,c5005601,ffff800000a0a000,ffff8000ffff38c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff38c8,ffff8000159625f8,ffff800015962640) at sys_ioctl+0x5b9 syscall(ffff8000159626c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x348fdc55130, count: -11 ddb> show registers rdi 0xffffffff81431e67 db_enter+0x17 rsi 0x27af __ALIGN_SIZE+0x17af rbp 0xffff800015962020 rbx 0xffff8000159620d0 rdx 0x27b0 __ALIGN_SIZE+0x17b0 rcx 0xffff800014951000 rax 0xffff800014951000 r8 0xffff800015961fe0 r9 0x1 r10 0xffff8000009e46c0 r11 0xe1b4b1f793d5813e r12 0x3000000008 r13 0xffff800015962030 r14 0x100 r15 0x1 rip 0xffffffff81431e68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015962010 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=329442 stat=onproc flags process=0 proc=4000000 pri=58, usrpri=58, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4ee0,0xffff8000ffff2ef8 process=0xffff8000ffff6370 user=0xffff80001595d000, vmspace=0xfffffd803f012770 estcpu=17, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 81219 387596 39652 0 2 0 syz-executor.0 *81219 329442 39652 0 7 0x4000000 syz-executor.0 81219 514834 39652 0 2 0x4000000 syz-executor.0 81219 480311 39652 0 3 0x4000080 fsleep syz-executor.0 39652 523396 37389 0 3 0x82 nanosleep syz-executor.0 61623 227518 37389 0 2 0x2 syz-executor.1 37389 449461 10872 0 3 0x82 thrsleep syz-fuzzer 37389 305453 10872 0 3 0x4000082 nanosleep syz-fuzzer 37389 249088 10872 0 3 0x4000082 thrsleep syz-fuzzer 37389 488203 10872 0 3 0x4000082 thrsleep syz-fuzzer 37389 213924 10872 0 3 0x4000082 thrsleep syz-fuzzer 37389 19691 10872 0 3 0x4000082 kqread syz-fuzzer 37389 265373 10872 0 3 0x4000082 thrsleep syz-fuzzer 10872 84539 21129 0 3 0x10008a pause ksh 21129 424166 92097 0 3 0x92 select sshd 49832 496081 1 0 3 0x100083 ttyin getty 92097 512357 1 0 3 0x80 select sshd 61231 519846 44288 73 3 0x100090 kqread syslogd 44288 223565 1 0 3 0x100082 netio syslogd 61131 368819 1 77 3 0x100090 poll dhclient 26234 123970 1 0 3 0x80 poll dhclient 28720 272713 0 0 2 0x14200 zerothread 52431 285962 0 0 3 0x14200 aiodoned aiodoned 79215 248313 0 0 3 0x14200 syncer update 36833 11814 0 0 3 0x14200 cleaner cleaner 94335 29043 0 0 3 0x14200 reaper reaper 12757 304614 0 0 3 0x14200 pgdaemon pagedaemon 33327 218038 0 0 3 0x14200 bored crynlk 16570 43898 0 0 3 0x14200 bored crypto 45380 296376 0 0 3 0x40014200 acpi0 acpi0 76924 498460 0 0 3 0x14200 bored softnet 26614 193741 0 0 3 0x14200 bored systqmp 17811 492817 0 0 3 0x14200 bored systq 90084 500922 0 0 3 0x40014200 bored softclock 69991 218097 0 0 3 0x40014200 idle0 52804 500818 0 0 3 0x14200 bored smr 1 26403 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 9456 6326K 6581K 78643K 10612 0 pcb 13 8K 8K 78643K 19 0 rtable 105 3K 3K 78643K 199 0 ifaddr 44 10K 10K 78643K 44 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 18 0 iov 1 12K 16K 78643K 5 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1244 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 12 0K 0K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 56 0 proc 48 38K 63K 78643K 359 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 36 159K 159K 78643K 36 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 116 22K 22K 78643K 996 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 6 0K 0K 78643K 10 0 temp 74 3005K 3069K 78643K 3271 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 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 39 0 31 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 155 0 155 1 0 1 1 0 8 1 tcpcb 544 17 0 13 1 0 1 1 0 8 0 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 45 0 38 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 213 0 0 14 0 14 14 0 8 0 art_table 32 214 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1448 0 47 46 0 46 46 0 8 0 ffsino 240 1448 0 47 83 0 83 83 0 8 0 nchpl 144 1722 0 113 60 0 60 60 0 8 0 uvmvnodes 72 1513 0 0 28 0 28 28 0 8 0 vnodes 208 1513 0 0 80 0 80 80 0 8 0 namei 1024 4189 0 4188 1 0 1 1 0 8 0 vmpool 520 1 0 0 1 0 1 1 0 8 0 scxspl 192 4555 0 4555 2 1 1 2 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 432 227 0 214 2 0 2 2 0 8 0 futexpl 56 822 0 821 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 104 11 0 9 1 0 1 1 0 8 0 pipepl 128 152 0 131 1 0 1 1 0 8 0 fdescpl 424 228 0 214 2 0 2 2 0 8 0 filepl 120 1229 0 1130 4 0 4 4 0 8 0 lockfpl 104 10 0 8 1 0 1 1 0 8 0 lockfspl 48 6 0 4 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 71 0 64 1 0 1 1 0 8 0 zombiepl 144 214 0 214 1 0 1 1 0 8 1 processpl 864 242 0 214 4 0 4 4 0 8 0 procpl 632 281 0 244 4 0 4 4 0 8 0 sockpl 384 123 0 106 3 0 3 3 0 8 1 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 16 0 16 1 0 1 1 0 8 1 mcl2k 2048 69163 0 69124 14 2 12 12 0 8 5 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 109860 0 109777 16 3 13 13 0 8 2 bufpl 280 6227 0 1375 347 0 347 347 0 8 0 anonpl 16 41884 0 23077 78 2 76 76 0 62 0 amapchunkpl 152 1131 0 981 8 0 8 8 0 158 1 amappl16 192 1169 0 138 52 0 52 52 0 8 0 amappl15 184 58 0 52 1 0 1 1 0 8 0 amappl14 176 27 0 23 1 0 1 1 0 8 0 amappl12 160 13 0 11 2 1 1 1 0 8 0 amappl11 152 50 0 37 1 0 1 1 0 8 0 amappl10 144 28 0 25 1 0 1 1 0 8 0 amappl9 136 560 0 556 1 0 1 1 0 8 0 amappl8 128 121 0 95 1 0 1 1 0 8 0 amappl7 120 112 0 101 1 0 1 1 0 8 0 amappl6 112 54 0 48 1 0 1 1 0 8 0 amappl5 104 137 0 128 1 0 1 1 0 8 0 amappl4 96 434 0 408 1 0 1 1 0 8 0 amappl3 88 120 0 109 1 0 1 1 0 8 0 amappl2 80 1038 0 970 3 0 3 3 0 8 1 amappl1 72 13955 0 13525 27 10 17 20 0 8 8 amappl 80 522 0 478 1 0 1 1 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 229 0 214 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 229 0 214 1 0 1 1 0 8 0 vmmpekpl 168 5705 0 5682 2 0 2 2 0 8 0 vmmpepl 168 35895 0 33755 137 8 129 129 0 357 31 vmsppl 272 227 0 214 2 0 2 2 0 8 1 pdppl 4096 464 0 428 6 0 6 6 0 8 1 pvpl 32 131954 0 110155 177 0 177 177 0 265 0 pmappl 200 228 0 214 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 146 0 7 4 0 4 4 0 8 0