[Bug 265795] panic: vm_page_dequeue_deferred: page has unexpected queue state

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Aug 2022 14:57:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265795

            Bug ID: 265795
           Summary: panic: vm_page_dequeue_deferred: page has unexpected
                    queue state
           Product: Base System
           Version: 13.1-STABLE
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

While poudriere is cleaning up my server crashes with

vm_page_dequeue_deferred: page 0xffffa09ec0609d40 has unexpected queue state

Stack trace retyped from the console:

vm_page_dequeue_deferred
vm_page_free_prep
vm_page_free_toq
vm_object_page_remove
bufobj_invalbuf
vgonel
vrecycle
zfs_freebsd_inactive
vinactivef
vput_final
kern_funlinkat

I reproduced this and I have two crash dumps but kgdb hits an internal
assertion trying to debug them.

My guess is this is distantly related to bug 261538 in that the
combination of zfs deduplication and cloning creates unusual state in
the kernel.

Some notes:

1. ARM server (Ampere eMAG) running 13.1-STABLE up through eb2a9b78586.

2. Kernel is built with INVARIANTS (this is a KASSERT in vm_page.c).

3. I have a patch to ZFS to disable another assertion to fix bug 261538.

4. All of poudriere's temporary filesystems have been destroyed by the
time of the crash.

-- 
You are receiving this mail because:
You are the assignee for the bug.