Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754267AbbGWWDR (ORCPT ); Thu, 23 Jul 2015 18:03:17 -0400 Received: from mail-ig0-f170.google.com ([209.85.213.170]:37687 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753811AbbGWWDO (ORCPT ); Thu, 23 Jul 2015 18:03:14 -0400 MIME-Version: 1.0 In-Reply-To: References: <20150723212042.GN25159@twins.programming.kicks-ass.net> Date: Thu, 23 Jul 2015 15:03:13 -0700 X-Google-Sender-Auth: kTNrQr6DedebsajPQYjLcY7osbI Message-ID: Subject: Re: Dealing with the NMI mess From: Linus Torvalds To: Andy Lutomirski Cc: Peter Zijlstra , X86 ML , "linux-kernel@vger.kernel.org" , Willy Tarreau , Borislav Petkov , Thomas Gleixner , Steven Rostedt , Brian Gerst Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 642 Lines: 16 On Thu, Jul 23, 2015 at 2:59 PM, Andy Lutomirski wrote: > OK, new proposal: > > In do_debug, if we trip an instruction breakpoint while > !user_mode(regs) && ((regs->flags & X86_EFLAGS_IF) == 0), then disarm > *that breakpoint*. Ack. The more targeted we can make this while still guaranteeing forward progress, the better. So that sounds really good. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/