Consistant panics trying to access zfs filesystems replicated
from Sun/Oracle appliance
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Dec 18 13:10:05 UTC 2011
On Thu, Dec 15, 2011 at 02:47:43PM +0200, Andriy Gapon wrote:
> 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.
Yeah. Karli, could you try the patch below?
http://people.freebsd.org/~pjd/patches/zfs_sid.h.patch
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://yomoli.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20111218/2ff88af3/attachment.pgp
More information about the freebsd-fs
mailing list