MS` (+'~?: b2i8q^CB` (+'~?: b2i8q^CBMS` (+'~?: b2i8q^CB` (+'~?: b2i8q^CBpanic: amap_pp_adjref: negative reference count Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 89766 84121 0 0 0x4000000 0 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 amap_pp_adjref(fffffd803ce01328,e4,1df,1) at amap_pp_adjref+0x59e sys/uvm/uvm_amap.c:829 uvm_mapent_clone(ffff800000b21b00,0,1df000,e4000,7,7) at uvm_mapent_clone+0x14c sys/uvm/uvm_map.c:3733 uvm_share(ffff800000b21b00,0,7,fffffd803f011110,20800000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3767 [inline] uvm_share(ffff800000b21b00,0,7,fffffd803f011110,20800000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff8000179ce220,ffff8000ffff33d8) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1270 vm_create(ffff800000ae8000,ffff8000ffff33d8) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1385 [inline] vm_create(ffff800000ae8000,ffff8000ffff33d8) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1174 VOP_IOCTL(fffffd80392d6b60,c5005601,ffff800000ae8000,1,fffffd803f7c68a0,ffff8000ffff33d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802a2fc0f0,c5005601,ffff800000ae8000,ffff8000ffff33d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff33d8,ffff80001491e678,ffff80001491e6c0) at sys_ioctl+0x5b9 syscall(ffff80001491e740) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x36696faefe0, count: 3 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 amap_pp_adjref: negative reference count 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 amap_pp_adjref(fffffd803ce01328,e4,1df,1) at amap_pp_adjref+0x59e sys/uvm/uvm_amap.c:829 uvm_mapent_clone(ffff800000b21b00,0,1df000,e4000,7,7) at uvm_mapent_clone+0x14c sys/uvm/uvm_map.c:3733 uvm_share(ffff800000b21b00,0,7,fffffd803f011110,20800000,200000) at uvm_share+0x4b4 uvm_mapent_share sys/uvm/uvm_map.c:3767 [inline] uvm_share(ffff800000b21b00,0,7,fffffd803f011110,20800000,200000) at uvm_share+0x4b4 sys/uvm/uvm_map.c:3668 vm_impl_init_vmx(ffff8000179ce220,ffff8000ffff33d8) at vm_impl_init_vmx+0xf1 sys/arch/amd64/amd64/vmm.c:1270 vm_create(ffff800000ae8000,ffff8000ffff33d8) at vm_create+0x193 vm_impl_init sys/arch/amd64/amd64/vmm.c:1385 [inline] vm_create(ffff800000ae8000,ffff8000ffff33d8) at vm_create+0x193 sys/arch/amd64/amd64/vmm.c:1174 VOP_IOCTL(fffffd80392d6b60,c5005601,ffff800000ae8000,1,fffffd803f7c68a0,ffff8000ffff33d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802a2fc0f0,c5005601,ffff800000ae8000,ffff8000ffff33d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff33d8,ffff80001491e678,ffff80001491e6c0) at sys_ioctl+0x5b9 syscall(ffff80001491e740) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x36696faefe0, count: -12 ddb> show registers rdi 0 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff80001491dfd0 rbx 0xffff80001491e080 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800017ba1000 rax 0xffff800000b1e1c0 r8 0xffff80001491df90 r9 0x1 r10 0xffff800000b1e1c0 r11 0x3b51d7a6a2c9698f r12 0x3000000008 r13 0xffff80001491dfe0 r14 0x100 r15 0x1 rip 0xffffffff81d84668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001491dfc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=89766 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff82592c50 process=0xffff8000148a3458 user=0xffff800014919000, vmspace=0xfffffd803f011110 estcpu=36, cpticks=88, pctcpu=20.28 user=0, sys=11253, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 4205 313777 51605 0 2 0 syz-executor.0 4205 298653 51605 0 3 0x4000080 fsleep syz-executor.0 84121 449795 61085 0 2 0 syz-executor.1 84121 44045 61085 0 2 0x4000000 syz-executor.1 *84121 89766 61085 0 7 0x4000000 syz-executor.1 61085 183780 44060 0 2 0x482 syz-executor.1 51605 56207 44060 0 2 0x482 syz-executor.0 4007 243832 1 0 3 0x100083 ttyin getty 12778 15127 0 0 3 0x14200 bored sosplice 44060 120715 15520 0 3 0x82 thrsleep syz-fuzzer 44060 201264 15520 0 2 0x4000482 syz-fuzzer 44060 381430 15520 0 3 0x4000082 kqread syz-fuzzer 44060 115936 15520 0 3 0x4000082 thrsleep syz-fuzzer 44060 245271 15520 0 3 0x4000082 thrsleep syz-fuzzer 44060 376974 15520 0 3 0x4000082 thrsleep syz-fuzzer 44060 450243 15520 0 3 0x4000082 thrsleep syz-fuzzer 44060 467758 15520 0 2 0x4000482 syz-fuzzer 15520 217759 63696 0 3 0x10008a pause ksh 63696 454767 46752 0 3 0x92 select sshd 46752 470007 1 0 3 0x80 select sshd 82033 154110 61998 73 2 0x100490 syslogd 61998 52349 1 0 3 0x100082 netio syslogd 61769 235909 1 77 3 0x100090 poll dhclient 43650 386207 1 0 3 0x80 poll dhclient 973 448427 0 0 2 0x14200 zerothread 94681 117078 0 0 3 0x14200 aiodoned aiodoned 10087 489307 0 0 2 0x14200 update 76942 311222 0 0 3 0x14200 cleaner cleaner 75705 328276 0 0 3 0x14200 reaper reaper 31910 364708 0 0 3 0x14200 pgdaemon pagedaemon 18592 482432 0 0 3 0x14200 bored crynlk 17340 376907 0 0 3 0x14200 bored crypto 16069 253022 0 0 3 0x40014200 acpi0 acpi0 18477 129393 0 0 2 0x14200 softnet 48186 406833 0 0 2 0x14200 systqmp 10488 417733 0 0 3 0x14200 bored systq 68959 60067 0 0 2 0x40014200 softclock 26331 273645 0 0 3 0x40014200 idle0 64026 453181 0 0 3 0x14200 bored smr 1 232086 0 0 3 0x82 wait init 0 0 -1 0 2 0x10200 swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9562 7015K 8631K 78643K 18532 0 0 pcb 13 8K 8K 78643K 869 0 0 rtable 87 11K 12K 78643K 2333 0 0 ifaddr 232 28K 31K 78643K 829 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 1 2K 2K 78643K 268 0 0 iov 0 0K 32K 78643K 850 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 4273 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 48 0 0 VM map 54 13K 13K 78643K 71 0 0 sem 12 0K 1K 78643K 1419 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1794 195K 288K 78643K 12646 0 0 file desc 6 17K 25K 78643K 3415 0 0 sigio 0 0K 0K 78643K 137 0 0 proc 50 38K 63K 78643K 1480 0 0 subproc 32 2K 2K 78643K 376 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 265 0 0 in_multi 111 6K 7K 78643K 472 0 0 ether_multi 1 0K 0K 78643K 26 0 0 mrt 0 0K 0K 78643K 17 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 823 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 201 419K 419K 78643K 9536 0 0 UVM aobj 130 9K 9K 78643K 132 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 719 0 0 NDP 18 0K 0K 78643K 209 0 0 temp 159 3535K 4175K 78643K 98804 0 0 kqueue 0 0K 0K 78643K 27 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 87 0 83 1 0 1 1 0 8 0 rtpcb 80 316 0 314 1 0 1 1 0 8 0 rtentry 112 408 0 378 2 0 2 2 0 8 0 unpcb 120 3408 0 3399 7 5 2 2 0 8 1 syncache 264 26 0 26 8 8 0 1 0 8 0 tcpqe 32 191 0 191 4 4 0 1 0 8 0 tcpcb 544 1308 0 1304 5 4 1 2 0 8 0 ipq 40 63 0 63 13 13 0 1 0 8 0 ipqe 40 2037 0 2037 13 13 0 1 0 8 0 inpcb 280 4656 0 4649 12 11 1 4 0 8 0 rttmr 72 5 0 5 3 3 0 1 0 8 0 ip6q 72 3 0 3 2 2 0 1 0 8 0 ip6af 40 8 0 8 2 2 0 1 0 8 0 nd6 48 59 0 58 2 1 1 1 0 8 0 pkpcb 40 22 0 22 6 5 1 1 0 8 1 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 65 0 65 14 14 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1611 0 1456 28 15 13 15 0 8 0 art_table 32 1612 0 1456 2 0 2 2 0 8 0 art_node 16 407 0 379 1 0 1 1 0 8 0 sysvmsgpl 40 60 0 20 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1417 0 1407 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6534 0 5132 46 0 46 46 0 8 0 ffsino 240 6534 0 5132 83 0 83 83 0 8 0 nchpl 144 11577 0 11138 60 40 20 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 39004 0 39004 3 2 1 1 0 8 1 vcpupl 1984 52 0 1 7 0 7 7 0 8 0 vmpool 520 69 0 17 4 0 4 4 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 38040 0 38040 24 23 1 7 0 8 1 plimitpl 152 280 0 273 1 0 1 1 0 8 0 sigapl 432 3526 0 3512 2 0 2 2 0 8 0 futexpl 56 113486 0 113485 3 2 1 1 0 8 0 knotepl 112 785 0 766 1 0 1 1 0 8 0 kqueuepl 104 2121 0 2118 1 0 1 1 0 8 0 pipepl 128 10918 0 10899 10 8 2 3 0 8 1 fdescpl 424 3527 0 3512 2 0 2 2 0 8 0 filepl 120 37838 0 37740 26 21 5 6 0 8 1 lockfpl 104 1555 0 1554 1 0 1 1 0 8 0 lockfspl 48 400 0 399 1 0 1 1 0 8 0 sessionpl 112 38 0 28 1 0 1 1 0 8 0 pgrppl 48 168 0 158 1 0 1 1 0 8 0 ucredpl 96 3346 0 3339 1 0 1 1 0 8 0 zombiepl 144 3516 0 3516 1 0 1 1 0 8 1 processpl 864 3546 0 3516 4 0 4 4 0 8 0 procpl 632 7704 0 7664 7 3 4 5 0 8 0 sosppl 128 50 0 50 12 12 0 1 0 8 0 sockpl 384 8472 0 8454 38 33 5 6 0 8 2 mcl64k 65536 1660 0 1660 141 140 1 33 0 8 1 mcl16k 16384 56 0 56 11 11 0 1 0 8 0 mcl12k 12288 132 0 132 13 12 1 1 0 8 1 mcl9k 9216 76 0 76 12 11 1 1 0 8 1 mcl8k 8192 182 0 182 7 6 1 1 0 8 1 mcl4k 4096 546 0 546 6 5 1 1 0 8 1 mcl2k2 2112 43 0 43 16 15 1 1 0 8 1 mcl2k 2048 78346 0 78302 25 18 7 13 0 8 0 mtagpl 80 249 0 245 4 3 1 1 0 8 0 mbufpl 256 169713 0 169607 161 150 11 32 0 8 0 bufpl 256 17497 0 12174 333 0 333 333 0 8 0 anonpl 16 495062 0 468594 221 114 107 110 0 62 0 amapchunkpl 152 18237 0 17915 52 39 13 14 0 158 0 amappl16 192 23325 0 21885 201 128 73 77 0 8 1 amappl15 184 69 0 69 5 5 0 1 0 8 0 amappl14 176 717 0 712 1 0 1 1 0 8 0 amappl13 168 223 0 219 4 3 1 1 0 8 0 amappl12 160 686 0 683 1 0 1 1 0 8 0 amappl11 152 757 0 745 1 0 1 1 0 8 0 amappl10 144 302 0 301 1 0 1 1 0 8 0 amappl9 136 1150 0 1145 1 0 1 1 0 8 0 amappl8 128 784 0 731 2 0 2 2 0 8 0 amappl7 120 417 0 410 1 0 1 1 0 8 0 amappl6 112 720 0 705 1 0 1 1 0 8 0 amappl5 104 1103 0 1092 1 0 1 1 0 8 0 amappl4 96 3220 0 3187 1 0 1 1 0 8 0 amappl3 88 1463 0 1453 1 0 1 1 0 8 0 amappl2 80 26385 0 26307 3 1 2 3 0 8 0 amappl1 72 76010 0 75583 26 17 9 20 0 8 0 amappl 80 8307 0 8231 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 3596 0 3512 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3596 0 3512 1 0 1 1 0 8 0 vmmpekpl 168 43090 0 43046 3 0 3 3 0 8 0 vmmpepl 168 441954 0 439166 326 180 146 158 0 357 24 vmsppl 272 3526 0 3512 2 1 1 2 0 8 0 pdppl 4096 7198 0 7109 14 2 12 12 0 8 0 pvpl 32 1172978 0 1145168 388 156 232 244 0 265 7 pmappl 200 3595 0 3529 4 0 4 4 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 825 0 356 15 0 15 15 0 8 0