Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp796149ybv; Wed, 19 Feb 2020 09:22:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzFeomYdEGp1Hfn0blIxuVJyFEoErrMWpqHRF6GHQjFRDwMG1UXtXmRF11TxA+TGe/rRsVu X-Received: by 2002:aca:c68f:: with SMTP id w137mr5407537oif.179.1582132945771; Wed, 19 Feb 2020 09:22:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582132945; cv=none; d=google.com; s=arc-20160816; b=V3qcF1CQuprAGPxFjtGsspmlrRynzEEiQTqJsJ6S3Re5ggytg0Y/wauzqO/9r/CfVw jKGXBbwNbRDiuA6BbEnvXkI09+Ic0MWg+F8hsmAQDyabWYRB66GsypiofADn5RP4FRI1 1sWLJ7fuAjkLewb7pa+qYHQLqc4WIiK7M7Fh3cJm2nCDhw+Pd8f4Ue5s82/5wSqhIHph iZQDzEkmJOMd9Yi4L1DHTZwsFCn8iB+P6mGhtWYSnmBUSMqIeRAhbtUHP2DfUBHi9fyE 8+JyieAOiWTXHKbPLG9GUxQpm2CqfzluU+Fc7Ed+E1JhgLIlEa6vi1j72g+kX8dvtANI uNvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vwrZDvlfIi6hZMgScjJ1IHA6yyTOvo7ldhvOxh0dz/8=; b=nqOQw0XraMfeqM8thUWc3LenAmrh2zH1QfHQ2fwMCi4f9I8DUdvP2/iQkRT2ysFFn7 R/cToijrkv6OrAcxVZs5cw3R9z78voRxdaz97ltVfhSPdszJeLxsJr7W1AyaftMKQAJv zPX9BKCfOCHIU6/Xh0fAeCJA6nYMuwuillK3P8JWh68edIc0Wzlv8kA4Kj3SxQhQylO7 6XdGdXtCHgyGgAFbJkoYxqIL3GudbKqC0mrES4OEMboMm3YOpYuz1oX+Ni/nHi8LO5B+ RTwUuUEGO83wOYKuMa6/BdOkholzhHHK9XlZt2tDcT0BjYvwk/jr2+lWgENnYRxa6fMp IX2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JtJtTo8o; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si169283otf.87.2020.02.19.09.22.11; Wed, 19 Feb 2020 09:22:25 -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=@kernel.org header.s=default header.b=JtJtTo8o; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726710AbgBSRWC (ORCPT + 99 others); Wed, 19 Feb 2020 12:22:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:43940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726645AbgBSRWC (ORCPT ); Wed, 19 Feb 2020 12:22:02 -0500 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7589F24681 for ; Wed, 19 Feb 2020 17:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582132921; bh=Yn/+34fvZYH5l3fOZqUmD6Kr2SuPFwwBXj14MLQvIM8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JtJtTo8o0HAJsOZIdAMmqcvG/sAz9Ul5OsGboMOA0G+WddDrzl+XprSfsoneDg/85 TiHp1clAwU/AiBK3Fs4wUTh0Pog/C6lUOAVPsls+/p1Z07LLIEPLS2ltb46M7nFRop ZAYDxkltDJswLXJXLadLMLAqrRBe1uE6lmGejnr0= Received: by mail-wm1-f41.google.com with SMTP id a5so1556846wmb.0 for ; Wed, 19 Feb 2020 09:22:01 -0800 (PST) X-Gm-Message-State: APjAAAU7hMDTrLkG0F6Wb4WuSFJGZnrQTiPX3tSk4gsaLnCd0YB/Tt5O obdr2OKIyw+vjZ79fgJYCTh6lbMuyhQ1DK9kNeHONA== X-Received: by 2002:a05:600c:2207:: with SMTP id z7mr11329215wml.138.1582132919822; Wed, 19 Feb 2020 09:21:59 -0800 (PST) MIME-Version: 1.0 References: <20200219144724.800607165@infradead.org> <20200219150744.488895196@infradead.org> <20200219171309.GC32346@zn.tnic> In-Reply-To: <20200219171309.GC32346@zn.tnic> From: Andy Lutomirski Date: Wed, 19 Feb 2020 09:21:48 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 02/22] x86,mce: Delete ist_begin_non_atomic() To: Borislav Petkov Cc: Peter Zijlstra , LKML , linux-arch , Steven Rostedt , Ingo Molnar , Joel Fernandes , Greg KH , gustavo@embeddedor.com, Thomas Gleixner , paulmck@kernel.org, Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Andrew Lutomirski , Tony Luck , Frederic Weisbecker , Dan Carpenter , Masami Hiramatsu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 9:13 AM Borislav Petkov wrote: > > On Wed, Feb 19, 2020 at 03:47:26PM +0100, Peter Zijlstra wrote: > > Subject: Re: [PATCH v3 02/22] x86,mce: Delete ist_begin_non_atomic() > > x86/mce: ... > > > It is an abomination; and in prepration of removing the whole > > ist_enter() thing, it needs to go. > > > > Convert #MC over to using task_work_add() instead; it will run the > > same code slightly later, on the return to user path of the same > > exception. > > That's fine because the error happened in userspace. Unless there is a signal pending and the signal setup code is about to hit the same failed memory. I suppose we can just treat cases like this as "oh well, time to kill the whole system". But we should genuinely agree that we're okay with deferring this handling.