Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754726AbbGXUWS (ORCPT ); Fri, 24 Jul 2015 16:22:18 -0400 Received: from mail-ig0-f170.google.com ([209.85.213.170]:38148 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753908AbbGXUWM (ORCPT ); Fri, 24 Jul 2015 16:22:12 -0400 MIME-Version: 1.0 In-Reply-To: <20150724195509.GM2859@worktop.programming.kicks-ass.net> References: <20150724075841.40f209f4@gandalf.local.home> <20150724124304.GH19282@twins.programming.kicks-ass.net> <20150724090342.6d11e16d@gandalf.local.home> <20150724132128.GA3612@1wt.eu> <20150724103127.3c3f4693@gandalf.local.home> <20150724145901.GB3612@1wt.eu> <20150724111621.34713023@gandalf.local.home> <20150724152637.GC3612@1wt.eu> <20150724153054.GK19282@twins.programming.kicks-ass.net> <20150724195509.GM2859@worktop.programming.kicks-ass.net> Date: Fri, 24 Jul 2015 13:22:11 -0700 X-Google-Sender-Auth: WNcdWU9B7D4dBxwJiXu7E2jBpc8 Message-ID: Subject: Re: Dealing with the NMI mess From: Linus Torvalds To: Peter Zijlstra Cc: Willy Tarreau , Steven Rostedt , Andy Lutomirski , X86 ML , "linux-kernel@vger.kernel.org" , Borislav Petkov , Thomas Gleixner , 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: 764 Lines: 21 On Fri, Jul 24, 2015 at 12:55 PM, Peter Zijlstra wrote: > > I worry that we'll end up running the do_debug() handlers from effective > NMI context. > > The NMI might have preempted locks which these handlers require etc.. If #DB takes any locks like that, then #DB is broken. Pretty much by definition, a data breakpoint can happen on pretty much absolutely any code. This is in no way NMI-specific as far as I can tell. Do we really take locks in the #DB handler? 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/