From owner-freebsd-stable@freebsd.org Sun Jan 8 17:52:28 2017 Return-Path: Delivered-To: freebsd-stable@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 6672FCA54D9 for ; Sun, 8 Jan 2017 17:52:28 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 497B11084 for ; Sun, 8 Jan 2017 17:52:27 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id v08HqKvw061098 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 8 Jan 2017 09:52:20 -0800 (PST) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id v08HqKrn061097; Sun, 8 Jan 2017 09:52:20 -0800 (PST) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Sun, 8 Jan 2017 09:52:19 -0800 From: Gleb Smirnoff To: "Andrey V. Elsukov" Cc: Navdeep Parhar , Mike Tancsa , FreeBSD-STABLE Mailing List Subject: Re: coredump when loading cxgb after boot with routing daemon already running (RELENG11) Message-ID: <20170108175219.GW1647@FreeBSD.org> References: <5cefdc60-2131-1eab-32fe-74212c93cc59@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cefdc60-2131-1eab-32fe-74212c93cc59@yandex.ru> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2017 17:52:28 -0000 On Sun, Jan 08, 2017 at 04:22:33PM +0300, Andrey V. Elsukov wrote: A> On 04.01.2017 22:07, Navdeep Parhar wrote: A> > What source line in releng-11 does ifioctl+0x6dd correspond to? A> > A> > (kgdb) l *(ifioctl+0x6dd) A> > A> > This might be race where the ifnet is being created or coming up and A> > zebra pokes it in some way before it's fully ready. If that's the A> > case it could affect any ifnet. A> A> Hi, A> A> from a quick look, it seems that ifnet becomes available for any actions A> just after if_alloc() and any strange things can happen in a window A> after if_alloc() and before if_attach(). Am I right? I believe so. That's why in projects/ifnet an interface will be attached by just if_alloc(). -- Totus tuus, Glebius.