From owner-freebsd-fs@FreeBSD.ORG Thu Dec 15 12:47:50 2011 Return-Path: Delivered-To: fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82674106566B; Thu, 15 Dec 2011 12:47:50 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 63F728FC14; Thu, 15 Dec 2011 12:47:49 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA27461; Thu, 15 Dec 2011 14:47:45 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RbAiv-0002Hc-Au; Thu, 15 Dec 2011 14:47:45 +0200 Message-ID: <4EE9EC6F.2080808@FreeBSD.org> Date: Thu, 15 Dec 2011 14:47:43 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111206 Thunderbird/8.0 MIME-Version: 1.0 To: =?windows-1252?Q?Karli_Sj=F6berg?= , Pawel Jakub Dawidek , =?windows-1252?Q?Martin_Matu=9Aka?= References: <82B38DBF-DD3A-46CD-93F6-02CDB6506E05@slu.se> <73B607D0-8C3E-4980-B901-B986E060D32E@slu.se> <4EE7754D.3050605@FreeBSD.org> <558C926F-14FA-458D-BB8E-D20BA46BE6D2@slu.se> In-Reply-To: <558C926F-14FA-458D-BB8E-D20BA46BE6D2@slu.se> X-Enigmail-Version: undefined Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: "fs@freebsd.org" Subject: Re: Consistant panics trying to access zfs filesystems replicated from Sun/Oracle appliance X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2011 12:47:50 -0000 on 15/12/2011 13:59 Karli Sjöberg said the following: > Hi all, > > with the help of Andriy Gapon, I managed to capture what happened: > > # cd /export/Portfolio/ci (TAB) > http://oi40.tinypic.com/b3lsog.jpg > > # cd /export/Portfolio/cifs_share > http://oi42.tinypic.com/6e40op.jpg > > # ls /export/Portfolio/cifs_share > http://oi42.tinypic.com/23rn60j.jpg > > > And this was Andriy´s response: > Hmm, so it adds the "FreeBSD" string twice. > I am not sure what that means, consider sharing this result with the public, > maybe someone will have a better idea. Ah, hah, no wonder there is a panic: static __inline ksiddomain_t * ksid_lookupdomain(const char *domain) { ksiddomain_t *kd; kd = kmem_alloc(sizeof(*kd), KM_SLEEP); strlcpy(kd->kd_name, "FreeBSD", sizeof(kd->kd_name)); return (kd); } So, no matter what input domain value is, the returned ksiddomain_t is going to have kd_name of "FreeBSD". Basically it means that if an on-disk fuid_nvlist has more than one entry then we always are going to hit this panic. Not good. -- Andriy Gapon