Date: Thu, 23 Jan 2020 16:05:04 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243534] Kernel panics with "panic: invalid count 2" early during boot Message-ID: <bug-243534-227-c95QLpONOY@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-243534-227@https.bugs.freebsd.org/bugzilla/> References: <bug-243534-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243534 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #5 from Mark Johnston <markj@FreeBSD.org> --- sparc64's pmap_release() is freeing pages belonging to the TSB object, and = the new vm_page_free() contract requires the caller to busy the page. diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index 46454795ad26..753bd6af5aa1 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -1301,6 +1301,7 @@ pmap_release(pmap_t pm) while (!TAILQ_EMPTY(&obj->memq)) { m =3D TAILQ_FIRST(&obj->memq); m->md.pmap =3D NULL; + vm_page_xbusy(m); vm_page_unwire_noq(m); vm_page_free_zero(m); } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243534-227-c95QLpONOY>