From owner-freebsd-current@freebsd.org Fri Nov 6 20:58:20 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 381D62D2395; Fri, 6 Nov 2020 20:58:20 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CSXmC3tVhz4lrY; Fri, 6 Nov 2020 20:58:19 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-wm1-x331.google.com with SMTP id 23so1704911wmg.1; Fri, 06 Nov 2020 12:58:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pEHzqFu6vRpC0eTIGgFcTkZsflbf3a435dDXJy+G3us=; b=PW8V8bV2b1+IhGJ7BYqAF5zMkoz7LkCDSQX3caTMwoMWEDV1DNTcOHmi1v2sU9pNhg r/gMSOWfAWrCqhqE7xUBT/XXLnDycoZp89AbruSv2fJq1YQgLuhL1V2ABfHKbY8MDp/F cGjZ4ad7/n6cV7cYyndJDfXX7j6pdH1WdqHjSz11mjIaYKZnG7FZ2bbz+ZASDTLjoZzC aumro41tN6kwH1SItClxVB6VHLXI6aIGDGUk8j6khkS36YZJ0ppvs4+8NgJ0EfTz/N3C xbWjrJ/Qo9awXo8YO2JIKTQQTR3IdZPMpp+/XRR03KdOCCtRi6S8uTZ8dkwtlx99FxOD ntTw== X-Gm-Message-State: AOAM531WGZWGNmazG/8Ny0rdlNuJWri63gxvA3oPxUEpI9TsEw9ED1DX RfFp9iStTUasLJPI3fMjwYoDa/IULgqPl8jIxgUdEQtu X-Google-Smtp-Source: ABdhPJzv1yeAank/XGD+ykLHB2WLW9QVaXlxJuP1MBggn9t9EWaFbBRzvTSfnPYDdyE3QnLCVr96v458Sf5IeagFYLI= X-Received: by 2002:a1c:e056:: with SMTP id x83mr1510400wmg.83.1604696294763; Fri, 06 Nov 2020 12:58:14 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a5d:4c4f:0:0:0:0:0 with HTTP; Fri, 6 Nov 2020 12:58:14 -0800 (PST) In-Reply-To: <98c87b4f-4327-8a19-cf51-f3a14e42edf4@FreeBSD.org> References: <98c87b4f-4327-8a19-cf51-f3a14e42edf4@FreeBSD.org> From: Mateusz Guzik Date: Fri, 6 Nov 2020 21:58:14 +0100 Message-ID: Subject: Re: panic: VERIFY(ZFS_TEARDOWN_READ_HELD(zfsvfs)) failed To: Andriy Gapon Cc: freebsd-current@freebsd.org, freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4CSXmC3tVhz4lrY X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.98 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::331:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::331:from:127.0.2.255]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::331:from]; NEURAL_HAM_SHORT(-0.98)[-0.979]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-fs]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Fri, 06 Nov 2020 20:58:20 -0000 Note the underlying primitive was recently replaced. One immediate thing to check would be exact state of the lock. READ_HELD checks for reading only, fails if you have this write-locked, which is a plausible explanation if you are coming in from less likely codepath. iow what's the backtrace and can you print both rms->readers and rms->owner (+ curthread) On 11/6/20, Andriy Gapon wrote: > > The subject panic happens for me with r367410 when mounting root > filesystem. > The panic is in zfs_freebsd_cached_lookup -> zfs_lookup -> zfs_dirlook. > I have a picture of the screen with a little bit more details, I'll share it > later. > > -- > Andriy Gapon > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Mateusz Guzik