Skip to content

Commit 74a65f5

Browse files
LennySzubowiczgregkh
authored andcommitted
ACPI/APEI: Clear GHES block_status before panic()
[ 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 <lszubowi@redhat.com> Signed-off-by: David Arcari <darcari@redhat.com> Tested-by: Tyler Baicar <baicar.tyler@gmail.com> Acked-by: Borislav Petkov <bp@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 71d357a commit 74a65f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/acpi/apei/ghes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ static void __ghes_panic(struct ghes *ghes)
675675
{
676676
__ghes_print_estatus(KERN_EMERG, ghes->generic, ghes->estatus);
677677

678+
ghes_clear_estatus(ghes);
679+
678680
/* reboot to log the error! */
679681
if (!panic_timeout)
680682
panic_timeout = ghes_panic_timeout;

0 commit comments

Comments
 (0)