Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp862833imu; Fri, 21 Dec 2018 08:32:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN4sbIGYr+VjXXCqozgxZLaO56lXMwB8eie7sbAcSHsETBx8OnAmSl+liLTnGq1DXlqayloc X-Received: by 2002:a63:bd1a:: with SMTP id a26mr3011243pgf.121.1545409963542; Fri, 21 Dec 2018 08:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545409963; cv=none; d=google.com; s=arc-20160816; b=OmBZOIU8eC48FbW/dXUzxLTJGTaz95LWFcZXrUyJHuGKLU1fNroWH42O6u6/vjOHDs wICpGYrElXzZeIgFLNhzlz3a1ZPzFu3PO+D2BKw3O5b4xKZe2QBPwpkzltVzrgye8RdM QIyoGvLt3NfD9TfLT3jUaoNPfBS73uduEakke2skezukdP1m67gk2cScEb3M9JZj3DuR Y+Gw1Kjs1kD9yvLcopkBN8SAIc4LkZuIOJCq1s4J9aFoYxF4eCTlZ7kzHaCMvI4nHVWi Fro6vDR+bO7LSjyFjbxkTRKrMMatGD95YLw8+1rj4G5cF66mC/ImAxiTgzmCqagvO4wD ElsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=f9/MAC/O7PZZjG67V5S3qOLYQqkSgpE6YPqfocw/6Sg=; b=tMDPK9D704/eLoG+JC3bAheSxlXpj4h5tAeDRbz8ZiyCli1jFaOJ1SEOM72BNQXYFa O3v9uul2bkxV7qNjAHo35nYTR+YlHz3u+angpg8UvwtQXeUGI43UOuvSPOMugVn9SmGK rtk/DS9TYk+FfHfzpsT1Zoa+5OuUjx9n6vcgkuIMYJqq1CCAGqvn/zFLMcJ6sP4U4YpO V7J5dZlgWiQGG2HAVDgyCFgbeqMWjUB2NGj/s5jXbjHlwPgw03y978QM1bCKOcblyg6h zkCU71frk0yg3iK2LUrajMNjUtDtl9hKhg5NQhYh0E2Vb1t/LEcNxTObEVa6jRjEsqyY vCJA== ARC-Authentication-Results: i=1; mx.google.com; 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 b13si2329077pgw.472.2018.12.21.08.32.28; Fri, 21 Dec 2018 08:32: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; 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 S2389406AbeLULRw (ORCPT + 99 others); Fri, 21 Dec 2018 06:17:52 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:46766 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730960AbeLULRv (ORCPT ); Fri, 21 Dec 2018 06:17:51 -0500 Received: from 79.184.255.25.ipv4.supernova.orange.pl (79.184.255.25) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.183) id e618b23693fccc60; Fri, 21 Dec 2018 12:17:49 +0100 From: "Rafael J. Wysocki" To: Borislav Petkov , David Arcari Cc: Linux ACPI , Lenny Szubowicz , Len Brown , Tony Luck , "Eric W. Biederman" , Alexandru Gagniuc , linux-kernel@vger.kernel.org, James Morse Subject: Re: [PATCH] ACPI/APEI: Clear GHES block_status before panic() Date: Fri, 21 Dec 2018 12:17:21 +0100 Message-ID: <1691682.ckC9UJvgEr@aspire.rjw.lan> In-Reply-To: <20181220192447.GG31403@zn.tnic> References: <1545238252-79630-1-git-send-email-darcari@redhat.com> <20181220192447.GG31403@zn.tnic> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, December 20, 2018 8:24:47 PM CET Borislav Petkov wrote: > + James. > > On Wed, Dec 19, 2018 at 11:50:52AM -0500, David Arcari wrote: > > From: Lenny Szubowicz > > > > In __ghes_panic() clear the block status in the APEI generic > > error status block for that generic hardware error source before > > calling panic() to prevent a second panic() in the crash kernel > > for exactly the same fatal error. > > > > Otherwise ghes_probe(), running in the crash kernel, would see > > an unhandled error in the APEI generic error status block and > > panic again, thereby precluding any crash dump. > > > > Signed-off-by: Lenny Szubowicz > > Signed-off-by: David Arcari > > Cc: Rafael J. Wysocki > > Cc: Len Brown > > Cc: Tony Luck > > Cc: Borislav Petkov > > Cc: "Eric W. Biederman" > > Cc: Alexandru Gagniuc > > Cc: linux-kernel@vger.kernel.org > > --- > > drivers/acpi/apei/ghes.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c > > index 02c6fd9..f008ba7 100644 > > --- a/drivers/acpi/apei/ghes.c > > +++ b/drivers/acpi/apei/ghes.c > > @@ -691,6 +691,8 @@ static void __ghes_panic(struct ghes *ghes) > > { > > __ghes_print_estatus(KERN_EMERG, ghes->generic, ghes->estatus); > > > > + ghes_clear_estatus(ghes); > > + > > /* reboot to log the error! */ > > if (!panic_timeout) > > panic_timeout = ghes_panic_timeout; > > Acked-by: Borislav Petkov Patch applied, thanks!