Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2011 14:47:43 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        =?windows-1252?Q?Karli_Sj=F6berg?= <Karli.Sjoberg@slu.se>, Pawel Jakub Dawidek <pjd@FreeBSD.org>, =?windows-1252?Q?Martin_Matu=9Aka?= <mm@FreeBSD.org>
Cc:        "fs@freebsd.org" <fs@FreeBSD.org>
Subject:   Re: Consistant panics trying to access zfs filesystems replicated from Sun/Oracle appliance
Message-ID:  <4EE9EC6F.2080808@FreeBSD.org>
In-Reply-To: <558C926F-14FA-458D-BB8E-D20BA46BE6D2@slu.se>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EE9EC6F.2080808>