Re: panic: nfsv4root ref cnt cpuid = 1

From: J David <j.david.lists_at_gmail.com>
Date: Tue, 24 Sep 2024 17:32:37 UTC
On Mon, Sep 23, 2024 at 6:38 PM Rick Macklem <rick.macklem@gmail.com> wrote:
> If you can easily get the source line# for nfsrpc_lookup+0x87f, that
> could be helpful.

Sure. I did it via lldb and got nfs_clrpcops.c 1697. Your method gives
the same result.

According to the github version of 14.1-RELEASE, that's the "if (ndp
!= NULL) {" after the call to nfscl_openrelease().

Per lldb, the actual instruction at that address is:

testq  %r13, %r13

My knowledge of amd64 assembler is nearly nil, but I *think* this
corresponds to checking if ndp is null. And I think that %r13 is a
register, so I'm not sure that could cause a page fault. Maybe the
trace indicates that that's the line it would have come back to if
something in nfscl_openrelease() hadn't gone wrong?

Thanks!