From owner-freebsd-net@freebsd.org Thu Mar 22 13:00:08 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 4980BF648A2 for ; Thu, 22 Mar 2018 13:00:08 +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 BE238732DF; Thu, 22 Mar 2018 13:00:07 +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 w2MD02fP065614 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Mar 2018 14:00:02 +0100 (CET) (envelope-from cognet@ci0.org) Received: (from doginou@localhost) by kanar.ci0.org (8.15.2/8.15.2/Submit) id w2MD02d7065613; Thu, 22 Mar 2018 14:00:02 +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 14:00:02 +0100 From: Olivier Houchard To: "Andrey V. Elsukov" Cc: Adrian Chadd , FreeBSD Net Subject: Re: crash with ipfw nat on mips32 Message-ID: <20180322130002.GA65574@ci0.org> References: <70a569db-fa82-f2f6-61ea-a0d1a3dd9dae@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70a569db-fa82-f2f6-61ea-a0d1a3dd9dae@yandex.ru> 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 13:00:08 -0000 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