From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 18 11:30:15 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B83C116A41F for ; Tue, 18 Oct 2005 11:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BEF743D49 for ; Tue, 18 Oct 2005 11:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9IBUF8k041096 for ; Tue, 18 Oct 2005 11:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9IBUFsW041095; Tue, 18 Oct 2005 11:30:15 GMT (envelope-from gnats) Date: Tue, 18 Oct 2005 11:30:15 GMT Message-Id: <200510181130.j9IBUFsW041095@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gleb Smirnoff Cc: Subject: Re: misc/87421: KERNEL PANIC: ng_ether +ng_eiface + if_bridge X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gleb Smirnoff List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 11:30:15 -0000 The following reply was made to PR kern/87421; it has been noted by GNATS. From: Gleb Smirnoff To: Chris Dionissopoulos Cc: thompsa@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/87421: KERNEL PANIC: ng_ether +ng_eiface + if_bridge Date: Tue, 18 Oct 2005 15:26:02 +0400 Chris, a few questions: On Fri, Oct 14, 2005 at 05:29:26AM +0000, Chris Dionissopoulos wrote: C> FreeBSD mail.local 6.0-BETA5 FreeBSD 6.0-BETA5 #4: Fri Sep 30 19:10:42 EEST 2005 root@mail.local:/usr/obj/usr/src/sys/MAIL i386 C> >Description: C> I get a kernel panic when i'm using if_bridge bridge0 interface with 2 virtuals (ng_eiface) and one physical (xl0). C> The panic message is: C> sbflush_locked: cc 0 || mb 0xc1aa2400 || mbcnt 512 Can you please obtain a backtrace, like desribed here: http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-gdb.html C> >How-To-Repeat: C> kldload ng_ether C> kldload ng_eiface C> C> #create a bridge & 2 virtuals C> ifconfig bridge0 create C> ngctl mkpeer . eiface hook ether C> ngctl mkpeer . eiface hook ether C> # give them some settings C> ifconfig ngeth0 ether 01:02:03:04:05:00 C> ifconfig ngeth0 192.168.1.2/24 C> ifconfig ngeth1 ether 01:02:03:04:05:01 C> ifconfig ngeth1 192.168.3.2/24 C> ifconfig bridge0 addm ngeth0 addm ngeth1 addm xl0 C> ifconfig bridge0 up C> C> # Count traffic using ipfw C> ipfw add 1 count ip from any to any in recv ngeth0 C> ipfw add 1 count ip from any to any out xmit ngeth0 C> ipfw add 2 count ip from any to any in recv ngeth1 C> ipfw add 2 count ip from any to any out xmit ngeth1 C> ipfw add 3 count ip from any to any in recv bridge0 C> ipfw add 4 count ip from any to any out xmit bridge0 C> C> and wait a few seconds for kernel to panic. C> C> Traffic flows via physical(xl0) when i shoot these commands. It looks like your ngeth interfaces aren't connected to any graph. Is that true? Is it essential that ng_ether node is loaded? You don't use it in your example. Actually, a bug in interoperation between ng_ether and if_bridge has been fixed in CURRENT. It is not yet merged to RELENG_6. However, your panic looks different. That's why I am asking about backtrace. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE