Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp178727ybf; Wed, 26 Feb 2020 11:01:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzAYfDn8TRFRIPVhdslMBI7adp2kWmZktgXPvHHA0oOlHC9Wo/KyFeOi1iLNgZUM3A8IEGD X-Received: by 2002:aca:ac10:: with SMTP id v16mr324302oie.123.1582743704623; Wed, 26 Feb 2020 11:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582743704; cv=none; d=google.com; s=arc-20160816; b=VGgGsc3p3x7yfVpf4hCUJ3Sa/gtI9g43/umCmkQh+ac1XvPEMXAUZtiU2mARY8ktv2 ei4MojVxBX5+tqkn89+b4TNq0YrXjlT2TE5IKouxpUIERhlKrrn+3mAlOXV0ECtBX4Cm RwWAPAUY1bOzdiC7ve+BRITRneYYBZyFqqDIqfOsWZq347XHTLJhEjwWfA3KAHE/qOd5 45g6LXHkN/Q9cZa3Ps2rmXFPC/vKBoL6PAJUS7SS9MDBE6d2/adU36ejtZx//Dx3YE8M P9bS9jmwd+b1ndr9WSWHVccOXnXyiiUxge6ib5yd34c425Et0m3PH5Vcyoxz8q3327rx Yk4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CAFrV/jX2REFdROj2WFmW9nBm7NNscB1OT89QWcHs0s=; b=UqJNg+4KMURjwgz7Qv17948aFepQqnqY+T381q2BQx6ge+FjPdBqu8CM5KeULA4Z7F 0fKaAggVDOsOvxunpDhCCDcAOdKx7m2gybAwnx06VrcrZAw3MFGrBSfaDYje5/4BlJaD +r6SzV/RhuT8qUk4CfprmG+DnC0NFyKKx3saUe2myEz80mNWgWxojp9cOYQPNLKKgTgI KqxZ43wFuj0G27oSbu9eX+DUDMzfwX/WbSdFMc+ryN5JGSNW7mK3BH2npCYOjr2r+q9R pG2wLraCqef97MyZu8wqc7l4Q2Vw21RkYuv9D6DbKGOaH+XsYkFSXJCiBgFv2zCVxAXa nkXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=GuhnEH1a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si216521oth.211.2020.02.26.11.01.31; Wed, 26 Feb 2020 11:01:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=GuhnEH1a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727323AbgBZTAG (ORCPT + 99 others); Wed, 26 Feb 2020 14:00:06 -0500 Received: from merlin.infradead.org ([205.233.59.134]:44458 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727189AbgBZTAF (ORCPT ); Wed, 26 Feb 2020 14:00:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CAFrV/jX2REFdROj2WFmW9nBm7NNscB1OT89QWcHs0s=; b=GuhnEH1adpeERgL5XOpo1papgf 6i/2avLHdyfXH2/N9OXemsbJMVJzKSSzj7StSKPbDhNXvJENlGc1UNqLo+/s9RjpP9PDB4SItcPQ5 SFGw1HjhVb1vkjyeiGu/ZkDdOujivbzxWlgBXzCPIlG67W46OYnGZVcTYCUyFK0aHlCtl+DbsJZxw vmjQ+JD2Q4mzs6ekgdbpjMpGqbcHc02KWEdAvFdQEC1vyAY1Os050YsM1Mdqxq0ivJDUljUL8Hf5y NRvhh9Q74R7Lq1JeDSviGrsA02UyMp1y78zQPG5lQtMOH3FZ0b2uiJsq6grB/9cNzUF5HIXi4HMsT 7QEY1f9A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j71uO-0004Zc-Hc; Wed, 26 Feb 2020 18:59:48 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 365B5300130; Wed, 26 Feb 2020 19:57:50 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C42422B740B89; Wed, 26 Feb 2020 19:59:45 +0100 (CET) Date: Wed, 26 Feb 2020 19:59:45 +0100 From: Peter Zijlstra To: Borislav Petkov Cc: Andy Lutomirski , Andy Lutomirski , Frederic Weisbecker , Thomas Gleixner , LKML , X86 ML , Steven Rostedt , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann Subject: Re: [patch 02/10] x86/mce: Disable tracing and kprobes on do_machine_check() Message-ID: <20200226185945.GC18400@hirez.programming.kicks-ass.net> References: <20200226160818.GY18400@hirez.programming.kicks-ass.net> <20200226184237.GB16756@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200226184237.GB16756@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 26, 2020 at 07:42:37PM +0100, Borislav Petkov wrote: > On Wed, Feb 26, 2020 at 09:28:51AM -0800, Andy Lutomirski wrote: > > > It entirely depends on what the goal is :-/ On the one hand I see why > > > people might want function tracing / kprobes enabled, OTOH it's all > > > mighty frigging scary. Any tracing/probing/whatever on an MCE has the > > > potential to make a bad situation worse -- not unlike the same on #DF. > > FWIW, I had this at the beginning of the #MC handler in a feeble attempt > to poke at this: > > + hw_breakpoint_disable(); > + static_key_disable(&__tracepoint_read_msr.key); > + tracing_off(); You can't do static_key_disable() from an IST