Re: ZFS Page Derefrence

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Wed, 30 Aug 2023 13:56:28 UTC
In message <ZO9A-QbUEpW2Sf49@nuc>, Mark Johnston writes:
> On Tue, Aug 29, 2023 at 07:08:35PM -0700, Cy Schubert wrote:
> > Hi
> > 
> > Just got the following panic on an and64 machine running poudriere building
>  
> > i386 packages.
> > 
> > panic: vm_page_dequeue_deferred: page 0xfffffe000b222808 has unexpected 
> > queue state^M
> > [...]
> > 
> > uname reports,
> > 
> > FreeBSD bob 15.0-CURRENT FreeBSD 15.0-CURRENT amd64 1500000 #1 
> > komquats-n265075-2e8edbc285cf: Tue Aug 29 03:51:59 PDT 2023     
> > root@cwsys:/export/obj/opt/src/git-src/amd64.amd64/sys/BREAK2 amd64
> > 
> > My BREAK2 kernel removes devices I don't use and enables keystrokes to 
> > interrupt the system from the conosle (conserver). Local patches affect 
> > ipfilter only.
> > 
> > Head of core.txt:
> > 
> > __curthread () at /opt/src/git-src/sys/amd64/include/pcpu_aux.h:57
> > 57              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
>  
> > pcpu
> > ,
> > (kgdb) #0  __curthread () at /opt/src/git-src/sys/amd64/include/pcpu_aux.h:
> 5
> > 7
> > #1  doadump (textdump=textdump@entry=1)
> >     at /opt/src/git-src/sys/kern/kern_shutdown.c:405
> > #2  0xffffffff806c1b30 in kern_reboot (howto=260)
> >     at /opt/src/git-src/sys/kern/kern_shutdown.c:526
> > #3  0xffffffff806c202f in vpanic (
> >     fmt=0xffffffff80b5da55 "%s: page %p has unexpected queue state",
> >     ap=ap@entry=0xfffffe00bf55d770)
> >     at /opt/src/git-src/sys/kern/kern_shutdown.c:970
> > #4  0xffffffff806c1dd3 in panic (fmt=<unavailable>)
> >     at /opt/src/git-src/sys/kern/kern_shutdown.c:894
> > #5  0xffffffff809daab2 in vm_page_dequeue_deferred (m=<unavailable>,
> >     m@entry=0xfffffe000b222808) at /opt/src/git-src/sys/vm/vm_page.c:3790
> > #6  0xffffffff809ddfeb in vm_page_free_prep (m=m@entry=0xfffffe000b222808)
> >     at /opt/src/git-src/sys/vm/vm_page.c:3928
>
> Could you please print/x *m from this frame?

Sure.

(kgdb) print/x *m
$1 = {plinks = {q = {tqe_next = 0xffffffffffffffff, 
      tqe_prev = 0xffffffffffffffff}, s = {ss = {
        sle_next = 0xffffffffffffffff}}, memguard = {p = 
0xffffffffffffffff,
      v = 0xffffffffffffffff}, uma = {slab = 0xffffffffffffffff, 
      zone = 0xffffffffffffffff}}, listq = {tqe_next = 0xffffffffffffffff, 
    tqe_prev = 0xffffffffffffffff}, object = 0x0, pindex = 0x572c, 
  phys_addr = 0x1b67d5000, md = {pv_list = {tqh_first = 0x0, 
      tqh_last = 0xfffffe000b222840}, pv_gen = 0xf4a, pat_mode = 0x6}, 
  ref_count = 0x0, busy_lock = 0xfffffffe, a = {{flags = 0x10, queue = 
0xff,
      act_count = 0x0}, _bits = 0xff0010}, order = 0xd, pool = 0x0, 
  flags = 0x1, oflags = 0x0, psind = 0x0, segind = 0x5, valid = 0xff, 
  dirty = 0x0}
(kgdb) 


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e^(i*pi)+1=0