[Bug 243534] Kernel panics with "panic: invalid count 2" early during boot
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jan 23 16:05:04 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243534
Mark Johnston <markj at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markj at FreeBSD.org
--- Comment #5 from Mark Johnston <markj at 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 = TAILQ_FIRST(&obj->memq);
m->md.pmap = NULL;
+ vm_page_xbusy(m);
vm_page_unwire_noq(m);
vm_page_free_zero(m);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list