From owner-freebsd-net@FreeBSD.ORG Wed Nov 23 14:06:36 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 6DE5F1065674; Wed, 23 Nov 2011 14:06:36 +0000 (UTC) (envelope-from zec@fer.hr) Received: from munja.zvne.fer.hr (munja.zvne.fer.hr [161.53.66.248]) by mx1.freebsd.org (Postfix) with ESMTP id E99B38FC0A; Wed, 23 Nov 2011 14:06:35 +0000 (UTC) Received: from sluga.fer.hr ([161.53.66.244]) by munja.zvne.fer.hr with Microsoft SMTPSVC(6.0.3790.4675); Wed, 23 Nov 2011 14:54:29 +0100 Received: from localhost ([161.53.19.8]) by sluga.fer.hr with Microsoft SMTPSVC(6.0.3790.4675); Wed, 23 Nov 2011 14:54:29 +0100 From: Marko Zec To: freebsd-net@freebsd.org Date: Wed, 23 Nov 2011 14:53:37 +0100 User-Agent: KMail/1.9.10 References: <4EC63D37.4050105@gmx.com> <20111123112204.GY96616@glebius.int.ru> <4ECCF257.9090801@gmx.com> In-Reply-To: <4ECCF257.9090801@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201111231453.37900.zec@fer.hr> X-OriginalArrivalTime: 23 Nov 2011 13:54:29.0516 (UTC) FILETIME=[6BA114C0:01CCA9E7] Cc: Nikos Vassiliadis 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: Wed, 23 Nov 2011 14:06:36 -0000 On Wednesday 23 November 2011 14:17:11 Nikos Vassiliadis wrote: > On 11/23/2011 1:22 PM, Gleb Smirnoff wrote: > > I'd suspect VIMAGE. Can you please try w/o it and if it appears to be > > VIMAGE-related, then please file a PR. > > It seems VIMAGE related. I'll ask at virtualization@. =46rom the backtrace it looks like the curvnet context is not properly set = in a=20 timer-driven call graph originating at lagg_port_setlladdr(). Perhaps this (untested) patch could help: =2D-- //depot/user/zec/vimage_8/src/sys/net/if_lagg.c 2011-09-06=20 05:45:07.000000000 0000 +++ /u/marko/p4/zec/vimage_8/src/sys/net/if_lagg.c 2011-09-06=20 05:45:07.000000000 0000 @@ -468,7 +468,9 @@ ifp =3D llq->llq_ifp; =20 /* Set the link layer address */ + CURVNET_SET(ifp->if_vnet); error =3D if_setlladdr(ifp, llq->llq_lladdr, ETHER_ADDR_LEN= ); + CURVNET_RESTORE(); if (error) printf("%s: setlladdr failed on %s\n", __func__, ifp->if_xname);