From owner-freebsd-current@FreeBSD.ORG Thu May 25 17:00:50 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDC8416AA88 for ; Thu, 25 May 2006 17:00:50 +0000 (UTC) (envelope-from gexlie@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA80943D7E for ; Thu, 25 May 2006 17:00:41 +0000 (GMT) (envelope-from gexlie@gmail.com) Received: by nz-out-0102.google.com with SMTP id m22so1796150nzf for ; Thu, 25 May 2006 10:00:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ar6mPzxmZqJm1XoAoleONE/PakLTA2AtkQRajSjJkCoDSJY3SXQZERt7G7QbGG+46k60PvcxR0b6D2D+hGzeUlo1ZgZCs6Q5NoRL1TB7XEUsQx1Fb5oiwceZs2z/Xta/YVuobCz9YiuOEncdoR5TLqoEFz96fSqGEzws25bpU6s= Received: by 10.65.20.9 with SMTP id x9mr4369048qbi; Thu, 25 May 2006 10:00:34 -0700 (PDT) Received: by 10.64.150.10 with HTTP; Thu, 25 May 2006 10:00:34 -0700 (PDT) Message-ID: <53cc795f0605251000w7aa13370mcfbf6f8e4f259f6d@mail.gmail.com> Date: Thu, 25 May 2006 21:00:34 +0400 From: sekes To: "Christian S.J. Peron" In-Reply-To: <44674BDA.7040300@FreeBSD.org> MIME-Version: 1.0 References: <53cc795f0605131026n2d9a5776jd75630e3f9505e55@mail.gmail.com> <53cc795f0605131345t718d0ad7ia7792f2ed4446037@mail.gmail.com> <20060514062825.W54242@maildrop.int.zabbadoz.net> <53cc795f0605140348u769b6b0bkc62d28652b6b3ec3@mail.gmail.com> <44674BDA.7040300@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "Bjoern A. Zeeb" , freebsd-current@freebsd.org Subject: Re: deadlock every 15-20 min 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: Thu, 25 May 2006 17:00:53 -0000 today after several weeks i upgraded the box and that's my results: in /boot/loader.conf: debug.mpsafenet=3D0 geom_eli_load=3D"YES" dummynet_load=3D"YES" ipdivert_load=3D"YES" uname -a FreeBSD xnet.nnov.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Thu May 25 09:30:5= 5 MSD 2006 root@xnet.nnov.ru:/usr/obj/usr/src/sys/GENERIC i386 during the boot everything is fine. but when i type `ppp -ddial myprovider` i'm getting this: WARNING: attempt to net_add_domain(netgraph) after domainfinalize() panic: mutex Giant not owned at /usr/src/sys/net/if.c:2209 cpuid =3D 0 KDB: enter: panic [ thread pid 12 tid 10004 ] Stopped at kdb_enter+0x2b: nop after this crash i have unload all of the firewall modules as ipfw.ko, ipdivert.ko, dummynet.ko but nothing changed. On 5/14/06, Christian S.J. Peron wrote: > > > > This is very similar to the UID/GID filtering problem. What appears to > be happening is on the inbound path, we pickup the pfil lock and attempt > to pickup the inp info lock, while on the outbound path, we hold the inp > info lock across ip_output which will try to pickup the pfil lock. > > This problem is the result of a layering violation, in reality the > firewall should not be picking up layer 4 related locks. Myself and a > few others have been discussing this problem for quite some time now, > and hopefully it won't be long before we can come up with a solution > that will make everyone happy. > > For now, you should be able to set debug.mpsafenet to 0 which will > re-enable Giant in the network stack, in theory preventing the deadlock. > > debug.mpsafenet=3D0 > > in your loader.conf > > Let me know if this helps > > > sekes wrote: > > On 5/14/06, Bjoern A. Zeeb wrote: > >> > >> On Sun, 14 May 2006, sekes wrote: > >> > >> > lock order reversal: > >> > 1st 0xc2b8b090 inp (divinp) @ > >> > /usr/src/sys/modules/ipdivert/../../netinet/ip_divert.c:336 > >> > 2nd 0xc0a44db8 PFil hook read/write mutex (PFil hook read/write > >> mutex) @ > >> > /usr/src/sys/net/pfil.c:73 > >> > >> looks almost the same as LOR #181: > >> http://sources.zabbadoz.net/freebsd/lor.html#181 > >> but without the div_output(). > >> > >> -- > >> Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT > >> > > > > yes, it is similar to my situation. may i know when it could be fixed? > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to > > "freebsd-current-unsubscribe@freebsd.org" > > > > > -- > Christian S.J. Peron > csjp@FreeBSD.ORG > FreeBSD Committer > FreeBSD Security Team > >