From owner-freebsd-fs@FreeBSD.ORG Thu Mar 17 12:34:43 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9B4E106564A for ; Thu, 17 Mar 2011 12:34:43 +0000 (UTC) (envelope-from luke@digital-crocus.com) Received: from mail.digital-crocus.com (node2.digital-crocus.com [91.209.244.128]) by mx1.freebsd.org (Postfix) with ESMTP id 5D04D8FC13 for ; Thu, 17 Mar 2011 12:34:43 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dkselector; d=hybrid-logic.co.uk; h=Received:Received:Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type:Organization:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding:X-Spam-Score:X-Digital-Crocus-Maillimit:X-Authenticated-Sender:X-Complaints:X-Admin:X-Abuse; b=TroqHugbCGdpPfsevXsHAX3Z6pg139tm0DDspkfynBTeDEHckbyV4g8J7+/mFSpHB8zUvzSXMzMHy2KwEdkxnMoI3BOcDRQ1PVcCtAXoKOp4TLOjs3t1OJ0QP/1Ter+a; Received: from luke by mail.digital-crocus.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Q0COy-000N6K-HT for freebsd-fs@freebsd.org; Thu, 17 Mar 2011 12:34:04 +0000 Received: from c-76-118-178-109.hsd1.ma.comcast.net ([76.118.178.109] helo=[192.168.1.15]) by mail.digital-crocus.com with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Q0COy-000N64-1z; Thu, 17 Mar 2011 12:34:04 +0000 From: Luke Marsden To: Kostik Belousov In-Reply-To: <20110317113744.GT78089@deviant.kiev.zoral.com.ua> References: <1300334881.3837.126.camel@pow> <20110317113744.GT78089@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset="UTF-8" Organization: Hybrid Web Cluster Date: Thu, 17 Mar 2011 08:34:40 -0400 Message-ID: <1300365280.3837.129.camel@pow> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 X-Digital-Crocus-Maillimit: done X-Authenticated-Sender: luke X-Complaints: abuse@digital-crocus.com X-Admin: admin@digital-crocus.com X-Abuse: abuse@digital-crocus.com (Please include full headers in abuse reports) Cc: freebsd-fs@freebsd.org Subject: Re: Guaranteed kernel panic with ZFS + nullfs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: luke@hybrid-logic.co.uk List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 12:34:43 -0000 On Thu, 2011-03-17 at 13:37 +0200, Kostik Belousov wrote: > [Enormous Cc: list trimmed down] > On Thu, Mar 17, 2011 at 12:08:01AM -0400, Luke Marsden wrote: > > Hi all, > > > > The following script seems to cause a guaranteed kernel panic on 8.1-R, > > 8.2-R and 8-STABLE as of today (2011-03-16), with both ZFS v14/15, and > > v28 on 8.2-R with mm@ patches from 2011-03. I suspect it may also affect > > 9-CURRENT but have not tested this yet. > > > > #!/usr/local/bin/bash > > export POOL=hpool # change this to your pool name > > sudo zfs destroy -r $POOL/foo > > sudo zfs create $POOL/foo > > sudo zfs set mountpoint=/foo $POOL/foo > > sudo mount -t nullfs /foo /bar > > sudo touch /foo/baz > > ls /bar # should see baz > > sudo zfs umount -f $POOL/foo # seems okay (ls: /bar: Bad file > > descriptor) > > sudo zfs mount $POOL/foo # PANIC! > > > > Can anyone suggest a patch which fixes this? Preferably against > > 8-STABLE :-) > Please show the backtrace. > Here you go: http://lukemarsden.net/zfs-panic-1.png http://lukemarsden.net/zfs-panic-2.png Thank you! -- Best Regards, Luke Marsden CTO, Hybrid Logic Ltd. Web: http://www.hybrid-cluster.com/ Hybrid Web Cluster - cloud web hosting Phone: +441172232002 / +16179496062