From owner-freebsd-net@FreeBSD.ORG Tue Nov 22 19:48:35 2011 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 925681065670 for ; Tue, 22 Nov 2011 19:48:35 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id B86D08FC08 for ; Tue, 22 Nov 2011 19:48:34 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id pAMJmX0B011209; Tue, 22 Nov 2011 23:48:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id pAMJmXQ6011208; Tue, 22 Nov 2011 23:48:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 22 Nov 2011 23:48:33 +0400 From: Gleb Smirnoff To: Nikos Vassiliadis Message-ID: <20111122194833.GN96616@FreeBSD.org> References: <4EC63D37.4050105@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <4EC63D37.4050105@gmx.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-net@FreeBSD.org Subject: Re: arprequest triggered panic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2011 19:48:35 -0000 Nikos, On Fri, Nov 18, 2011 at 01:10:47PM +0200, Nikos Vassiliadis wrote: N> I was playing with lagg and found out a kernel panic. Here is N> the backtrace: N> > #5 0xc0a65613 in kdb_trap (type=12, code=0, tf=0xc3f1bb1c) at /usr/src/sys/kern/subr_kdb.c:625 N> > #6 0xc0dbbc1f in trap_fatal (frame=0xc3f1bb1c, eva=24) at /usr/src/sys/i386/i386/trap.c:966 N> > #7 0xc0dbbd1c in trap_pfault (frame=0xc3f1bb1c, usermode=0, eva=24) at /usr/src/sys/i386/i386/trap.c:839 N> > #8 0xc0dbc9b5 in trap (frame=0xc3f1bb1c) at /usr/src/sys/i386/i386/trap.c:558 N> > #9 0xc0da54fc in calltrap () at /usr/src/sys/i386/i386/exception.s:168 N> > #10 0xc0b496eb in arprequest (ifp=0xc42c5400, sip=0xc46625ac, tip=0xc46625ac, enaddr=0xc41d3d9b "\b") at /usr/src/sys/netinet/if_ether.c:264 N> > #11 0xc0b4acef in arp_ifinit (ifp=0xc42c5400, ifa=0xc4662500) at /usr/src/sys/netinet/if_ether.c:880 N> > #12 0xc0aea7ae in if_setlladdr (ifp=0xc42c5400, lladdr=0xc49ac204 "\b", len=6) at /usr/src/sys/net/if.c:3317 N> > #13 0xc4bb7bd3 in lagg_port_setlladdr (arg=0xc4a47b00, pending=1) at /usr/src/sys/modules/if_lagg/../../net/if_lagg.c:476 N> > #14 0xc0a730fb in taskqueue_run_locked (queue=0xc42f3400) at /usr/src/sys/kern/subr_taskqueue.c:308 N> > #15 0xc0a7321f in taskqueue_run (queue=0xc42f3400) at /usr/src/sys/kern/subr_taskqueue.c:322 N> > #16 0xc0a732d3 in taskqueue_swi_run (dummy=0x0) at /usr/src/sys/kern/subr_taskqueue.c:418 N> N> It's triggered with these commands: N> ifconfig em2 10.0.156.1/24 N> ifconfig em3 10.0.156.2/24 N> i=`ifconfig lagg create` N> ifconfig $i laggport em2 laggport em3 N> ifconfig $i 10.0.156.3/24 N> N> Just reporting, should I fill a PR? Can't reproduce this on head. May be some additional measures are needed? Traffic? Or LACP capable switch? My log: behemoth# ifconfig igb0: flags=8843 metric 0 mtu 1500 options=401bb ether 00:25:90:03:0e:fa inet6 fe80::225:90ff:fe03:efa%igb0 prefixlen 64 scopeid 0x1 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active igb1: flags=8802 metric 0 mtu 1500 options=401bb ether 00:25:90:03:0e:fb nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 behemoth# ifconfig igb0 10.0.156.1/24 behemoth# ifconfig igb1 10.0.156.2/24 behemoth# behemoth# ifconfig lagg0 create behemoth# ifconfig lagg0 laggport igb0 laggport igb1 behemoth# ifconfig lagg0 10.0.156.3/24 behemoth# ifconfig igb0: flags=8843 metric 0 mtu 1500 options=401bb ether 00:25:90:03:0e:fa inet6 fe80::225:90ff:fe03:efa%igb0 prefixlen 64 scopeid 0x1 inet 10.0.156.1 netmask 0xffffff00 broadcast 10.0.156.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active igb1: flags=8843 metric 0 mtu 1500 options=401bb ether 00:25:90:03:0e:fa inet 10.0.156.2 netmask 0xffffff00 broadcast 10.0.156.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 lagg0: flags=8843 metric 0 mtu 1500 options=401bb ether 00:25:90:03:0e:fa inet 10.0.156.3 netmask 0xffffff00 broadcast 10.0.156.255 nd6 options=29 media: Ethernet autoselect status: active laggproto failover laggport: igb1 flags=0<> laggport: igb0 flags=5 behemoth# -- Totus tuus, Glebius.