From owner-freebsd-current@freebsd.org Thu Jan 19 20:01:30 2017 Return-Path: Delivered-To: freebsd-current@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 76209CB8A3B for ; Thu, 19 Jan 2017 20:01:30 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-ua0-x229.google.com (mail-ua0-x229.google.com [IPv6:2607:f8b0:400c:c08::229]) (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 2B61C1D46 for ; Thu, 19 Jan 2017 20:01:30 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-ua0-x229.google.com with SMTP id i68so45007261uad.0 for ; Thu, 19 Jan 2017 12:01:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Hbe+dPRbJE2aG56v5tzcKfeE8Pz49aUEZ1w+MkTgA+Y=; b=SQsu0bONYUlrUBA1jTacVrowqdBDpJpql05XWCpuCKJgY1RsSD8QupH0rqwEIlk3lB RQ3CROzKRbV6fUMTdpLJ44Ak39o96Nh/KIqf5Rp4drBRNxhoGhXJ8SAbWdnaaYcFsup1 euYMiuv/FCcKp8ssiCRlfBMTiLeHNiiXKyjqxYsKun/ojRM7vAg1t54mzSIlIQkdDm9L lXOb92MVYs5g0w6D92lpiXLU/EXylDWQuw41i7kx9QsLqGi7kDrQ/Jd9f41rgFP3SiEi MEvTqha1dmPF/WxBeUdJLD7KvFGtpt/BYpKS+vqLeLif6I8jlHEBItYd1LPPcSJ9QYa+ +GOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Hbe+dPRbJE2aG56v5tzcKfeE8Pz49aUEZ1w+MkTgA+Y=; b=AiXjcBh/8gjXtNjthmGPGaoHfDOV302IXrll0YXWeJXeKiqdeDDW4KRfYcpT6mfbPR 82Vg6egEH/6grEUX0sAiOHjGSw7ZY2HTl2LoMRvw/DkcruF1gLjRyRqkNixXuZpXX5kr DViA2lkpllYLPGmnPqlYe+UBE+EWIEjVsNz9UTY2OpcUY7uy9OIY+wvpCwmBl7RKMjbQ znslWo2HP3DyA3ddJP83LvIoAj1UfkOAPc//M3zRr+EmFWdYAVAJwkJgozTa73A9nT2B Qv28li7UbAHxeTe2xyYBXlY8veR0gsAr1fCxoojINOZEqeN+P5Ltv/ek5nyCgmCXzWRy o/+A== X-Gm-Message-State: AIkVDXKGEgUdyy3Isuv4ZzfKN4W5I/qkNanREPYhynFZ/g1iQCqFlEFQoT5C7+XYc00JoJLm X-Received: by 10.200.37.85 with SMTP id 21mr9771907qtn.238.1484856089121; Thu, 19 Jan 2017 12:01:29 -0800 (PST) Received: from mutt-hardenedbsd ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id t7sm3229927qtb.11.2017.01.19.12.01.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jan 2017 12:01:28 -0800 (PST) Date: Thu, 19 Jan 2017 15:01:27 -0500 From: Shawn Webb To: Sean Bruno Cc: peter.blok@bsd4all.org, freebsd-current@freebsd.org Subject: Re: crash in iflib_fast_intr Message-ID: <20170119200127.eo2fqaxx7gt7hwgx@mutt-hardenedbsd> References: <0D6E88B3-6EB8-428F-B116-40D304CD74E5@bsd4all.org> <132b9c54-26dd-c57d-2fbb-58f8f9b256b0@freebsd.org> <20170118194534.47vcuas7jllvw3o6@mutt-hardenedbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jut27mh3kgqfpavt" Content-Disposition: inline In-Reply-To: <20170118194534.47vcuas7jllvw3o6@mutt-hardenedbsd> X-Operating-System: FreeBSD mutt-hardenedbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20161126 (1.7.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2017 20:01:30 -0000 --jut27mh3kgqfpavt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 18, 2017 at 02:45:34PM -0500, Shawn Webb wrote: > On Wed, Jan 18, 2017 at 07:31:12AM -0700, Sean Bruno wrote: > >=20 > >=20 > > On 01/18/17 03:37, peter.blok@bsd4all.org wrote: > > > Hi, > > >=20 > > > A kernel without option EARLY_AP_STARTUP crashes in if lib_fast_intr.= Since GENERIC now has EARLY_AP_STARTUP, this probably got unnoticed. Probl= em is reproducible. > > >=20 > > > KDB: stack backtrace: > > > #0 0xffffffff805cec97 at kdb_backtrace+0x67 > > > #1 0xffffffff80584816 at vpanic+0x186 > > > #2 0xffffffff80584683 at panic+0x43 > > > #3 0xffffffff8090f222 at trap_fatal+0x322 > > > #4 0xffffffff8090f3ec at trap_pfault+0x1bc > > > #5 0xffffffff8090eaa0 at trap+0x280 > > > #6 0xffffffff808f35e1 at calltrap+0x8 > > > #7 0xffffffff806a202d at iflib_fast_intr+0x3d > > > #8 0xffffffff8054963b at intr_event_handle+0x9b > > > #9 0xffffffff80965f38 at intr_execute_handlers+0x48 > > > #10 0xffffffff8096b1cf at lapic_handle_intr+0x3f > > > #11 0xffffffff808f3cc7 at Xapic_isr1+0xb7 > > > #12 0xffffffff805b994a at sched_idletd+0x37a > > > #13 0xffffffff805460f5 at fork_exit+0x85 > > > #14 0xffffffff808f3b1e at fork_trampoline+0xe > > >=20 > > > Peter > >=20 > > Thanks for the report. We're looking at this. > >=20 > > This is with an igb(4) interface or em(4)? > >=20 > > sean > >=20 >=20 > I'm getting something similar with em(4): >=20 > https://goo.gl/photos/MXiFXtatBYcWagJTA >=20 > I'm at this commit in HardenedBSD: >=20 > https://github.com/HardenedBSD/hardenedBSD/commit/2108b0d56984115eb52e72b= d16539071064b348e r312434 fixes this for me. Thanks a lot for the quick turnaround! --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --jut27mh3kgqfpavt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAliBGxUACgkQaoRlj1JF bu7eUg//SSIKVfop1qCRYoTqI1B2LKPJ7nhrjY5e/r377DFJVmnJ5HwOXlNlhnoT IgS7jKeY9pL95j5wKTpJSdIeP+EQp346gCy5xgLs9pDCfX3RSHt2SalzEtWNT24O Gr+FWliDHLisokh+MEumhgtG/J5KBaRChGxt7TwnGA6mfpAUGur5wU6iknvJEX// htTSOz+wG5wYy18PGd+rEpFhnGg+Ousar+tWkTqDwop+Cj3B6DiYvMKPKP3BogRe cZXAaEFDA+cMF0ArHcCWLZJyf11j8HUaqq8VlFQVsLI6UZwtV+5XBEzj7ZGAMrag ndeAWH/l0D8NB/jYq+MujgzDGAM9k0zUkKdWx8IM4mkO3qDC0fgi0tagTEy11+Ze PjKiChA0cmfj38+7JDghj1bUApwGHx7r01QOuB2yNJfaYxurdR94fh/AvMu28ekX zbEGXbwX9hrU8D+GDDYWbdtE28SgsjgzIByUZ04uGyGgZdauQCD7sNkLpyWw+0ON kCJ41nqLmbZhGYNIfj1XuiYoFpLW7B1VbFDnfhO7Jz7/qpY2gfV66JPN4QX8Wb7w rBZOAHS5ZZSCkMalx2a8qVjWsZDTDzslsRRL3m3ij8kVVNM1db9khyOmzty1/WS6 Fpbcww4hyMu4EwWztFTVyq8xgyDFNzJNi/mo3wKDYX8NYPtXhBg= =h9VC -----END PGP SIGNATURE----- --jut27mh3kgqfpavt--