From owner-freebsd-current@freebsd.org Sun Aug 19 23:52:47 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51C54107C23C for ; Sun, 19 Aug 2018 23:52:47 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF70670634 for ; Sun, 19 Aug 2018 23:52:46 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) (Authenticated sender: mmacy) by smtp.freebsd.org (Postfix) with ESMTPSA id B58581D0F7 for ; Sun, 19 Aug 2018 23:52:46 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: by mail-io0-f169.google.com with SMTP id y3-v6so6781957ioc.5 for ; Sun, 19 Aug 2018 16:52:46 -0700 (PDT) X-Gm-Message-State: AOUpUlFVIIeUq5gyOq/kmNqhtRfaYBjeBoA34LES0XFuybEchfTcKHyz cGSiI8l6QaFD0Tw+shNa2s7MWapJ9LCEAqrezjo= X-Google-Smtp-Source: AA+uWPxLBIRwpGJxo/VTe7FH2K3BPsoV1jN1thRyK0LN5lqP6kPCyNrb4Xn5cqDJOVIhiDmTKof8NB98ptYfOj1TWiw= X-Received: by 2002:a6b:ed11:: with SMTP id n17-v6mr11823843iog.132.1534722766050; Sun, 19 Aug 2018 16:52:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Matthew Macy Date: Sun, 19 Aug 2018 16:52:34 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: panic excl->shared for an AF_LOCAL socket To: Rick Macklem Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2018 23:52:47 -0000 On Sun, Aug 19, 2018 at 4:32 PM Rick Macklem 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