From owner-freebsd-current@freebsd.org Wed Sep 2 14:53:51 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EC269C86D6 for ; Wed, 2 Sep 2015 14:53:51 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4267D10F for ; Wed, 2 Sep 2015 14:53:51 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: by mailman.ysv.freebsd.org (Postfix) id 41B9B9C86D3; Wed, 2 Sep 2015 14:53:51 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 277319C86D1 for ; Wed, 2 Sep 2015 14:53:51 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: from mail.michaelwlucas.com (mail.michaelwlucas.com [104.236.197.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC08E10D for ; Wed, 2 Sep 2015 14:53:50 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: from mail.michaelwlucas.com (localhost [127.0.0.1]) by mail.michaelwlucas.com (8.14.9/8.14.7) with ESMTP id t82EqWbs079117 for ; Wed, 2 Sep 2015 10:52:32 -0400 (EDT) (envelope-from mwlucas@mail.michaelwlucas.com) Received: (from mwlucas@localhost) by mail.michaelwlucas.com (8.14.9/8.14.7/Submit) id t82EqW0m079116 for current@freebsd.org; Wed, 2 Sep 2015 10:52:32 -0400 (EDT) (envelope-from mwlucas) Date: Wed, 2 Sep 2015 10:52:32 -0400 From: "Michael W. Lucas" To: current@freebsd.org Subject: Re: zfs/unionfs panic on last night's -current Message-ID: <20150902145232.GA79094@mail.michaelwlucas.com> References: <20150902144157.GA78949@mail.michaelwlucas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150902144157.GA78949@mail.michaelwlucas.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.michaelwlucas.com X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mail.michaelwlucas.com [127.0.0.1]); Wed, 02 Sep 2015 10:52:33 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 02 Sep 2015 14:53:51 -0000 I forgot the command that triggers the panic! My apologies. # cd /jails/jail1 # rmdir proc panic! The jail is not running, no procfs is mounted. On Wed, Sep 02, 2015 at 10:41:57AM -0400, Michael W. Lucas wrote: > Hi, > > I'm experimenting with unionfs for my next FreeBSD book, and found a > reproducible panic. I haven't needed to report a panic for... uh... I > don't think I've done it this century, so I might be a wee bit wrong > in what you need... please correct me if you need other info. > > I have a ZFS pool called jails, with two datasets: jails/basejail and > jails/jail1. I want jail1 mounted over basejail, at the jail1 mount > point. > > # cd jails > # mount_unionfs -o below basejail/ jail1/ > > And I get: > > panic: solaris assert: cnp->cn_namelen < sizeof(nm), file: /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c, line: 6213 > > Info: > > Dump header from device: /dev/gpt/swap0 > Architecture: amd64 > Architecture Version: 2 > Dump Length: 2351693824 > Blocksize: 512 > Dumptime: Wed Sep 2 10:23:58 2015 > Hostname: storm > Magic: FreeBSD Kernel Dump > Version String: FreeBSD 11.0-CURRENT #0 r287374: Tue Sep 1 15:31:17 EDT 2015 > root@storm:/usr/obj/usr/src/sys/GENERIC > Panic String: solaris assert: cnp->cn_namelen < sizeof(nm), file: /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c, line: 6213 > Dump Parity: 1813619135 > Bounds: 3 > Dump Status: good > > Full panic info at: http://www-old.michaelwlucas.com/core.txt.3 > but here's the top of the message. > > Unread portion of the kernel message buffer: > panic: solaris assert: cnp->cn_namelen < sizeof(nm), file: /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c, line: 6213 > cpuid = 3 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe085d0cc360 > vpanic() at vpanic+0x189/frame 0xfffffe085d0cc3e0 > panic() at panic+0x43/frame 0xfffffe085d0cc440 > assfail() at assfail+0x1a/frame 0xfffffe085d0cc450 > zfs_freebsd_lookup() at zfs_freebsd_lookup+0x47/frame 0xfffffe085d0cc590 > VOP_CACHEDLOOKUP_APV() at VOP_CACHEDLOOKUP_APV+0xf1/frame 0xfffffe085d0cc5c0 > vfs_cache_lookup() at vfs_cache_lookup+0xd6/frame 0xfffffe085d0cc620 > VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0xf1/frame 0xfffffe085d0cc650 > relookup() at relookup+0xa1/frame 0xfffffe085d0cc6b0 > unionfs_relookup() at unionfs_relookup+0x105/frame 0xfffffe085d0cc710 > unionfs_relookup_for_delete() at unionfs_relookup_for_delete+0x56/frame 0xfffffe085d0cc7a0 > unionfs_rmdir() at unionfs_rmdir+0xd1/frame 0xfffffe085d0cc800 > VOP_RMDIR_APV() at VOP_RMDIR_APV+0xf7/frame 0xfffffe085d0cc830 > kern_rmdirat() at kern_rmdirat+0x1bc/frame 0xfffffe085d0cc9a0 > amd64_syscall() at amd64_syscall+0x282/frame 0xfffffe085d0ccab0 > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe085d0ccab0 > --- syscall (137, FreeBSD ELF64, sys_rmdir), rip = 0x80089341a, rsp = 0x7fffffffe8f8, rbp = 0x7fffffffe930 --- > KDB: enter: panic > > Thanks! > ==ml > > -- > Michael W. Lucas - mwlucas@michaelwlucas.com, Twitter @mwlauthor > http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/ -- Michael W. Lucas - mwlucas@michaelwlucas.com, Twitter @mwlauthor http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/