From owner-freebsd-net@freebsd.org Thu May 25 20:53:23 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5AD0ED822FF for ; Thu, 25 May 2017 20:53:23 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF8BC1AF0 for ; Thu, 25 May 2017 20:53:22 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [78.138.80.135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v4PKrK7O055387; Thu, 25 May 2017 22:53:20 +0200 (CEST) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id DC6FB1F2; Thu, 25 May 2017 22:53:19 +0200 (CEST) Message-ID: <5927443F.8080502@omnilan.de> Date: Thu, 25 May 2017 22:53:19 +0200 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Vincenzo Maffione CC: freebsd-net Subject: Re: [panic] netmap(4) and if_lagg(4) References: <58CBCD7A.8060301@omnilan.de> <58CC23F5.7060507@omnilan.de> <58CFA394.8070901@omnilan.de> <5926EE96.1010000@omnilan.de> <5926F9F9.4040706@omnilan.de> <592701D6.7030301@omnilan.de> <592742A8.4010207@omnilan.de> In-Reply-To: <592742A8.4010207@omnilan.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: ACL 129 matched, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [78.138.80.130]); Thu, 25 May 2017 22:53:20 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: 78.138.80.135; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2017 20:53:23 -0000 Bezüglich Harry Schmalzbauer's Nachricht vom 25.05.2017 22:46 (localtime): > Bezüglich Harry Schmalzbauer's Nachricht vom 25.05.2017 18:09 (localtime): >> Bezüglich Vincenzo Maffione's Nachricht vom 25.05.2017 17:56 (localtime): >>> I see the bug is in FreeBSD 11. I attached the simple patch to fix it. >>> Can someone commit the patch to 11/stable? >>> >>> Harry: You should be able to workaround the bug by setting >>> >>> # sysctl dev.netmap.generic_rings=1 >> I'll recompile with your patch, thanks a lot! > Hi, unfortunately I can't confirm it to be fixed. > > The kgdb output is exactly the same: > > (kgdb) list *0xffffffff80426714 > 0xffffffff80426714 is in generic_rx_handler > (/usr/local/share/deploy-tools/RELENG_11/src/sys/dev/netmap/netmap_generic.c:628). > 623 struct netmap_adapter *na = NA(ifp); > 624 struct netmap_generic_adapter *gna = (struct > netmap_generic_adapter *)na; > 625 u_int work_done; > 626 u_int rr = MBUF_RXQ(m); // receive ring number > 627 > 628 if (rr >= na->num_rx_rings) { > 629 rr = rr % na->num_rx_rings; // XXX expensive... > 630 } > 631 > 632 /* limit the size of the queue */ > Current language: auto; currently minimal > > Will double-check tomorrow that the binary really includes your patch. > Ofcourse I checked briefly and revision and buildtime check affirms it. Last note for today; late here: The patch is against sys/dev/netmap/netmap_freebsd.c (at least my interpretation of it, since f1.c wasN#t applicable), and the debugger claims sys/dev/netmap/netmap_generic.c! thnaks, -harry