C%­‹%Õ«Mƒ…_äÏBínÙß ¾âžÏ¦„F\œH-é¿íÅ4á­Æò¨•‚¦ª’þÕÈʼn|7X#öKBÛtá8Â*A–ݹ×/«¾ ÔÖ³ù€g²ÊÛÞè—tTÀ1¬6žo¤FFM¾ Zhz)ögü0l;ÜÅ„3½›"ápanic: amap_pp_adjref: negative reference count Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834e8a91) at panic+0x1cf sys/kern/subr_prf.c:198 amap_pp_adjref(fffffc800a1a1aa8,1,1,ffffffff) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:883 amap_adjref_anons(fffffc800a1a1aa8,1,1,ffffffff,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1301 uvm_unmap_detach(ffff80002a7b8f40,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1359 uvm_map_teardown(fffffc806ffbda18) at uvm_map_teardown+0x357 sys/uvm/uvm_map.c:2536 exit1(ffff80002a7614d0,0,e,1) at exit1+0x705 sys/kern/kern_exit.c:259 sigexit(ffff80002a7614d0,e) at sigexit+0x115 postsig(ffff80002a7614d0,e,ffff80002a7b9168) at postsig+0x686 sys/kern/kern_sig.c:1764 userret(ffff80002a7614d0) at userret+0x23e sys/kern/kern_sig.c:2208 syscall(ffff80002a7b9290) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a7b9290) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78540ba653c0, 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 *cpu0: amap_pp_adjref: negative reference count ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834e8a91) at panic+0x1cf sys/kern/subr_prf.c:198 amap_pp_adjref(fffffc800a1a1aa8,1,1,ffffffff) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:883 amap_adjref_anons(fffffc800a1a1aa8,1,1,ffffffff,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1301 uvm_unmap_detach(ffff80002a7b8f40,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1359 uvm_map_teardown(fffffc806ffbda18) at uvm_map_teardown+0x357 sys/uvm/uvm_map.c:2536 exit1(ffff80002a7614d0,0,e,1) at exit1+0x705 sys/kern/kern_exit.c:259 sigexit(ffff80002a7614d0,e) at sigexit+0x115 postsig(ffff80002a7614d0,e,ffff80002a7b9168) at postsig+0x686 sys/kern/kern_sig.c:1764 userret(ffff80002a7614d0) at userret+0x23e sys/kern/kern_sig.c:2208 syscall(ffff80002a7b9290) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a7b9290) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78540ba653c0, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a7b8cf0 rbx 0xffff800000c55630 rdx 0 rcx 0 rax 0xffff80002a7614d0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x82ec7e1ab822b044 r11 0x9fb0eb0bb5827401 r12 0 r13 0x100b8 __ALIGN_SIZE+0xf0b8 r14 0 r15 0x1 rip 0xffffffff81698165 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a7b8ce0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (sshd) tid=517780 pid=57301 tcnt=0 stat=onproc flags process=10000008 proc=2008 runpri=24, usrpri=50, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a761238,0xffff80002a761a10 process=0xffff80002a77e410 user=0xffff80002a7b4000, vmspace=0xfffffc806ffbda18 estcpu=0, cpticks=4, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 24048 78929 0 0 3 0x14000 0x280 nfsidl nfsio 74442 127383 0 0 3 0x14000 0x280 nfsidl nfsio 98484 513517 0 0 3 0x14000 0x280 nfsidl nfsio 58505 484144 0 0 3 0x14000 0x280 nfsidl nfsio 74173 31361 0 0 3 0x14000 0x280 nfsidl nfsio 77795 180562 0 0 3 0x14000 0x280 nfsidl nfsio 41165 284099 0 0 3 0x14000 0x280 nfsidl nfsio 18673 444060 0 0 3 0x14000 0x280 nfsidl nfsio 85856 41633 0 0 3 0x14000 0x280 nfsidl nfsio 75870 132902 0 0 3 0x14000 0x280 nfsidl nfsio 52346 517698 0 0 3 0x14000 0x280 nfsidl nfsio 33415 480109 0 0 3 0x14000 0x280 nfsidl nfsio 62199 57771 0 0 3 0x14000 0x280 nfsidl nfsio 89937 321813 0 0 3 0x14000 0x280 nfsidl nfsio 19784 197324 0 0 3 0x14000 0x280 nfsidl nfsio 69285 88400 0 0 3 0x14000 0x280 nfsidl nfsio 77796 404780 0 0 3 0x14000 0x280 nfsidl nfsio 68258 388818 0 0 3 0x14000 0x280 nfsidl nfsio 89851 302942 0 0 3 0x14000 0x280 nfsidl nfsio 36883 1636 0 0 3 0x14000 0x280 nfsidl nfsio 90079 401089 80593 0 2 0 0 syz-executor 90079 24380 80593 0 2 0 0x4000000 syz-executor 16574 322400 11847 0 2 0 0 syz-executor 73684 357918 57984 0 2 0x100002 0 sh 83808 471495 19518 0 2 0 0 syz-executor 83808 308956 19518 0 3 0 0x4000080 fsleep syz-executor 8573 267415 968 0 2 0 0 syz-executor 8573 148922 968 0 3 0 0x4000080 fsleep syz-executor 6336 475005 60928 0 3 0x1 0x80 nanoslp syz-executor 6336 65935 60928 0 2 0x1 0x4000000 syz-executor 6336 148712 60928 0 3 0x1 0x4000080 ttyin syz-executor 69169 327949 57279 0 2 0 0 syz-executor 69169 412027 57279 0 2 0 0x4000000 syz-executor 69169 342346 57279 0 3 0 0x4000000 inode syz-executor 69169 505973 57279 0 3 0 0x4000000 inode syz-executor 57984 377948 82023 0 3 0x2 0x80 wait syz-executor 968 230972 82023 0 3 0x2 0x80 nanoslp syz-executor 19518 315087 82023 0 2 0x2 0xc80 syz-executor 80593 499090 82023 0 2 0x2 0xc80 syz-executor 60928 57268 82023 0 2 0x2 0xc80 syz-executor 11847 434471 82023 0 2 0x2 0 syz-executor 83356 487473 82023 0 2 0x2 0 syz-executor 57279 186138 82023 0 2 0x2 0xc80 syz-executor 82023 323742 72456 0 3 0x2 0x80 kqread syz-executor 72456 229282 1 0 2 0x100002 0x88 ksh 85519 221097 44382 73 2 0x1100010 0x80 syslogd 44382 72929 1 0 2 0x100002 0x80 syslogd 37327 394446 1 0 2 0x100000 0x80 resolvd 98610 145904 25368 77 2 0x100012 0x80 dhcpleased 60259 443137 25368 77 2 0x100012 0x80 dhcpleased 25368 220846 1 0 2 0 0x80 dhcpleased 73334 429871 0 0 3 0x14000 0x200 bored smr 90734 411432 0 0 2 0x14000 0x200 zerothread 31053 245578 0 0 3 0x14000 0x200 aiodoned aiodoned 52356 81170 0 0 3 0x14000 0x200 syncer update 23535 498760 0 0 3 0x14000 0x200 cleaner cleaner 67640 38615 0 0 3 0x14000 0x200 reaper reaper 25646 220017 0 0 3 0x14000 0x200 pgdaemon pagedaemon 44889 352632 0 0 3 0x14000 0x200 bored viomb 64673 406328 0 0 3 0x14000 0x40000200 acpi0 acpi0 85085 196672 0 0 2 0x14000 0x200 softnet0 37511 216192 0 0 3 0x14000 0x200 bored systqmp 65188 383039 0 0 3 0x14000 0x200 bored systq 92368 190740 0 0 3 0x14000 0x40000200 tmoslp softclock 45881 187225 0 0 3 0x14000 0x40000200 idle0 1 390082 0 0 2 0x10000002 0x80 init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11031 12105K 12170K 166960K 12157 0 pcb 18 12K 12K 166960K 23 0 rtable 224 6K 11K 166960K 417 0 pf 33 13K 18K 166960K 53 0 ifaddr 41 7K 7K 166960K 51 0 ifgroup 52 2K 2K 166960K 60 0 sysctl 3 1K 9K 166960K 7 0 counters 34 17K 17K 166960K 36 0 ioctlops 0 0K 4K 166960K 40 0 iov 0 0K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1297 82K 82K 166960K 1405 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 200 0 proc 50 50K 124K 166960K 549 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 8 0 in_multi 89 6K 6K 166960K 113 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 390 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 195 151K 172K 166960K 3427 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 30 60K 96K 166960K 1350 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 16 0K 2K 166960K 32 0 temp 34 9106K 9170K 166960K 4043 0 kqueue 11 16K 26K 166960K 35 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 41 0 38 1 0 1 1 0 8 0 rtentry 136 125 0 23 4 0 4 4 0 8 0 unpcb 144 61 0 49 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 sackhl 24 1 0 1 1 0 1 1 0 8 1 tcpcb 736 18 0 15 1 0 1 1 0 8 0 arp 96 21 0 4 1 0 1 1 0 8 0 inpcb 328 94 0 86 2 0 2 2 0 8 1 nd6 112 27 0 6 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 12 0 11 1 0 1 1 0 8 0 pfanchor 1288 2 0 2 1 0 1 1 0 8 1 pftag 88 1 0 1 1 0 1 1 0 8 1 pfrule 1360 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 499 0 88 29 0 29 29 0 8 2 art_table 40 500 0 88 5 0 5 5 0 8 0 art_node 32 125 0 32 1 0 1 1 0 8 0 semapl 72 3 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1629 0 161 92 0 92 92 0 8 0 ffsino 256 1629 0 161 92 0 92 92 0 8 0 nchpl 144 1881 0 177 64 0 64 64 0 8 0 vnodes 216 1749 0 0 98 0 98 98 0 8 0 namei 1024 6417 0 6415 4 0 4 4 0 8 3 pfiaddrpl 120 3 0 3 1 0 1 1 0 8 1 kstatmem 264 29 0 4 2 0 2 2 0 8 0 scxspl 216 6563 0 6563 4 0 4 4 1 8 4 plimitpl 152 39 0 21 1 0 1 1 0 8 0 sigapl 424 514 0 452 7 0 7 7 0 8 0 knotepl 120 3934 0 3893 2 0 2 2 0 8 0 kqueuepl 184 32 0 24 1 0 1 1 0 8 0 pipepl 304 135 0 108 3 0 3 3 0 8 0 fdescpl 448 481 0 456 5 0 5 5 0 8 1 filepl 120 1713 0 1509 7 0 7 7 0 8 0 lockfpl 104 89 0 87 1 0 1 1 0 8 0 lockfspl 48 13 0 11 1 0 1 1 0 8 0 sessionpl 144 29 0 20 1 0 1 1 0 8 0 pgrppl 48 42 0 25 1 0 1 1 0 8 0 ucredpl 104 136 0 125 1 0 1 1 0 8 0 zombiepl 144 456 0 452 1 0 1 1 0 8 0 processpl 1152 514 0 452 5 0 5 5 0 8 0 procpl 664 589 0 519 6 0 6 6 0 8 0 sockpl 552 198 0 175 3 0 3 3 0 8 0 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2493 0 2440 13 0 13 13 0 8 6 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 179 0 178 1 0 1 1 0 8 0 mextrefs 64 55 0 54 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4505 0 4373 9 0 9 9 0 8 0 bufpl 272 2438 0 102 156 0 156 156 0 8 0 anonpl 24 78690 0 74521 33 0 33 33 0 187 4 amapchunkpl 152 9594 0 8927 28 0 28 28 0 158 0 amappl16 200 794 0 740 3 0 3 3 0 8 0 amappl15 192 3 0 3 1 0 1 1 0 8 1 amappl14 184 431 0 429 1 0 1 1 0 8 0 amappl13 176 119 0 112 1 0 1 1 0 8 0 amappl12 168 755 0 730 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 0 1 1 0 8 1 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 268 0 268 1 0 1 1 0 8 1 amappl8 136 99 0 98 1 0 1 1 0 8 0 amappl7 128 141 0 132 1 0 1 1 0 8 0 amappl6 120 164 0 162 1 0 1 1 0 8 0 amappl5 112 93 0 88 1 0 1 1 0 8 0 amappl4 104 263 0 249 1 0 1 1 0 8 0 amappl3 96 1642 0 1562 3 0 3 3 0 8 0 amappl2 88 595 0 541 2 0 2 2 0 8 0 amappl1 80 10459 0 10116 13 0 13 13 0 8 2 amappl 88 2699 0 2559 5 0 5 5 0 92 1 uvmvnodes 80 98 0 0 2 0 2 2 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 7 0 7 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 481 0 456 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 481 0 456 1 0 1 1 0 8 0 vmmpekpl 168 5866 0 5822 3 0 3 3 0 8 0 vmmpepl 168 39226 0 37837 80 0 80 80 0 357 4 vmsppl 368 480 0 455 4 0 4 4 0 8 1 rwobjpl 40 13832 0 13043 11 0 11 11 0 8 1 pdppl 4096 968 0 910 96 24 72 82 0 8 14 pvpl 32 212851 0 204326 95 0 95 95 0 265 6 pmappl 216 480 0 455 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 514 0 24 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834e8a91) at panic+0x1cf sys/kern/subr_prf.c:198 amap_pp_adjref(fffffc800a1a1aa8,1,1,ffffffff) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:883 amap_adjref_anons(fffffc800a1a1aa8,1,1,ffffffff,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1301 uvm_unmap_detach(ffff80002a7b8f40,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1359 uvm_map_teardown(fffffc806ffbda18) at uvm_map_teardown+0x357 sys/uvm/uvm_map.c:2536 exit1(ffff80002a7614d0,0,e,1) at exit1+0x705 sys/kern/kern_exit.c:259 sigexit(ffff80002a7614d0,e) at sigexit+0x115 postsig(ffff80002a7614d0,e,ffff80002a7b9168) at postsig+0x686 sys/kern/kern_sig.c:1764 userret(ffff80002a7614d0) at userret+0x23e sys/kern/kern_sig.c:2208 syscall(ffff80002a7b9290) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a7b9290) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78540ba653c0, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834e8a91) at panic+0x1cf sys/kern/subr_prf.c:198 amap_pp_adjref(fffffc800a1a1aa8,1,1,ffffffff) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:883 amap_adjref_anons(fffffc800a1a1aa8,1,1,ffffffff,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1301 uvm_unmap_detach(ffff80002a7b8f40,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1359 uvm_map_teardown(fffffc806ffbda18) at uvm_map_teardown+0x357 sys/uvm/uvm_map.c:2536 exit1(ffff80002a7614d0,0,e,1) at exit1+0x705 sys/kern/kern_exit.c:259 sigexit(ffff80002a7614d0,e) at sigexit+0x115 postsig(ffff80002a7614d0,e,ffff80002a7b9168) at postsig+0x686 sys/kern/kern_sig.c:1764 userret(ffff80002a7614d0) at userret+0x23e sys/kern/kern_sig.c:2208 syscall(ffff80002a7b9290) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a7b9290) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78540ba653c0, count: -12