From owner-freebsd-current@FreeBSD.ORG Mon Jul 23 08:36:13 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E89716A418; Mon, 23 Jul 2007 08:36:13 +0000 (UTC) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (lath.rinet.ru [195.54.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id 166BC13C465; Mon, 23 Jul 2007 08:36:12 +0000 (UTC) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (localhost [127.0.0.1]) by lath.rinet.ru (8.14.1/8.14.1) with ESMTP id l6N8JorQ001809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Jul 2007 12:19:50 +0400 (MSD) (envelope-from oleg@lath.rinet.ru) Received: (from oleg@localhost) by lath.rinet.ru (8.14.1/8.14.1/Submit) id l6N8JnCi001808; Mon, 23 Jul 2007 12:19:49 +0400 (MSD) (envelope-from oleg) Date: Mon, 23 Jul 2007 12:19:49 +0400 From: Oleg Bulyzhin To: Attilio Rao Message-ID: <20070723081949.GA1528@lath.rinet.ru> References: <46A2B49F.4030307@freebsd.org> <20070722155356.49797993@roxette> <46A36A49.2090303@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <46A36A49.2090303@FreeBSD.org> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Patrick Lamaiziere , freebsd-current@freebsd.org Subject: Re: LOR's, and a panic (ipf NAT related?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 08:36:13 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 22, 2007 at 04:31:37PM +0200, Attilio Rao wrote: > Patrick Lamaiziere wrote: > > Le Sat, 21 Jul 2007 20:36:31 -0500, > > Eric Anderson a ?crit : > >> Today, on a -CURRENT from a few days ago (running ULE 3.0), I got a > >> panic: > >> > >> panic: Trying sleep, but thread marked as sleeping prohibited > >> cpuid =3D 0 > >> >=20 > This one should have been fixed in last ULE3.0 revision, could you pleas= e=20 > update your src/sys and see if it goes away? >=20 > About the other LORs, you should see in the bz's page if they are alredy= =20 > listes, since it seems I remind at least one of them: > http://sources.zabbadoz.net/freebsd/lor.html >=20 >=20 > Thanks, > Attilio > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.or= g" This panic is not ULE related. It came from wrong sx lock usage inside ipfi= lter. I tried to use recently imported (into -current) ipfilter 4.1.23 and found = it is almost unusable (at least ipnat): it's very unstable (several hangs or deadlocks per day), it does leak memory. I've spent some time on fixing ipfilter's bugs, then sent report to ipfilte= r's author. Unfortunately, i failed to get any feedback. You can get patch here: http://people.freebsd.org/~oleg/patches/ipfilter.r70.diff I would not swear it's 100% correct, but it should make ipfilter much more stable. It does following: - sx locks converted to rwlocks. (this should be done, cause pfil(4) uses rwlocks, which are not sleepable). - fixed memory leak inside nat_getnext() - fixed several improper checks of array's boundary. - added some missing mutex_destroy() calls - ipfilter's attaching/detaching procedure changed a bit in order to fix so= me LORs. --=20 Oleg. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- oleg@rinet.ru =3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGpGSkryLc73jOEF8RAqNqAJ9TSnEhRQOzipuk947mfxRY01xiuACfVOZ5 DLsLRoxvKu3v3qaKLolw9l8= =DMlh -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--