From owner-freebsd-pf@FreeBSD.ORG Thu Mar 18 19:35:59 2010 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47FA4106566B for ; Thu, 18 Mar 2010 19:35:59 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id CEB3B8FC12 for ; Thu, 18 Mar 2010 19:35:57 +0000 (UTC) Received: from vampire.homelinux.org (dslb-088-066-054-235.pools.arcor-ip.net [88.66.54.235]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MLi3n-1Ns4f13WJ1-000Qsj; Thu, 18 Mar 2010 20:35:56 +0100 Received: (qmail 20394 invoked from network); 18 Mar 2010 19:35:56 -0000 Received: from f8x64.laiers.local (192.168.4.188) by mx.laiers.local with SMTP; 18 Mar 2010 19:35:56 -0000 From: Max Laier Organization: FreeBSD To: Giulio Ferro Date: Thu, 18 Mar 2010 20:35:56 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE-p2; KDE/4.3.5; amd64; ; ) References: <4B8E4850.1060104@zirakzigil.org> <201003181526.00442.max@love2party.net> <4BA25741.6070007@zirakzigil.org> In-Reply-To: <4BA25741.6070007@zirakzigil.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003182035.56363.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1/nEna8mBLZVC9+IKZvWxlwO+gdd+SHBAyNfvH whU5NHUdvHyN8AIS44DpabYtD3+wwzgZR/ltcSEQkzvEXtaEVr dRy4dhGYuypUsPbL1qIbw== Cc: freebsd-net@freebsd.org, Greg Hennessy , freebsd-pf@freebsd.org Subject: Re: PF + BRIDGE + PFSYNC causes system freezing X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2010 19:35:59 -0000 On Thursday 18 March 2010 17:39:29 Giulio Ferro wrote: > On 18.03.2010 15:26, Max Laier wrote: > > Ok, it's happened again... > and once the system freezes try to enter the debugger and get ps and > > >>>>> locks information. > >>>>> > >>>>> show allchains > > No result Okay ... so it looks like this is a live lock (not a deadlock) and it's probably caused by relooping packets. Now we "only" have to find the culprit for the loop ... can you share your setup details, again? The simpler the better. > >>>>> show alllocks > > Process 4483 (sshd) thread 0xffffff0002ded3a0 (100159) > exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0xffffff0002c79b98) locked @ > /usr/src/sys/kern/uipc_sockbuf.c:148 > Process 12 (intr) thread 0xffffff000242b3a0 (100028) > exclusive sleep mutex if_bridge (if_bridge) r = 0 (0xffffff000282d018) > locked @ /usr/src/sys/modules/if_bridge/../../net/if_bridge.c:2162 > Process 12 (intr) thread 0xffffff00023d3ae0 (100021) > exclusive slepp mutex Giant (Giant) r = 1 (0xffffffff80c6f660) locked @ > /usr/src/sys/dev/usb/usb_transfer.c:3009 > Process 12 (intr) thread 0xffffff00022603a0 (1000007) > exclusive sleep mutex carp_if (carp_if) r = 0 (0xffffff0002730360) > locked @ /usr/src/sys/netinet/ip_carp.c:881 > > >>>>> ps > > This yields a lot of lines, tell me if you want me to report something > special > > > a "bt" would help in this case to see where the bad alloc is. > > Tracing pid 12 tid 100021 td 0xffffff00023d3ae0 > kdb_enter() at kdb_enter+0x3d > ... > > Thank for your interest. > > > !DSPAM:4ba25756174452108219161! >