From owner-freebsd-fs@freebsd.org Sun Sep 1 13:19:29 2019 Return-Path: Delivered-To: freebsd-fs@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 5574FDA034 for ; Sun, 1 Sep 2019 13:19:29 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Lv286fNHz4JNw for ; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id E0E08DA031; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) Delivered-To: fs@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 E0859DA02F; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 46Lv285KGgz4JNr; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-oi1-x22c.google.com with SMTP id b80so1790822oii.7; Sun, 01 Sep 2019 06:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZzrL5hYZvv/o8oq9cvthFD/d8W+vKeBP5vtcWT2Gmmk=; b=SfxV4hsp+1e0opY9bEiahAiGr+52KzUqDYdRsL7gGWO4orI3QolA3TTq10yqHN9ZJ8 6BsDb+JU6Y2Zw2V7+ElN6pJn/lVSh9SVP2xbvcxy/ParWZIxjby3Sc99jRUPDPQF05dE KTQPRhNjC+SJgdRkwkpedIFn9JqhHfNLTPZigk1kPO1p/9FaCxKdadk4BhIBKqYsLbW4 wxtgtPx/c5M3LyVlQ939uHdY2ANHvML3qKmKcmDFqaBtl+WqJLOQYw/hTh4Cz9DFzvbI e/mWVDQyJcjxdFjm66k3wUP/s2dsGE+llL4YOcMTH8ec8oDMIK+cpcQuHCtZ0uXBuPE3 DX7Q== 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=ZzrL5hYZvv/o8oq9cvthFD/d8W+vKeBP5vtcWT2Gmmk=; b=Vjd3cNE2du0CSDPLv56M1umjiqkMhP4yeHLwtBtkeN/eMAHoum14w/6+OR686QmM8G +Gzl2wFxrlL1htOLRNFayJznVYjuAAY3UfiO6UPYd8MqbJdRnYNIyuj6yAFyKulHewRW GgdVcwd3p1t5HltO1LmJJIfSkO4Oo9w68Xn/f9t8FSGrU2ikiFhoDEbiIrCH9/oRuEko xWo5ztT+GK5cKH6JqhSvKw/03g4eOOSTt9YUHWWi7m4zr+kdkvnhabyg58euDvEEeHzn SK271OEKUcZDzS3zh02Vsmr+p0su3eI5yiHLufSquj5UoOSxEb3OYoyR+3Ovr2Gr1fjJ xH0w== X-Gm-Message-State: APjAAAV17UuihrymlCx3rNmjSaozhETxgVLdZZKolkkRXZ2IJW5WhB+f IaA0PBFfsoBLMB76Z7qReabixzRBtd6OUu+qkVa+4Q== X-Google-Smtp-Source: APXvYqx0fbi9BDO7o981kj/COQCaVeO4FkHz/aNzZwZ2Zagw4423W6lj6utgjnXd8222YRtN/60Qs9p4KG+VgEm62yM= X-Received: by 2002:a05:6808:7c1:: with SMTP id f1mr16475597oij.77.1567343966626; Sun, 01 Sep 2019 06:19:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:458d:0:0:0:0:0 with HTTP; Sun, 1 Sep 2019 06:19:25 -0700 (PDT) In-Reply-To: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> References: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> From: Mateusz Guzik Date: Sun, 1 Sep 2019 15:19:25 +0200 Message-ID: Subject: Re: panic: No vop_need_inactive To: Guido Falsi Cc: current@freebsd.org, fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 46Lv285KGgz4JNr X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.985,0] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Sep 2019 13:19:29 -0000 This is fixed in https://svnweb.freebsd.org/base?view=revision&revision=351642 On 9/1/19, Guido Falsi wrote: > Hi, > > I'm experiencing a recurring panic I can trigger repeatably. > > The machine is: > > FreeBSD 13.0-CURRENT r351604 amd64 > > The panic looks ZFS related. This machine performs mainly poudriere > builds. I also use portshaker to manage the ports tree. > > Portshaker works by downloading ports trees and overlays in zfses, then > snapshots them, clones them placing the clones in the poudriere > namespace, then modifies the ports there applying the required overlays. > > This happens to me any time I run poudriere and after the build I run > portshaker to update the ports trees, when it tries to remove the > snapshot of the freebsd base tree (which AFAIK is the base for the clone > where poudriere works). > > I'm going to try to create a more clear and detailed use case, removing > from the equation complex programs like poudriere and portshaker. > > > Here is the panic message: > > VNASSERT failed > 0xfffff800abfcbd20: tag zfs, type VDIR > usecount 0, writecount 0, refcount 1 mountedhere 0 > flags (VI_ACTIVE) > VI_LOCKed lock type zfs: UNLOCKED > name = portshaker-2019-09-01:11:04:20 > parent_id = 2 > id = 269 > panic: No vop_need_inactive(0xfffff800abfcbd20, 0xfffffe00ba39b3f0) > cpuid = 2 > time = 1567342436 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe00ba39b310 > vpanic() at vpanic+0x19d/frame 0xfffffe00ba39b360 > panic() at panic+0x43/frame 0xfffffe00ba39b3c0 > VOP_NEED_INACTIVE_APV() at VOP_NEED_INACTIVE_APV+0x8f/frame > 0xfffffe00ba39b3e0 > vputx() at vputx+0x1ae/frame 0xfffffe00ba39b440 > vfs_mount_destroy() at vfs_mount_destroy+0x14f/frame 0xfffffe00ba39b470 > dounmount() at dounmount+0x7e8/frame 0xfffffe00ba39b4d0 > zfs_unmount_snap() at zfs_unmount_snap+0xbb/frame 0xfffffe00ba39b4f0 > zfs_ioc_destroy_snaps() at zfs_ioc_destroy_snaps+0xb3/frame > 0xfffffe00ba39b540 > zfsdev_ioctl() at zfsdev_ioctl+0x54c/frame 0xfffffe00ba39b5e0 > devfs_ioctl() at devfs_ioctl+0xc9/frame 0xfffffe00ba39b630 > vn_ioctl() at vn_ioctl+0x13d/frame 0xfffffe00ba39b740 > devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe00ba39b760 > kern_ioctl() at kern_ioctl+0x1e4/frame 0xfffffe00ba39b7c0 > sys_ioctl() at sys_ioctl+0x15d/frame 0xfffffe00ba39b890 > amd64_syscall() at amd64_syscall+0x284/frame 0xfffffe00ba39b9b0 > fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00ba39b9b0 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80049f2da, rsp = > 0x7fffffffc948, rbp = 0x7fffffffc9c0 --- > KDB: enter: panic > > > Anyone can help? > > > -- > Guido Falsi > _______________________________________________ > 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