Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp449497imu; Fri, 21 Dec 2018 01:47:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ZufAgZzFETZlkJ3Qy6vq6WGMLvTlQjzmGrVKcuywuI/+ffvq0Xkl5bioirIDBGibyrpFF X-Received: by 2002:a63:374e:: with SMTP id g14mr1734826pgn.59.1545385636936; Fri, 21 Dec 2018 01:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545385636; cv=none; d=google.com; s=arc-20160816; b=Vu8ZEkx53sQFOqNDjb6R1oIxakUYO7NfTZTR07Ix2gHt+4jMhrHtn2oLkN03QqhsZU dgSFS3Y2pCXFhWxzjI0iyIhuyBa4lrAceCw9sBKFAIUkXciMEOEsCSgYGuHXJ/Hi5MPv cv6VBRyXguMajyzgYRvpCjAMNMmGQ65pEFQ2CC7YM4ATnXzc9azEkVVgBEfhFvo4gbIR 8GW7q5qFIf7JYOdBjPMJeVMLHdyaag/v+ToYFRTK2hcB1T4bB6JP8Q7stc6NiIby4qWe XCgkNb07FStjTemcWjAwIJmewjbO8HX5EWksWim+CKmIlBUt5aFokHH7pTSPMlC+b6Hu gwLg== 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=N3GgOFQHdgqSZ7aMtDkj03r+eYlwixbP/11WQh8eBmw=; b=jJMi0l/jzfhBmeZyZ9Yqb02SsSH9ozwd8tmFsa8aeY8iMqpUA4vDZ0513MS5GPLxqU lTd1LdvDQjMRVyI5IMWYN6A9iaR7cssIyshvAK9Oqm2cZp4X7zzKWbS14xxeMg8FOb8C KV/hhhbqzxoTEmrsIYQ9wvE7KH+bxffKZ+fQGzHhN81UNwe34mNKTh6nLo/An/L1SMNY TcvegGr3GF2DuzmBDZS5XZjcSd8AZJs4CqvT8rJnWMBbED0zfhTplyGnyE0g5mnIWW4b pxxP/LFnbpJbWSspQgD44cViTOMbnnJ9RbtErjrJBgsuxxJJl0JQ4FRwBxeElhX55vhn DJaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=IYVJgJ+w; 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=REJECT sp=REJECT 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 g2si2906816plp.130.2018.12.21.01.47.01; Fri, 21 Dec 2018 01:47:16 -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=IYVJgJ+w; 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=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730895AbeLTTY4 (ORCPT + 99 others); Thu, 20 Dec 2018 14:24:56 -0500 Received: from mail.skyhub.de ([5.9.137.197]:46258 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730083AbeLTTY4 (ORCPT ); Thu, 20 Dec 2018 14:24:56 -0500 Received: from zn.tnic (p200300EC2BCCE300F9B895DC726ECF52.dip0.t-ipconnect.de [IPv6:2003:ec:2bcc:e300:f9b8:95dc:726e:cf52]) (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 BF2181EC0AC3; Thu, 20 Dec 2018 20:24:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1545333894; 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=N3GgOFQHdgqSZ7aMtDkj03r+eYlwixbP/11WQh8eBmw=; b=IYVJgJ+wr8DumYt0IOrTz5EfPRa3tDDYNu3QK8NN7ySeX11jZUMasA/R5SMZZ/ILrpRW3P Xy4y7e0au7VxQza+E9xDy3ZLK9rbUWWZ1v/ehPGCR1VPpnPtecp6VxZazLnJk+eXo05QXB BRqSOiRw8JbMfeNOMUWNFTjPm/c8bzk= Date: Thu, 20 Dec 2018 20:24:47 +0100 From: Borislav Petkov To: David Arcari Cc: Linux ACPI , Lenny Szubowicz , "Rafael J. Wysocki" , 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() Message-ID: <20181220192447.GG31403@zn.tnic> References: <1545238252-79630-1-git-send-email-darcari@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1545238252-79630-1-git-send-email-darcari@redhat.com> 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 + 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 -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.