From owner-freebsd-net@freebsd.org Thu Mar 22 16:15:49 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 930ECF52D93 for ; Thu, 22 Mar 2018 16:15:49 +0000 (UTC) (envelope-from cognet@ci0.org) Received: from kanar.ci0.org (kanar.ci0.org [IPv6:2001:bc8:35e6::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "sd-123398", Issuer "sd-123398" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 12B597D5A3; Thu, 22 Mar 2018 16:15:48 +0000 (UTC) (envelope-from cognet@ci0.org) Received: from kanar.ci0.org (pluxor@localhost [127.0.0.1]) by kanar.ci0.org (8.15.2/8.15.2) with ESMTPS id w2MGFiRx066986 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Mar 2018 17:15:44 +0100 (CET) (envelope-from cognet@ci0.org) Received: (from doginou@localhost) by kanar.ci0.org (8.15.2/8.15.2/Submit) id w2MGFheA066985; Thu, 22 Mar 2018 17:15:43 +0100 (CET) (envelope-from cognet@ci0.org) X-Authentication-Warning: kanar.ci0.org: doginou set sender to cognet@ci0.org using -f Date: Thu, 22 Mar 2018 17:15:43 +0100 From: Olivier Houchard To: Adrian Chadd Cc: "Andrey V. Elsukov" , FreeBSD Net Subject: Re: crash with ipfw nat on mips32 Message-ID: <20180322161543.GA66967@ci0.org> References: <70a569db-fa82-f2f6-61ea-a0d1a3dd9dae@yandex.ru> <20180322130002.GA65574@ci0.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 22 Mar 2018 16:15:49 -0000 On Thu, Mar 22, 2018 at 09:09:37AM -0700, Adrian Chadd wrote: > oh and xcompiled with gcc-6.x . > > I'm not very knowledgable with mips. Is it possible gcc wrongly generated an instruction that is not supported by mips74k ? I suppose not, or it wouldn't lead to a TLB miss. Olivier > > On 22 March 2018 at 09:09, Adrian Chadd wrote: > > I dunno yet; this is a very embedded mips74k box. :) > > > > > > -a > > > > On 22 March 2018 at 06:00, Olivier Houchard wrote: > >> On Thu, Mar 22, 2018 at 03:52:39PM +0300, Andrey V. Elsukov wrote: > >>> On 22.03.2018 10:31, Adrian Chadd wrote: > >>> > Erk. I'll go see if I can figure out what's going on. > >>> > > >>> > Thanks! This is really quite grr-y. > >>> >>> Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode) > >>> >>> [ thread pid 11 tid 100010 ] > >>> >>> Stopped at 0 > >>> >>> db> bt > >>> >>> Tracing pid 11 tid 100010 td 0x80673b40 > >>> >>> dyn_expire_states+0x13c (?,?,?,?) ra c1d08f44 sp c1247c40 sz 144 > >>> >>> dyn_tick+0x238 (0,?,?,?) ra 80214dfc sp c1247cd0 sz 120 > >>> >>> itimer_fire+0x1440 (?,?,?,?) ra 802150c0 sp c1247d48 sz 88 > >>> >>> softclock+0x9c (?,?,?,?) ra 0 sp c1247da0 sz 0 > >>> >>> db> > >>> >> > >>> >> this is not NAT related, it is ipfw's dynamic states. > >>> >> I'm not sure, but this is seems related to ConcurrencyKit. > >>> > >>> It looks like CK doesn't declare support for mips. > >>> Probably we need to make compat shim, that uses old implementation for > >>> platforms, that are not supported by CK. > >>> > >> > >> Hi, > >> > >> mips should be supported by using the compiler builtins, as is riscv. If there > >> is a crash, it is definitively a bug. Can you guys tell me which CK > >> function dies that badly ? > >> > >> Regards, > >> > >> Olivier