Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp187179ybf; Wed, 26 Feb 2020 11:09:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxD2X2wsib7bzBKPEncYGzsmB79xZQoMsNcZ6BB9PfvO25QZxb6fR5nTdblRnoKmSP6E1YH X-Received: by 2002:aca:bfc2:: with SMTP id p185mr405136oif.57.1582744183565; Wed, 26 Feb 2020 11:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582744183; cv=none; d=google.com; s=arc-20160816; b=y3W6iK2uCf/NneMUAFkqhUMiecDEpKcOCU2f2QlrcePHuaIVF4gvdcqW90ENOYV3kh bElV3dTyOVk4jX4M65Qvji6JhSkO5Slb5EhsH/6V1utPxu+I2ZGooR8NB0b3TkAL9jHR R93Bqn3hBhiUhKXopVerSD0I/lc3uE0/MgrJ0jz7AIGpboRAmochEwlJMTIMMw6TnPki xscGK5k1381o5A76G6PUDGw9GlARODtZOs9eyVrQ5gWR/+kFbYfFWYCIGOfm15hSMQ3/ 8bK+9JRYSnHBy3jOeDGDqTINc8a3WfD+ga48gk39PI6Tcz8E3j9ICf7BgbqA6ErXMC5D 2bUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=RBcKv7eej+JLMOjCarAoqwQ6jzrRawlUlS6bH7yzUYI=; b=sdIKdCCORKGaVhJRmItCyM+pVzTRAU8PDsqD7HdBAmSI+RRdTUZhGTQXAsfudZab2p vgLc37Uch8CmmWJ5PwVtA9OIQ3dCE3dzjCeEHQ2YVOivpsqisbOgnS+lhGRSv8kHWyZU E2IHU14WvYO4ur/euT51wvDdbq3+L8GeyDAtIwQllsHKxDthLy/HcnE3pMbJdNxTLhPd ekIjP3fQfG27YnhoHWoh2gKzpx88UqbJq1QFB3dO9coOGp21GZeypDESOI8fewYVgN9V 4wCz3bx83Fg4J7Atb2KOAWMp68ou69sC1TlU3uwP6OYqZxQzHJjj7hxCAFIrTqEPfWPJ a0vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=jH3pNYMV; 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 h203si94910oif.3.2020.02.26.11.09.30; Wed, 26 Feb 2020 11:09:43 -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=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=jH3pNYMV; 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 S1727134AbgBZTJG (ORCPT + 99 others); Wed, 26 Feb 2020 14:09:06 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:35066 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbgBZTJG (ORCPT ); Wed, 26 Feb 2020 14:09:06 -0500 Received: by mail-pj1-f66.google.com with SMTP id q39so58627pjc.0 for ; Wed, 26 Feb 2020 11:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=RBcKv7eej+JLMOjCarAoqwQ6jzrRawlUlS6bH7yzUYI=; b=jH3pNYMVwUv/72mC7w7CgqRcwOK8p2sf/c8G8Ep5YP+x8tPMTSk+cTtGI+nPpvgIcG /kgMAfma4Ktlwd6Q5zFdDvJHthZu5ziXldYtLbdtsHCAvYZ4H5djsOgKGaP/7ik2gQyQ 7V7QpSl9SuOgsflZ5Bn3d/EGBL6X21CLanxita83+W9aIb01OZQrUciPurqd8JHqCu6l 0C/L9+wq/yUEUpltUgXGYMiuGvBkiKc1G39LEDu/BVnVyZ53PT6NkvH7tAUm++hBEumF qD4gclWvTtidtz7y/4bjT66VUh/2tL0Hul9qglJavXuYjC/9IQ7QxT3rAfCW/A+Dl3oX kV1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=RBcKv7eej+JLMOjCarAoqwQ6jzrRawlUlS6bH7yzUYI=; b=gk+SXiS12yWzurF9CJjov9xy/KU9lMVwoJDeO6439fc0rHZDoL7hk7SBBrE7uZfzi5 SJVzprBuOs/QgG9G6SiJeEMlooF5kk0yBaqf2wZ2ifpGIt1/IFFEDYaDzHG8hB6tlk+a obgkVn1dL1kTo7wUkB7sbaQpAnvMuCAZioVlayAQU/a6r/FVFyXMjIqt/jQO8iaiIPW8 QuHJ1u6BkXHODpDM6245pNZMH7BBfFxcy4FbA2DfnYOMBeYj7y7NL0ONCiA8mfKuYBS+ fj79vtyN04Na05lin5naN41XTRNlAMy/uGD5CkWps0k5gZiUce45Y+hDFP4pH4eKNrGN /ifQ== X-Gm-Message-State: APjAAAWq4rz7Pc7UvxfpJSEAk+jymsij4kxaHfFv9C6iDuLBNpN3DrNW gNfHiWKgwtd91E/kV21kmYFhv6ceqZA= X-Received: by 2002:a17:90a:2486:: with SMTP id i6mr604312pje.9.1582744145181; Wed, 26 Feb 2020 11:09:05 -0800 (PST) Received: from ?IPv6:2601:646:c200:1ef2:55da:f727:3bee:8a? ([2601:646:c200:1ef2:55da:f727:3bee:8a]) by smtp.gmail.com with ESMTPSA id y190sm4003447pfb.82.2020.02.26.11.09.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Feb 2020 11:09:04 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [patch 02/10] x86/mce: Disable tracing and kprobes on do_machine_check() Date: Wed, 26 Feb 2020 11:09:03 -0800 Message-Id: References: <20200226185945.GC18400@hirez.programming.kicks-ass.net> Cc: Borislav Petkov , Andy Lutomirski , Frederic Weisbecker , Thomas Gleixner , LKML , X86 ML , Steven Rostedt , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann In-Reply-To: <20200226185945.GC18400@hirez.programming.kicks-ass.net> To: Peter Zijlstra X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 26, 2020, at 10:59 AM, Peter Zijlstra wrote:= >=20 > =EF=BB=BFOn 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. >>=20 >> FWIW, I had this at the beginning of the #MC handler in a feeble attempt >> to poke at this: >>=20 >> + hw_breakpoint_disable(); >> + static_key_disable(&__tracepoint_read_msr.key); >> + tracing_off(); >=20 > You can't do static_key_disable() from an IST Can we set a percpu variable saying =E2=80=9Cin some stupid context, don=E2=80= =99t trace=E2=80=9D?=