From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 22 15:24:19 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43C4516A4E9 for ; Wed, 22 Jun 2005 15:24:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 707D743D48 for ; Wed, 22 Jun 2005 15:24:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 68DD951226; Wed, 22 Jun 2005 11:24:16 -0400 (EDT) Date: Wed, 22 Jun 2005 11:24:16 -0400 From: Kris Kennaway To: GiZmen Message-ID: <20050622152416.GA18990@xor.obsecurity.org> References: <20050620175031.GA50395@procent.t2.ds.pwr.wroc.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <20050620175031.GA50395@procent.t2.ds.pwr.wroc.pl> User-Agent: Mutt/1.4.2.1i Cc: hackers@freebsd.org Subject: Re: instability with mount_nullfs and jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 15:24:19 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 20, 2005 at 07:50:31PM +0200, GiZmen wrote: > hi, >=20 > I have problem with mount_nullfs and jails. My system FreeBSD 5.4-STABLE > when have two jails and each of this jails has couple mount_nullfs freeze > without kernel panic. It freezes out in random times. Sometimes it can run > for couple days sometimes it freezes after couple hours. >=20 > I have mount points like below: >=20 > root@procent:~# mount > /dev/ad0s1a on / (ufs, local) > devfs on /dev (devfs, local, multilabel) > /dev/ad0s1e on /tmp (ufs, local, nodev, nosuid, nosymfollow, soft-updates= , multilabel, acls) > /dev/ad0s1f on /usr (ufs, local, nodev, soft-updates, multilabel, acls) > /dev/ad0s1d on /var (ufs, local, nodev, nosuid, soft-updates, multilabel,= acls) > /usr/local/bandwidthd/htdocs on /usr/jails/httpd/www/traf (nullfs, local,= nodev, noexec, nosuid, read-only) > /usr/local/share/pear on /usr/jails/httpd/lib/php/pear (nullfs, local, no= dev, noexec, nosuid, read-only) > /usr/local/share/smarty on /usr/jails/httpd/lib/php/smarty (nullfs, local= , nodev, noexec, nosuid, read-only) > /usr/local/lib/php/20020429 on /usr/jails/httpd/lib/php/20020429 (nullfs,= local, nodev, noexec, nosuid, read-only) > /usr/local/libexec/apache on /usr/jails/httpd/libexec/apache (nullfs, loc= al, nodev, noexec, nosuid, read-only) > /usr/local/etc/php on /usr/jails/httpd/etc/php (nullfs, local, nodev, noe= xec, nosuid, read-only) > /usr/local/bin on /usr/jails/httpd/bin (nullfs, local, nodev, nosuid, rea= d-only) > devfs on /usr/jails/httpd/dev (devfs, local, multilabel) > /dev/ad0s1g.bde on /crypto (ufs, local, noatime, nodev, nosuid, synchrono= us, soft-updates, multilabel, acls) > /dev/ad2s1a.bde on /crypto2 (ufs, local, noatime, nodev, nosuid, synchron= ous, soft-updates, multilabel, acls) > /crypto/home on /usr/jails/users/home (nullfs, local, nodev) > /crypto/home on /usr/jails/httpd/home (nullfs, local, nodev, noexec, nosu= id) >=20 > from fstab.sshd: >=20 > /bin /usr/jails/users/bin nullfs ro,nosuid,nodev = 0 0 > /sbin /usr/jails/users/sbin nullfs ro,nodev 0 = 0 > /usr/ports /usr/jails/users/usr/ports nullfs rw,nosuid,nodev 0= 0 > /usr/include /usr/jails/users/usr/include nullfs ro,nosuid,noexec,= nodev 0 0 > /usr/share /usr/jails/users/usr/share nullfs ro,nosuid,nodev,noexe= c 0 0 > /usr/lib /usr/jails/users/usr/lib nullfs ro,nosuid,nodev = 0 0 > #/lib /usr/jails/users/lib nullfs ro,nosuid,nodev,noex= ec 0 0 > #/libexec /usr/jails/users/libexec nullfs ro,nosuid,nodev = 0 0 > /usr/bin /usr/jails/users/usr/bin nullfs ro,nodev 0 = 0 > /usr/sbin /usr/jails/users/usr/sbin nullfs ro,nodev 0 = 0 > /usr/libexec /usr/jails/users/usr/libexec nullfs ro,nodev = 0 0 >=20 >=20 > When i start sshd jail with mount_nulls like above i will have crash afte= r random period of time. > Without this jail i have never had any freeze. home dir in users jail is = mount_nulled from /crypto > partition.Earlier my users jails didnt have mount_nulls, i have had copy = of each dir. I could have > uptime like 80 days. I dont know why it is so instabile? > Could any one point me somehow ? Maybe i do someting wrong or someting? Be specific about your crash. See the Developers' Handbook chapter on kernel debugging for the minimum information needed to proceed further with this. Kris --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCuYKfWry0BWjoQKURAnIMAKD5DUzZV3sAJoli+K3ktWSE4sWo0QCg3kiL CL/wxPL2/zS1H50RNsCeGP8= =0PyI -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--