From owner-freebsd-fs@FreeBSD.ORG Sun Dec 18 13:10:05 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 B889D106564A; Sun, 18 Dec 2011 13:10:05 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 586008FC12; Sun, 18 Dec 2011 13:10:05 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id 40806EA6; Sun, 18 Dec 2011 13:53:18 +0100 (CET) Date: Sun, 18 Dec 2011 13:52:12 +0100 From: Pawel Jakub Dawidek To: Andriy Gapon Message-ID: <20111218125212.GE1685@garage.freebsd.pl> 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> <4EE9EC6F.2080808@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="idY8LE8SD6/8DnRI" Content-Disposition: inline In-Reply-To: <4EE9EC6F.2080808@FreeBSD.org> X-OS: FreeBSD 9.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Martin =?utf-8?Q?Matu=C5=A1ka?= , "fs@freebsd.org" , Karli =?iso-8859-1?Q?Sj=F6berg?= 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: Sun, 18 Dec 2011 13:10:05 -0000 --idY8LE8SD6/8DnRI Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 15, 2011 at 02:47:43PM +0200, Andriy Gapon wrote: > on 15/12/2011 13:59 Karli Sj=F6berg said the following: > > Hi all, > >=20 > > with the help of Andriy Gapon, I managed to capture what happened: > >=20 > > # cd /export/Portfolio/ci (TAB) > > http://oi40.tinypic.com/b3lsog.jpg > >=20 > > # cd /export/Portfolio/cifs_share > > http://oi42.tinypic.com/6e40op.jpg > >=20 > > # ls /export/Portfolio/cifs_share > > http://oi42.tinypic.com/23rn60j.jpg > >=20 > >=20 > > And this was Andriy=B4s response: > > Hmm, so it adds the "FreeBSD" string twice. > > I am not sure what that means, consider sharing this result with the p= ublic, > > maybe someone will have a better idea. >=20 >=20 > Ah, hah, no wonder there is a panic: > static __inline ksiddomain_t * > ksid_lookupdomain(const char *domain) > { > ksiddomain_t *kd; >=20 > kd =3D kmem_alloc(sizeof(*kd), KM_SLEEP); > strlcpy(kd->kd_name, "FreeBSD", sizeof(kd->kd_name)); > return (kd); > } >=20 >=20 > So, no matter what input domain value is, the returned ksiddomain_t is go= ing to > have kd_name of "FreeBSD". Basically it means that if an on-disk fuid_nv= list > 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 --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com --idY8LE8SD6/8DnRI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk7t4fwACgkQForvXbEpPzS9GACgkhXq2YkBld7bdCZCKTrWwbdb jF0Anjy9HvcQzV4aM9lL8jh2qokTc9J0 =wuEf -----END PGP SIGNATURE----- --idY8LE8SD6/8DnRI--