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 *471551 53607 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(ffff800000ae7200,e9000,3000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3721 uvm_share(ffff800000ae7200,0,7,fffffd803f012dd0,20800000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3779 [inline] uvm_share(ffff800000ae7200,0,7,fffffd803f012dd0,20800000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3681 vm_impl_init_vmx(ffff8000148fb248,ffff8000159551d0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000add800,ffff8000159551d0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000add800,ffff8000159551d0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803d37d820,c5005601,ffff800000add800,1,fffffd803f7c6b40,ffff8000159551d0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8036215b48,c5005601,ffff800000add800,ffff8000159551d0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000159551d0,ffff800014914dd8,ffff800014914e20) at sys_ioctl+0x5b9 syscall(ffff800014914ea0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9d835a65c90, 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(ffff800000ae7200,e9000,3000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3721 uvm_share(ffff800000ae7200,0,7,fffffd803f012dd0,20800000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3779 [inline] uvm_share(ffff800000ae7200,0,7,fffffd803f012dd0,20800000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3681 vm_impl_init_vmx(ffff8000148fb248,ffff8000159551d0) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff800000add800,ffff8000159551d0) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff800000add800,ffff8000159551d0) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd803d37d820,c5005601,ffff800000add800,1,fffffd803f7c6b40,ffff8000159551d0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8036215b48,c5005601,ffff800000add800,ffff8000159551d0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000159551d0,ffff800014914dd8,ffff800014914e20) at sys_ioctl+0x5b9 syscall(ffff800014914ea0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9d835a65c90, count: -11 ddb> show registers rdi 0xffffffff81da7287 db_enter+0x17 rsi 0x23b3 __ALIGN_SIZE+0x13b3 rbp 0xffff800014914800 rbx 0xffff8000149148b0 rdx 0x23b4 __ALIGN_SIZE+0x13b4 rcx 0xffff800016b41000 rax 0xffff800016b41000 r8 0xffff8000149147c0 r9 0x1 r10 0xffff800000a75700 r11 0x464bffa7b0bb4d53 r12 0x3000000008 r13 0xffff800014914810 r14 0x100 r15 0x1 rip 0xffffffff81da7288 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149147f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=471551 stat=onproc flags process=0 proc=4000000 pri=73, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff8000159556e0,0xffffffff82573ce8 process=0xffff8000ffff6390 user=0xffff80001490f000, vmspace=0xfffffd803f012dd0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 53607 349982 99765 0 2 0 syz-executor.0 *53607 471551 99765 0 7 0x4000000 syz-executor.0 10409 395567 33312 0 2 0x2 syz-executor.1 47190 464845 0 0 3 0x14200 bored sosplice 99765 230357 33312 0 3 0x82 nanosleep syz-executor.0 33312 194028 8101 0 3 0x82 thrsleep syz-fuzzer 33312 276205 8101 0 3 0x4000082 nanosleep syz-fuzzer 33312 255962 8101 0 3 0x4000082 thrsleep syz-fuzzer 33312 94529 8101 0 3 0x4000082 thrsleep syz-fuzzer 33312 289113 8101 0 3 0x4000082 thrsleep syz-fuzzer 33312 351438 8101 0 3 0x4000082 kqread syz-fuzzer 33312 515922 8101 0 3 0x4000082 thrsleep syz-fuzzer 33312 166047 8101 0 3 0x4000082 thrsleep syz-fuzzer 8101 487583 75 0 3 0x10008a pause ksh 75 44412 14182 0 3 0x92 select sshd 9604 163990 1 0 3 0x100083 ttyin getty 14182 424325 1 0 3 0x80 select sshd 83445 42422 73913 73 3 0x100090 kqread syslogd 73913 296951 1 0 3 0x100082 netio syslogd 26216 104626 1 77 3 0x100090 poll dhclient 11308 282410 1 0 3 0x80 poll dhclient 59576 135475 0 0 2 0x14200 zerothread 53905 451551 0 0 3 0x14200 aiodoned aiodoned 97363 512844 0 0 3 0x14200 syncer update 82518 223522 0 0 3 0x14200 cleaner cleaner 65981 384551 0 0 3 0x14200 reaper reaper 12518 164655 0 0 3 0x14200 pgdaemon pagedaemon 71781 62329 0 0 3 0x14200 bored crynlk 23663 147449 0 0 3 0x14200 bored crypto 43949 142031 0 0 3 0x40014200 acpi0 acpi0 34848 426975 0 0 3 0x14200 bored softnet 91813 345591 0 0 3 0x14200 bored systqmp 35457 479393 0 0 3 0x14200 bored systq 29964 503326 0 0 3 0x40014200 bored softclock 59948 298329 0 0 3 0x40014200 idle0 99159 216491 0 0 3 0x14200 bored smr 1 86319 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 9537 6491K 7522K 78643K 11479 0 pcb 13 8K 8K 78643K 95 0 rtable 122 12K 13K 78643K 376 0 ifaddr 85 15K 15K 78643K 128 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 26 0 iov 0 0K 16K 78643K 86 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 77K 78643K 1500 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 4 1K 1K 78643K 4 0 sem 12 0K 1K 78643K 80 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 345 0 sigio 0 0K 1K 78643K 412 0 proc 48 38K 54K 78643K 420 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 50 0 in_multi 49 2K 3K 78643K 86 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 84 371K 371K 78643K 84 0 exec 0 0K 1K 78643K 218 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 31K 78643K 1696 0 UVM aobj 19 2K 2K 78643K 19 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 70 0 NDP 15 0K 0K 78643K 28 0 temp 146 3563K 3637K 78643K 28819 0 kqueue 0 0K 0K 78643K 6 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 14 0 5 1 0 1 1 0 8 0 rtpcb 96 58 0 56 1 0 1 1 0 8 0 rtentry 112 72 0 26 2 0 2 2 0 8 0 unpcb 120 357 0 349 1 0 1 1 0 8 0 syncache 280 6 0 6 2 2 0 1 0 8 0 tcpqe 32 77 0 77 2 2 0 1 0 8 0 tcpcb 640 156 0 151 2 0 2 2 0 8 1 ipq 40 6 0 6 2 1 1 1 0 8 1 ipqe 40 268 0 268 2 1 1 1 0 8 1 inpcb 280 464 0 454 2 0 2 2 0 8 1 nd6 48 7 0 4 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 ppxss 1128 3 0 3 2 2 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 322 0 90 17 2 15 15 0 8 0 art_table 32 324 0 90 2 0 2 2 0 8 0 art_node 16 71 0 28 1 0 1 1 0 8 0 sysvmsgpl 40 51 0 40 1 0 1 1 0 8 0 semupl 112 4 0 4 2 2 0 1 0 8 0 semapl 112 76 0 66 1 0 1 1 0 8 0 shmpl 112 17 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1921 0 525 46 0 46 46 0 8 0 ffsino 240 1921 0 525 83 0 83 83 0 8 0 nchpl 144 2613 0 1016 60 0 60 60 0 8 0 uvmvnodes 72 2168 0 0 40 0 40 40 0 8 0 vnodes 208 2168 0 0 115 0 115 115 0 8 0 namei 1024 7282 0 7281 2 1 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 520 2 0 0 1 0 1 1 0 8 0 scxspl 208 7856 0 7856 9 8 1 7 0 8 1 plimitpl 152 37 0 30 1 0 1 1 0 8 0 sigapl 432 512 0 499 2 0 2 2 0 8 0 futexpl 56 11399 0 11399 1 0 1 1 0 8 1 knotepl 112 86 0 67 1 0 1 1 0 8 0 kqueuepl 104 57 0 54 1 0 1 1 0 8 0 pipepl 128 1272 0 1253 4 1 3 3 0 8 2 fdescpl 424 513 0 499 2 0 2 2 0 8 0 filepl 120 4567 0 4469 7 1 6 6 0 8 3 lockfpl 104 102 0 101 1 0 1 1 0 8 0 lockfspl 48 36 0 35 1 0 1 1 0 8 0 sessionpl 128 18 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 375 0 368 1 0 1 1 0 8 0 zombiepl 144 501 0 501 2 1 1 1 0 8 1 processpl 896 530 0 501 4 0 4 4 0 8 0 procpl 648 940 0 903 4 0 4 4 0 8 0 sosppl 144 11 0 11 2 1 1 1 0 8 1 sockpl 384 885 0 867 5 0 5 5 0 8 2 mcl64k 65536 71 0 69 1 0 1 1 0 8 0 mcl16k 16384 8 0 8 2 1 1 1 0 8 1 mcl12k 12288 16 0 16 1 0 1 1 0 8 1 mcl9k 9216 9 0 9 1 0 1 1 0 8 1 mcl8k 8192 12 0 12 1 0 1 1 0 8 1 mcl4k 4096 41 0 41 1 0 1 1 0 8 1 mcl2k2 2112 4 0 4 3 2 1 1 0 8 1 mcl2k 2048 67923 0 67900 11 7 4 10 0 8 0 mtagpl 80 20 0 2 2 1 1 1 0 8 0 mbufpl 256 111874 0 111571 40 12 28 30 0 8 8 bufpl 280 7304 0 2384 352 0 352 352 0 8 0 anonpl 16 80321 0 59466 108 7 101 101 0 62 16 amapchunkpl 152 2519 0 2366 12 5 7 11 0 158 0 amappl16 192 3209 0 2051 80 13 67 71 0 8 8 amappl15 184 169 0 166 1 0 1 1 0 8 0 amappl14 176 263 0 256 1 0 1 1 0 8 0 amappl12 160 4 0 4 1 1 0 1 0 8 0 amappl11 152 50 0 39 1 0 1 1 0 8 0 amappl10 144 16 0 15 1 0 1 1 0 8 0 amappl9 136 572 0 569 1 0 1 1 0 8 0 amappl8 128 162 0 133 2 1 1 2 0 8 0 amappl7 120 38 0 34 1 0 1 1 0 8 0 amappl6 112 53 0 46 1 0 1 1 0 8 0 amappl5 104 158 0 148 1 0 1 1 0 8 0 amappl4 96 524 0 497 1 0 1 1 0 8 0 amappl3 88 555 0 545 1 0 1 1 0 8 0 amappl2 80 3342 0 3274 4 2 2 3 0 8 0 amappl1 72 18573 0 18161 27 18 9 20 0 8 0 amappl 80 1195 0 1148 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 18 0 0 1 0 1 1 0 8 0 uaddrrnd 24 515 0 499 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 515 0 499 1 0 1 1 0 8 0 vmmpekpl 168 9686 0 9660 2 0 2 2 0 8 0 vmmpepl 168 69059 0 66838 159 26 133 138 0 357 34 vmsppl 272 512 0 499 2 1 1 2 0 8 0 pdppl 4096 1036 0 999 6 1 5 6 0 8 0 pvpl 32 220325 0 196924 237 9 228 228 0 265 38 pmappl 200 514 0 499 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 173 0 27 5 0 5 5 0 8 0