From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B05AAC282CE for ; Mon, 11 Feb 2019 15:26:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7957821B1A for ; Mon, 11 Feb 2019 15:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549898802; bh=XcyQ8FX7UTxIUBcY0ZfcRpbg6DZWjb4V37Y4hykWqMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=XVmVEkmG6tpAJD4u4mDOOVw1w8kwikQVcc+SyL0x9rDhKTcQBmZkcj63/m+BZJqso 08x5larA2Tud896Wt3dpAMldvxD0eaWqTx/zrI+DJ1JJ3nVH1oDuiwiX0iXp6mb4rf m5moPyHXYYq9OGj4252M1nNbFAavE5Jp5PjzJX/Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730097AbfBKPAL (ORCPT ); Mon, 11 Feb 2019 10:00:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:48054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389946AbfBKPAJ (ORCPT ); Mon, 11 Feb 2019 10:00:09 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 92B08206BA; Mon, 11 Feb 2019 15:00:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897209; bh=XcyQ8FX7UTxIUBcY0ZfcRpbg6DZWjb4V37Y4hykWqMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b4GX8SeGKASzVau0TCXQS5PioNY2PwnOG956/Iw8hLiks+Gzey9VP/84ppVKaniup TG0d9huKzlidUsj/bEEfdZPDwQUAEiagsXuOJ1NoJ8oPspvrZPfV2sT6D0n8YN+Xnx KFcAK/zFWykSwgkQWJuItvyjMzlXF8G2wJRA/YrQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lenny Szubowicz , David Arcari , Tyler Baicar , Borislav Petkov , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.14 127/205] ACPI/APEI: Clear GHES block_status before panic() Date: Mon, 11 Feb 2019 15:18:45 +0100 Message-Id: <20190211141836.763596106@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 98cff8b23ed1c763a029ee81ea300df0d153d07d ] 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 Tested-by: Tyler Baicar Acked-by: Borislav Petkov Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- 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 f14695e744d0..5889f6407fea 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -675,6 +675,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; -- 2.19.1