panic: amap_pp_adjref: negative reference count Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 5327 67135 32767 0x10 0 0 syz-executor * 5868 54432 0 0x2 0 1K sshd-session db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83524ff9) at panic+0x1e5 sys/kern/subr_prf.c:198 amap_pp_adjref(fffff0806c5fa018,0,2,1) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:881 amap_adjref_anons(fffff0806c5fa018,0,2,1,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1299 uvm_mapent_clone(fffff0800e125d80,c3f0462000,2000,0,3,7,5819791a73cb531e,fffff0806cf73960,ffff80003c3e9b28,fffff0800e125d80) at uvm_mapent_clone+0x17e sys/uvm/uvm_map.c:3503 uvm_mapent_forkcopy(1,fffff0800e125d80,fffff0800e1255e0,fffff0806cf73960,ffff80003c3e9b28) at uvm_mapent_forkcopy+0x6f sys/uvm/uvm_map.c:3573 uvmspace_fork(ffff80003c3d7510) at uvmspace_fork+0x299 sys/uvm/uvm_map.c:3776 process_new(ffff8000317a02b8,ffff80003c3d7510,1) at process_new+0x583 sys/kern/kern_fork.c:282 fork1(ffff8000317a0550,1,ffffffff81e3dfe0,0,ffff80003c3e9d00,0) at fork1+0x3f6 sys/kern/kern_fork.c:-1 syscall(ffff80003c3e9db0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3e9db0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e9dde9c4190, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: amap_pp_adjref: negative reference count ddb{1}> show kasan No such command ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83524ff9) at panic+0x1e5 sys/kern/subr_prf.c:198 amap_pp_adjref(fffff0806c5fa018,0,2,1) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:881 amap_adjref_anons(fffff0806c5fa018,0,2,1,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1299 uvm_mapent_clone(fffff0800e125d80,c3f0462000,2000,0,3,7,5819791a73cb531e,fffff0806cf73960,ffff80003c3e9b28,fffff0800e125d80) at uvm_mapent_clone+0x17e sys/uvm/uvm_map.c:3503 uvm_mapent_forkcopy(1,fffff0800e125d80,fffff0800e1255e0,fffff0806cf73960,ffff80003c3e9b28) at uvm_mapent_forkcopy+0x6f sys/uvm/uvm_map.c:3573 uvmspace_fork(ffff80003c3d7510) at uvmspace_fork+0x299 sys/uvm/uvm_map.c:3776 process_new(ffff8000317a02b8,ffff80003c3d7510,1) at process_new+0x583 sys/kern/kern_fork.c:282 fork1(ffff8000317a0550,1,ffffffff81e3dfe0,0,ffff80003c3e9d00,0) at fork1+0x3f6 sys/kern/kern_fork.c:-1 syscall(ffff80003c3e9db0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3e9db0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e9dde9c4190, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c3e97f0 rbx 0xffff80002999ee07 rdx 0 rcx 0xffff8000317a0550 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x62eeec97b3ff02e3 r11 0x48fed087531367b3 r12 0xffff80002999ec08 r13 0 r14 0 r15 0x1 rip 0xffffffff814ae3c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c3e97e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (sshd-session) tid=5868 pid=54432 tcnt=1 stat=onproc flags process=2 proc=0 runpri=53, usrpri=86, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045feed10,0xffff800045fee2c0 process=0xffff80003c3d7510 user=0xffff80003c3e4000, vmspace=0xfffff0800e1255e0 estcpu=36, cpticks=16452, pctcpu=0.0, user=0, sys=16452, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 67135 5327 15901 32767 7 0x10 0 syz-executor 55415 483599 63260 32767 2 0x10 0 syz-executor 55415 334108 63260 32767 3 0x10 0x4000080 fsleep syz-executor 74540 268629 6455 32767 2 0x10 0 syz-executor 74540 256180 6455 32767 3 0x10 0x4000080 fsleep syz-executor *54432 5868 50391 0 7 0x2 0 sshd-session 66817 319195 89038 32767 3 0x10 0x80 nanoslp syz-executor 66817 498760 89038 32767 3 0x10 0x4000080 ttyout syz-executor 66817 330072 89038 32767 3 0x10 0x4000080 ttyout syz-executor 66817 371101 89038 32767 3 0x10 0x4000080 fsleep syz-executor 4936 197594 80084 32767 3 0x10 0x80 nanoslp syz-executor 4936 386394 80084 32767 3 0x10 0x4000080 msgwait syz-executor 4936 136509 80084 32767 3 0x10 0x4000080 fsleep syz-executor 4936 21169 80084 32767 3 0x10 0x4000080 fsleep syz-executor 69168 82332 31600 32767 2 0x10 0 syz-executor 69168 506205 31600 32767 3 0x10 0x4000080 fsleep syz-executor 69168 361753 31600 32767 3 0x10 0x4000080 fsleep syz-executor 64049 439871 79577 32767 2 0x10 0 syz-executor 64049 387522 79577 32767 3 0x10 0x4000080 ttyout syz-executor 64049 498265 79577 32767 3 0x10 0x4000080 fsleep syz-executor 89038 41178 44274 32767 3 0x10 0x80 nanoslp syz-executor 31600 218828 20029 32767 3 0x10 0x80 nanoslp syz-executor 15901 16310 37937 32767 3 0x10 0x80 nanoslp syz-executor 63260 300197 64169 32767 3 0x10 0x80 nanoslp syz-executor 19873 323629 14444 32767 2 0x10 0 syz-executor 6455 171946 10301 32767 3 0x10 0x80 nanoslp syz-executor 79577 382492 71706 32767 3 0x10 0x80 nanoslp syz-executor 80084 459982 61926 32767 3 0x10 0x80 nanoslp syz-executor 64169 268016 25568 0 3 0x2 0x80 wait syz-executor 44274 89187 25568 0 3 0x2 0x80 wait syz-executor 20029 106116 25568 0 3 0x2 0x80 wait syz-executor 14444 265103 25568 0 3 0x2 0x80 wait syz-executor 37937 186868 25568 0 3 0x2 0x80 wait syz-executor 71706 256820 25568 0 3 0x2 0x80 wait syz-executor 10301 360299 25568 0 3 0x2 0x80 wait syz-executor 61926 164961 25568 0 3 0x2 0x80 wait syz-executor 25568 474984 25514 0 3 0x2 0x80 kqread syz-executor 25514 247080 58934 0 3 0x100002 0x88 sigsusp ksh 58934 86241 92090 0 3 0x10 0x88 kqread sshd-session 92090 501753 50391 0 3 0x12 0x80 kqread sshd-session 21120 108397 1 0 3 0x100003 0x80 ttyin getty 50391 376192 1 0 3 0 0x88 kqread sshd 44807 107077 75186 73 3 0x1100010 0x80 kqread syslogd 75186 174678 1 0 3 0x100002 0x80 sbwait syslogd 47156 491243 1 0 3 0x100000 0x80 kqread resolvd 85850 258209 36682 77 3 0x100012 0x80 kqread dhcpleased 18622 206167 36682 77 3 0x100012 0x80 kqread dhcpleased 36682 407108 1 0 3 0 0x80 kqread dhcpleased 10030 353576 0 0 3 0x14000 0x200 bored smr 50779 373656 0 0 2 0x14000 0x200 zerothread 49427 212810 0 0 3 0x14000 0x200 aiodoned aiodoned 80021 176569 0 0 3 0x14000 0x200 syncer update 69354 11707 0 0 3 0x14000 0x200 cleaner cleaner 32582 149874 0 0 3 0x14000 0x200 reaper reaper 58326 418178 0 0 3 0x14000 0x200 pgdaemon pagedaemon 89672 51893 0 0 3 0x14000 0x200 bored viomb 24604 454543 0 0 3 0x14000 0x40000200 acpi0 acpi0 88440 160658 0 0 3 0x14000 0x40000200 idle1 12070 393230 0 0 3 0x14000 0x200 bored softnet1 38028 174818 0 0 2 0x14000 0x200 softnet0 23694 57550 0 0 3 0x14000 0x200 bored systqmp 25537 517148 0 0 3 0x14000 0x200 bored systq 69078 357533 0 0 3 0x14000 0x200 tmoslp softclockmp 90783 151117 0 0 3 0x14000 0x40000200 tmoslp softclock 84566 415360 0 0 3 0x14000 0x40000200 idle0 1 445400 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 54432 (sshd-session) thread 0xffff8000317a0550 (5868) exclusive rwlock amaplk r = 0 (0xfffff0806cd65b70) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 amap_ref+0x3c sys/uvm/uvm_amap.c:1313 #3 uvm_mapent_clone+0x17e sys/uvm/uvm_map.c:3503 #4 uvm_mapent_forkcopy+0x6f sys/uvm/uvm_map.c:3573 #5 uvmspace_fork+0x299 sys/uvm/uvm_map.c:3776 #6 process_new+0x583 sys/kern/kern_fork.c:282 #7 fork1+0x3f6 sys/kern/kern_fork.c:-1 #8 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #9 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffff0800e125e80) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5170 #3 uvmspace_fork+0x12b sys/uvm/uvm_map.c:3752 #4 process_new+0x583 sys/kern/kern_fork.c:282 #5 fork1+0x3f6 sys/kern/kern_fork.c:-1 #6 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #7 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffff0800e1256e0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5170 #3 uvmspace_fork+0x44 sys/uvm/uvm_map.c:3743 #4 process_new+0x583 sys/kern/kern_fork.c:282 #5 fork1+0x3f6 sys/kern/kern_fork.c:-1 #6 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a59c40) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] #1 syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11054 12019K 12034K 166960K 12145 0 pcb 17 12K 12K 166960K 17 0 rtable 239 6K 7K 166960K 350 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 70 37K 37K 166960K 70 0 ioctlops 0 0K 4K 166960K 31 0 iov 0 0K 12K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1371 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 1K 166960K 13 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 26 97K 121K 166960K 206 0 sigio 0 0K 0K 166960K 1 0 proc 58 99K 131K 166960K 496 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 18 0 in_multi 99 6K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 364 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 272 185K 202K 166960K 3490 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 51 102K 112K 166960K 1293 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 11 0K 2K 166960K 27 0 temp 37 9118K 9122K 166960K 3807 0 kqueue 16 24K 26K 166960K 40 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 42 0 38 1 0 1 1 0 8 0 rtentry 176 112 0 1 6 0 6 6 0 8 0 unpcb 144 76 0 56 1 0 1 1 0 8 0 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpcb 736 34 0 27 1 0 1 1 0 8 0 arp 136 18 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 129 0 114 2 0 2 2 0 8 0 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 152 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 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 455 0 0 29 0 29 29 0 8 0 art_table 40 456 0 0 5 0 5 5 0 8 0 art_node 32 112 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 9 0 2 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1659 0 193 92 0 92 92 0 8 0 ffsino 296 1659 0 193 114 0 114 114 0 8 0 nchpl 144 1937 0 244 63 0 63 63 0 8 0 vnodes 216 1740 0 0 97 0 97 97 0 8 0 namei 1024 5742 0 5742 1 0 1 1 0 8 1 percpumem 16 51 0 0 1 0 1 1 0 8 0 kstatmem 264 25 0 0 2 0 2 2 0 8 0 scxspl 216 6567 0 6567 4 2 2 3 1 8 2 plimitpl 152 45 0 19 2 0 2 2 0 8 0 sigapl 424 499 0 443 7 0 7 7 0 8 0 knotepl 120 67 0 0 3 0 3 3 0 8 0 kqueuepl 224 44 0 32 1 0 1 1 0 8 0 pipepl 344 124 0 96 3 0 3 3 0 8 0 fdescpl 528 483 0 443 3 0 3 3 0 8 0 filepl 160 1811 0 1569 11 0 11 11 0 8 0 lockfpl 104 14 0 12 1 0 1 1 0 8 0 lockfspl 48 7 0 5 1 0 1 1 0 8 0 sessionpl 144 29 0 11 1 0 1 1 0 8 0 pgrppl 48 39 0 12 1 0 1 1 0 8 0 ucredpl 104 227 0 208 1 0 1 1 0 8 0 zombiepl 144 444 0 443 1 0 1 1 0 8 0 processpl 1232 499 0 443 5 0 5 5 0 8 0 procpl 664 597 0 529 6 0 6 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 752 247 0 208 5 0 5 5 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 123 0 0 15 0 15 15 0 8 0 mcl2k 2048 25 0 0 4 0 4 4 0 8 0 mextrefs 64 24 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 220 0 0 14 0 14 14 0 8 0 bufpl 272 2367 0 102 151 0 151 151 0 8 0 anonpl 32 7452 0 0 61 0 61 61 0 247 0 amapchunkpl 152 10271 0 9673 38 0 38 38 0 158 12 amappl16 200 1690 0 1665 14 0 14 14 0 8 11 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 403 0 402 1 0 1 1 0 8 0 amappl13 176 118 0 107 1 0 1 1 0 8 0 amappl12 168 727 0 689 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 144 0 134 1 0 1 1 0 8 0 amappl9 144 280 0 280 1 1 0 1 0 8 0 amappl8 136 91 0 90 1 0 1 1 0 8 0 amappl7 128 195 0 183 1 0 1 1 0 8 0 amappl6 120 149 0 148 1 0 1 1 0 8 0 amappl5 112 94 0 86 1 0 1 1 0 8 0 amappl4 104 264 0 248 1 0 1 1 0 8 0 amappl3 96 1689 0 1579 4 1 3 3 0 8 0 amappl2 88 606 0 523 2 0 2 2 0 8 0 amappl1 80 11057 0 10395 16 0 16 16 0 8 0 amappl 88 2794 0 2593 5 0 5 5 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 72 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 483 0 443 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 483 0 443 1 0 1 1 0 8 0 vmmpekpl 168 5982 0 5952 2 0 2 2 0 8 0 vmmpepl 168 40906 0 38583 103 0 103 103 0 357 2 vmsppl 488 482 0 443 7 1 6 6 0 8 1 rwobjpl 80 15202 0 14147 25 0 25 25 0 8 1 pdppl 4096 973 0 886 105 18 87 95 0 8 0 pvpl 32 15694 0 0 127 0 127 127 0 265 0 pmappl 256 482 0 443 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 427 0 21 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83915ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83a59440) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a59440) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff83a59440) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a59440) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff80003c42bb40) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c42bb40) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7547e13afcb0, count: 5 ddb{0}> trace x86_ipi_db(ffffffff83915ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83a59440) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a59440) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff83a59440) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a59440) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff80003c42bb40) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c42bb40) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7547e13afcb0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83524ff9) at panic+0x1e5 sys/kern/subr_prf.c:198 amap_pp_adjref(fffff0806c5fa018,0,2,1) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:881 amap_adjref_anons(fffff0806c5fa018,0,2,1,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1299 uvm_mapent_clone(fffff0800e125d80,c3f0462000,2000,0,3,7,5819791a73cb531e,fffff0806cf73960,ffff80003c3e9b28,fffff0800e125d80) at uvm_mapent_clone+0x17e sys/uvm/uvm_map.c:3503 uvm_mapent_forkcopy(1,fffff0800e125d80,fffff0800e1255e0,fffff0806cf73960,ffff80003c3e9b28) at uvm_mapent_forkcopy+0x6f sys/uvm/uvm_map.c:3573 uvmspace_fork(ffff80003c3d7510) at uvmspace_fork+0x299 sys/uvm/uvm_map.c:3776 process_new(ffff8000317a02b8,ffff80003c3d7510,1) at process_new+0x583 sys/kern/kern_fork.c:282 fork1(ffff8000317a0550,1,ffffffff81e3dfe0,0,ffff80003c3e9d00,0) at fork1+0x3f6 sys/kern/kern_fork.c:-1 syscall(ffff80003c3e9db0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3e9db0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e9dde9c4190, count: 4 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83524ff9) at panic+0x1e5 sys/kern/subr_prf.c:198 amap_pp_adjref(fffff0806c5fa018,0,2,1) at amap_pp_adjref+0x74c sys/uvm/uvm_amap.c:881 amap_adjref_anons(fffff0806c5fa018,0,2,1,0) at amap_adjref_anons+0x22d sys/uvm/uvm_amap.c:1299 uvm_mapent_clone(fffff0800e125d80,c3f0462000,2000,0,3,7,5819791a73cb531e,fffff0806cf73960,ffff80003c3e9b28,fffff0800e125d80) at uvm_mapent_clone+0x17e sys/uvm/uvm_map.c:3503 uvm_mapent_forkcopy(1,fffff0800e125d80,fffff0800e1255e0,fffff0806cf73960,ffff80003c3e9b28) at uvm_mapent_forkcopy+0x6f sys/uvm/uvm_map.c:3573 uvmspace_fork(ffff80003c3d7510) at uvmspace_fork+0x299 sys/uvm/uvm_map.c:3776 process_new(ffff8000317a02b8,ffff80003c3d7510,1) at process_new+0x583 sys/kern/kern_fork.c:282 fork1(ffff8000317a0550,1,ffffffff81e3dfe0,0,ffff80003c3e9d00,0) at fork1+0x3f6 sys/kern/kern_fork.c:-1 syscall(ffff80003c3e9db0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3e9db0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e9dde9c4190, count: -11