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 *238382 56223 0 0 0x4000000 0 syz-executor.1 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,8000,10000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff8000009f7c00,0,7,fffffd803f012440,20008000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff8000009f7c00,0,7,fffffd803f012440,20008000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff80001594dc70,ffff8000ffff2780) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff8000009f5800,ffff8000ffff2780) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff8000009f5800,ffff8000ffff2780) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd80363835b0,c5005601,ffff8000009f5800,1,fffffd803f7c6c00,ffff8000ffff2780) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8036209878,c5005601,ffff8000009f5800,ffff8000ffff2780) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2780,ffff80001594adc8,ffff80001594ae10) at sys_ioctl+0x5b9 syscall(ffff80001594ae90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe3e1a47dba0, 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,8000,10000,0,7,7) at uvm_mapent_clone+0x1de sys/uvm/uvm_map.c:3714 uvm_share(ffff8000009f7c00,0,7,fffffd803f012440,20008000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3772 [inline] uvm_share(ffff8000009f7c00,0,7,fffffd803f012440,20008000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3674 vm_impl_init_vmx(ffff80001594dc70,ffff8000ffff2780) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1269 vm_create(ffff8000009f5800,ffff8000ffff2780) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1384 [inline] vm_create(ffff8000009f5800,ffff8000ffff2780) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1173 VOP_IOCTL(fffffd80363835b0,c5005601,ffff8000009f5800,1,fffffd803f7c6c00,ffff8000ffff2780) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8036209878,c5005601,ffff8000009f5800,ffff8000ffff2780) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2780,ffff80001594adc8,ffff80001594ae10) at sys_ioctl+0x5b9 syscall(ffff80001594ae90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe3e1a47dba0, count: -11 ddb> show registers rdi 0xffffffff81431e67 db_enter+0x17 rsi 0x262b __ALIGN_SIZE+0x162b rbp 0xffff80001594a7f0 rbx 0xffff80001594a8a0 rdx 0x262c __ALIGN_SIZE+0x162c rcx 0xffff800016d65000 rax 0xffff800016d65000 r8 0xffff80001594a7b0 r9 0x1 r10 0xffff8000009e64c0 r11 0x92779ec5fe1db9b r12 0x3000000008 r13 0xffff80001594a800 r14 0x100 r15 0x1 rip 0xffffffff81431e68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001594a7e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=238382 stat=onproc flags process=0 proc=4000000 pri=53, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2290,0xffffffff82545ea8 process=0xffff8000ffff70f0 user=0xffff800015945000, vmspace=0xfffffd803f012440 estcpu=3, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 75148 12457 96343 0 2 0 syz-executor.0 75148 81049 96343 0 3 0x4000080 fsleep syz-executor.0 56223 329372 9517 0 2 0 syz-executor.1 56223 197241 9517 0 2 0x4000000 syz-executor.1 *56223 238382 9517 0 7 0x4000000 syz-executor.1 9517 7453 55744 0 3 0x82 nanosleep syz-executor.1 96343 89679 55744 0 3 0x82 nanosleep syz-executor.0 55744 189672 70023 0 3 0x82 thrsleep syz-fuzzer 55744 75752 70023 0 3 0x4000082 thrsleep syz-fuzzer 55744 437819 70023 0 3 0x4000082 thrsleep syz-fuzzer 55744 506966 70023 0 3 0x4000082 thrsleep syz-fuzzer 55744 208526 70023 0 3 0x4000082 thrsleep syz-fuzzer 55744 352292 70023 0 3 0x4000082 thrsleep syz-fuzzer 55744 470989 70023 0 3 0x4000082 thrsleep syz-fuzzer 55744 396771 70023 0 3 0x4000082 kqread syz-fuzzer 70023 33430 14509 0 3 0x10008a pause ksh 14509 281505 11220 0 3 0x92 select sshd 77726 461579 1 0 3 0x100083 ttyin getty 11220 22747 1 0 3 0x80 select sshd 64230 186785 26101 73 3 0x100090 kqread syslogd 26101 347860 1 0 3 0x100082 netio syslogd 29724 5410 1 77 3 0x100090 poll dhclient 55213 159756 1 0 3 0x80 poll dhclient 81053 262110 0 0 2 0x14200 zerothread 73950 16276 0 0 3 0x14200 aiodoned aiodoned 77555 341019 0 0 3 0x14200 syncer update 60450 415826 0 0 3 0x14200 cleaner cleaner 55000 114869 0 0 3 0x14200 reaper reaper 42305 388523 0 0 3 0x14200 pgdaemon pagedaemon 34076 362983 0 0 3 0x14200 bored crynlk 42130 62650 0 0 3 0x14200 bored crypto 6990 178555 0 0 3 0x40014200 acpi0 acpi0 61079 94687 0 0 3 0x14200 bored softnet 21285 250249 0 0 3 0x14200 bored systqmp 53851 339729 0 0 3 0x14200 bored systq 15539 76139 0 0 3 0x40014200 bored softclock 37683 199415 0 0 3 0x40014200 idle0 16883 79275 0 0 3 0x14200 bored smr 1 25315 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 9459 6324K 6341K 78643K 10596 0 pcb 13 8K 8K 78643K 17 0 rtable 105 3K 3K 78643K 193 0 ifaddr 39 10K 10K 78643K 39 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 2K 2K 78643K 16 0 iov 0 0K 0K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1243 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 3 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 40 0 proc 47 38K 63K 78643K 358 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 90 397K 397K 78643K 90 0 exec 0 0K 1K 78643K 183 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 121 22K 22K 78643K 942 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 5 0K 0K 78643K 9 0 temp 68 3004K 3068K 78643K 3228 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 63 0 55 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 552 0 552 2 0 2 2 0 8 2 tcpcb 544 12 0 8 1 0 1 1 0 8 0 inpcb 280 46 0 39 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 212 0 0 14 0 14 14 0 8 0 art_table 32 213 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 2 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1431 0 31 46 0 46 46 0 8 0 ffsino 240 1431 0 31 83 0 83 83 0 8 0 nchpl 144 1667 0 58 60 0 60 60 0 8 0 uvmvnodes 72 1490 0 0 28 0 28 28 0 8 0 vnodes 208 1490 0 0 79 0 79 79 0 8 0 namei 1024 4077 0 4077 1 0 1 1 0 8 1 vmpool 520 1 0 0 1 0 1 1 0 8 0 scxspl 192 4371 0 4371 2 1 1 2 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 432 211 0 197 2 0 2 2 0 8 0 futexpl 56 497 0 496 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 104 5 0 2 1 0 1 1 0 8 0 pipepl 128 162 0 143 2 0 2 2 0 8 1 fdescpl 424 212 0 197 2 0 2 2 0 8 0 filepl 120 1206 0 1108 6 0 6 6 0 8 3 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 31 0 21 1 0 1 1 0 8 0 ucredpl 96 100 0 93 1 0 1 1 0 8 0 zombiepl 144 197 0 197 1 0 1 1 0 8 1 processpl 864 226 0 197 4 0 4 4 0 8 0 procpl 632 247 0 208 4 0 4 4 0 8 0 sockpl 384 128 0 111 5 0 5 5 0 8 3 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 8 0 8 1 1 0 1 0 8 0 mcl2k 2048 69204 0 69146 30 14 16 27 0 8 5 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 109785 0 109639 19 6 13 15 0 8 3 bufpl 280 6168 0 1357 344 0 344 344 0 8 0 anonpl 16 43135 0 20518 93 2 91 91 0 62 0 amapchunkpl 152 1038 0 867 9 0 9 9 0 158 2 amappl16 192 1335 0 81 63 0 63 63 0 8 0 amappl15 184 55 0 47 1 0 1 1 0 8 0 amappl14 176 25 0 23 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 9 0 7 2 1 1 1 0 8 0 amappl11 152 53 0 39 1 0 1 1 0 8 0 amappl10 144 11 0 9 1 0 1 1 0 8 0 amappl9 136 557 0 554 1 0 1 1 0 8 0 amappl8 128 117 0 90 1 0 1 1 0 8 0 amappl7 120 89 0 79 1 0 1 1 0 8 0 amappl6 112 58 0 52 1 0 1 1 0 8 0 amappl5 104 139 0 128 1 0 1 1 0 8 0 amappl4 96 423 0 394 1 0 1 1 0 8 0 amappl3 88 114 0 107 1 0 1 1 0 8 0 amappl2 80 909 0 831 3 0 3 3 0 8 1 amappl1 72 13457 0 13029 27 11 16 20 0 8 7 amappl 80 468 0 420 2 0 2 2 0 84 1 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 213 0 197 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 213 0 197 1 0 1 1 0 8 0 vmmpekpl 168 5710 0 5686 2 0 2 2 0 8 0 vmmpepl 168 34291 0 31841 139 6 133 133 0 357 26 vmsppl 272 211 0 197 2 0 2 2 0 8 1 pdppl 4096 432 0 394 6 0 6 6 0 8 1 pvpl 32 129879 0 104203 208 0 208 208 0 265 0 pmappl 200 212 0 197 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 165 0 23 5 0 5 5 0 8 0