From owner-svn-src-all@freebsd.org Fri Jun 8 16:34:44 2018 Return-Path: Delivered-To: svn-src-all@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 7D759101F26B; Fri, 8 Jun 2018 16:34:44 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from smtp.freebsd.org (unknown [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A1316A1A6; Fri, 8 Jun 2018 16:34:44 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) (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)) (Authenticated sender: mmacy) by smtp.freebsd.org (Postfix) with ESMTPSA id CAA92195BC; Fri, 8 Jun 2018 16:34:43 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: by mail-io0-f175.google.com with SMTP id t5-v6so16582071ioa.8; Fri, 08 Jun 2018 09:34:43 -0700 (PDT) X-Gm-Message-State: APt69E0Rx49TY7m/zstpGIwHUCKTDDXgWuOnsZBha92Iz7nsxjpIYv/A ltnPBlhAs8F4m1DwAlT4qBhZxDQSo7Cd7Dl9U54= X-Google-Smtp-Source: ADUXVKIR2ZIeRa4ohjbgTappT1vIEDJ0Y85pr9CwPEITo8X7hTSAy+r1X1y4kwpvuwf1eyquLAMIMcmh+p3rXPsy7Vg= X-Received: by 2002:a6b:3b49:: with SMTP id i70-v6mr6000297ioa.133.1528475683206; Fri, 08 Jun 2018 09:34:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:8cd:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 09:34:42 -0700 (PDT) In-Reply-To: <20180608162701.GA65388@pesky> References: <201806080458.w584w3rn006318@repo.freebsd.org> <20180608143448.GB57885@pesky> <20180608162701.GA65388@pesky> From: Matthew Macy Date: Fri, 8 Jun 2018 09:34:42 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r334827 - in head/sys: amd64/amd64 arm/arm dev/hwpmc i386/i386 kern mips/atheros mips/cavium powerpc/powerpc sys To: Mark Johnston Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2018 16:34:44 -0000 > The fact that our NMI handler isn't re-entrant can lead to subtle > problems. If while executing the NMI handler we hit a dtrace > probe or DDB breakpoint, the iret executed upon return to the handler > will re-enable NMIs. Then, if a second NMI arrives before the handler > for the first has returned, the trapframe will be clobbered. Did you > rule out an issue like this? No, but it happened instantly on all CPUs an a non-debug kernel 100% of the time after I changed pmc_process_interrupt earlier this week. My voodoo fix now avoids it. What you're describing sounds episodic and doesn't sound like it would be fixed / worked around by my change. -M