https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242961

--- Comment #8 from Mark Johnston <[email protected]> ---
I found a bug by causing some of my desktop applications to dump core.  I
suspect this is what you are hitting.  TTM uses the plinks.q fields for its own
purpose, but we were inadvertently putting TTM-managed pages on the global page
queues.

diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index e99732028af5..971d8a0ed236 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -4013,7 +4013,7 @@ vm_page_mvqueue(vm_page_t m, const uint8_t nqueue, const
uint16_t nflag)
        KASSERT(nflag == PGA_REQUEUE || nflag == PGA_REQUEUE_HEAD,
            ("%s: invalid flags %x", __func__, nflag));

-       if ((m->oflags & VPO_UNMANAGED) != 0)
+       if ((m->oflags & VPO_UNMANAGED) != 0 || (m->flags & PG_FICTITIOUS) !=
0)
                return;

        old = vm_page_astate_load(m);

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to