Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6213806ybv; Tue, 18 Feb 2020 12:09:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyqOy1x2VsCUqTyJfJLlveSeFnArnW3eofTnM2e2EMXiI0Bm9axc6OZ1TYSWwsVXaZW+6qQ X-Received: by 2002:a9d:865:: with SMTP id 92mr4374739oty.6.1582056557731; Tue, 18 Feb 2020 12:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582056557; cv=none; d=google.com; s=arc-20160816; b=c/m/2rEz0FE4MU51b89Otj/VvUljs3odUW1UbvICaMhQ7QqadTKRwzSOavlH6Qirzx fJV/P1//26OVMYMX9t9QuOPNoH2vnKZRac5/dAOMa4J5x20vOkLBX5pnI4EJN3uMx2/9 xMbRbI7tuqVTzWkuUSvpNhYb3vdb0g0CTGvfq/VARXiY+y3P/a98X+THesFfzpPyIiy4 2zyF7By79dFKZuigy2TTUVOh9sAbyLJtR1TXExyNR0lhc5Tb4+XSqdS3Rr+5BqRD5Ro4 I9EejfN8mC8eE089qnpLCNpGr/E0y2uFoO4unX3u9EgE5rlB9W7XLFJSaKlYitjQCsyc MIZw== 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=jmx0+z5jUn1UpZBqLi7uGXjByEV5/Ttc9P/ABLwrAZM=; b=AqJm3j7T0Z56n8h9MFZBItl/IAgZ/Zgin2qBWkxsbGespHv3P6Iq4wUJU2Ad8kXFJ0 Lt/FU2W3ql1z4zxvs4Rut1Br8Ip6nalkj3pYH53yFypP2LNM4HT52MPkWFZn+wQ/TYNW 5RdpiDC+J3ayJFpPOsMqWr+Ue+hrgmwmT0bUWiBWsYW8kJ8+xiOjr1y08wpTdh1Oei7C qmrKfE8QAYgW8vGFxjRvbASoP/XsHMrFrG2wRMyIMumcDn90J3TANt+jPmWqK1JJROyf FqHDPKhsRfdxrBmw10CPmLDqoa2G6tL/UHkHzsZ3/LTS6ilbQxUGowVfzQhe4DNWAwiK 1Vgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=FyTZYuiD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p186si8930126oih.172.2020.02.18.12.09.05; Tue, 18 Feb 2020 12:09:17 -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=@alien8.de header.s=dkim header.b=FyTZYuiD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728256AbgBRUJC (ORCPT + 99 others); Tue, 18 Feb 2020 15:09:02 -0500 Received: from mail.skyhub.de ([5.9.137.197]:56696 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbgBRUJB (ORCPT ); Tue, 18 Feb 2020 15:09:01 -0500 Received: from zn.tnic (p200300EC2F0C1F00DCB96C3517B36067.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:1f00:dcb9:6c35:17b3:6067]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B54D41EC0C1A; Tue, 18 Feb 2020 21:08:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1582056539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=jmx0+z5jUn1UpZBqLi7uGXjByEV5/Ttc9P/ABLwrAZM=; b=FyTZYuiDS+cpITcqPx08jBvNoaFPPFytcGfkneBv1JenackcGRNG4pz9x0VbXJc0lsPVU2 zRZzcgf9XMiZ2F8jtGhV8XwpWUhCBWAl/a5XF5JgG1T96yEZKVR6ELdlwHW12A3VF+wTNc iCKVlddjRiyTnZkxeqZd3x/46DXUJqQ= Date: Tue, 18 Feb 2020 21:09:00 +0100 From: Borislav Petkov To: Peter Zijlstra Cc: "Luck, Tony" , Steven Rostedt , Andy Lutomirski , x86-ml , lkml Subject: Re: [RFC] #MC mess Message-ID: <20200218200900.GS14449@zn.tnic> References: <20200218173150.GK14449@zn.tnic> <3908561D78D1C84285E8C5FCA982C28F7F57B937@ORSMSX115.amr.corp.intel.com> <20200218200200.GE11457@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200218200200.GE11457@worktop.programming.kicks-ass.net> 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 Tue, Feb 18, 2020 at 09:02:00PM +0100, Peter Zijlstra wrote: > Then please rewrite the #MC entry code to deal with nested exceptions > unmasking the MCE, very similr to NMI. > > The moment you allow tracing, jump_labels or anything else you can > expect #PF, #BP and probably #DB while inside #MC, those will then IRET > and re-enable the #MC. Yeah, I'd like to keep it simple and reenable all the crap we disabled only on exit from the handler. Dunno if we care about losing tracing samples when an MCE happened... > The current situation is completely and utterly buggered. Lovely. ;-( -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette