From owner-freebsd-net@freebsd.org Wed Apr 20 19:48:30 2016 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 9CA39B15CDE for ; Wed, 20 Apr 2016 19:48:30 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34E1B1A69 for ; Wed, 20 Apr 2016 19:48:30 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id v188so217309205wme.1 for ; Wed, 20 Apr 2016 12:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=e/o0n14uRrjQ2LHRxCihN3i48UPw8jkab68Fh9Ko40A=; b=hfSTwhm5Dh4UEAguOCal8VsrwKSChQ86tEWTFRBc1XvXSfMkEcrQhqo4rzhHcPG0nH rZtflSpHwRivUMR11liXulXi/xRW2U/mjwBORWRgUVFv/1fTtjYT8usszZlmchnMcg9e ishAf+SYXdYaMHbxb0DCaiGL5BdT44NckV7FDjVaGs0UeM5cA6atUlMlF3HqG9HHgq0z O9WMCfTafnJ9hwANWn9ZrLlG15TSStDCsACbjPtvZC5V7M3PzYX77S2KmzgNushcO5Kh xr6eX0vc7h2CvEQABIu3kQEKpV9Vt9hHrJjUc0pbghPdet8OL07HrHwbT0vWGqw88I9a F0xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=e/o0n14uRrjQ2LHRxCihN3i48UPw8jkab68Fh9Ko40A=; b=aTFX4LN4mW3QlpwG+UsUyRLQZJzqJ/TEppvBT8XeprgjpR3e/fR41ZRNf4wYsikf0r zcrzqU0mg55RJ84WMShPrmlosOvXyYDXPUT2t1MGq6gefv4TteLMZ2VNsKafuL7VjHag 2kePsN1lFruf8si9fqgxBG4PuqR+37dKIoHJu+Fy8nTn5KT4XaDa0Cw55a8wmEZfEqxf 3f+q6mQzJPYNdk3R98S7c5IoR/HcwlwzRCEScIj3Q4sAQmd0+i8rfY3aSEpjJSKExufc obHAkvb+NBfGzmT6rmdKsB/k6Y6YwuACS2ckH8jc6nitRHByAZeRqG28slMZ8ZeMakQN 44Yw== X-Gm-Message-State: AOPr4FVKuhminXX2wbjmhUq6d79M+N74GNGKr8KprMI3Aq57MXso05rsa+NQ2oYG4rPDDw== X-Received: by 10.194.69.106 with SMTP id d10mr10504760wju.165.1461181707826; Wed, 20 Apr 2016 12:48:27 -0700 (PDT) Received: from [10.192.166.0] (stargate.chelsio.com. [12.32.117.8]) by smtp.googlemail.com with ESMTPSA id t206sm9975639wmt.21.2016.04.20.12.48.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 12:48:27 -0700 (PDT) Subject: Re: Netmap seems to randomly cause Kernel panic on shutdown To: Steven Crangle , "freebsd-net@freebsd.org" References: From: Navdeep Parhar Message-ID: Date: Wed, 20 Apr 2016 12:48:24 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.21 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, 20 Apr 2016 19:48:30 -0000 On 04/05/2016 01:30, Steven Crangle wrote: > > Hi, > > > I'm looking for a bit of help to track down the reason behind this > kernel panic, it seems like netmap works fine for the majority of the > time, but occasionally it will cause the box to kernel panic. > > > The machine is running FreeBSD Current from a few weeks ago (Rev > 296937) Doesn't seem to be the case. The uname -a in the attachment indicates it's FreeBSD 10.2-R-p10. The stack also shows netmap_do_regif calling netmap_do_unregif and only 10.x's netmap_do_regif does that. As to the actual failure, it appears that netmap_do_regif on the cxl interface failed and something on the error path caused panic. Please try with HEAD, or try to figure out why netmap_do_regif failed. Regards, Navdeep