panic excl->shared for an AF_LOCAL socket

Matthew Macy mmacy at freebsd.org
Sun Aug 19 23:52:47 UTC 2018


On Sun, Aug 19, 2018 at 4:32 PM Rick Macklem <rmacklem at uoguelph.ca> wrote:

> Hi,
>
> PR#230752 shows a witness panic() for "excl->shared" on a vnode lock.
> In this case, the kernel RPC code is trying to do a soconnect() on an
> AF_LOCAL
> socket. The code is unp_connectat() looks like is does a straightforward
> namei()/lookup(), so I am surprised to see this.
>
> Does anyone know if AF_LOCAL (unix domain) sockets are somehow handled
> differently for namei()/lookup() which might cause this?
>
> I've requested more info from the reporter w.r.t. when this happens.
> (I'd guess when the nfsuserd is terminating or has terminated or ???)
>
> Thanks for any help with this, rick
>

I don't know what's special in this case, but I did revamp the locking
there several months back so I'll take a look next weekend.
-M


More information about the freebsd-current mailing list