lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20230925074426.97856-10-xueshuai@linux.alibaba.com> Date: Mon, 25 Sep 2023 15:44:26 +0800 From: Shuai Xue <xueshuai@...ux.alibaba.com> To: keescook@...omium.org, tony.luck@...el.com, gpiccoli@...lia.com, rafael@...nel.org, lenb@...nel.org, james.morse@....com, bp@...en8.de, tglx@...utronix.de, mingo@...hat.com, dave.hansen@...ux.intel.com, x86@...nel.org, hpa@...or.com, ardb@...nel.org, robert.moore@...el.com Cc: linux-hardening@...r.kernel.org, linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org, linux-edac@...r.kernel.org, linux-efi@...r.kernel.org, acpica-devel@...ts.linuxfoundation.org, xueshuai@...ux.alibaba.com, baolin.wang@...ux.alibaba.com Subject: [RFC PATCH v2 9/9] ACPI: APEI: ESRT: log ARM processor error Introduce a new pstore_record type, PSTORE_TYPE_CPER_PROC_ARM, so that serialized ARM processor errors can be retrieved and saved as a file in pstore file system. While the serialized errors is retrieved from ERST backend, log it. Signed-off-by: Shuai Xue <xueshuai@...ux.alibaba.com> --- drivers/acpi/apei/erst.c | 6 ++++++ fs/pstore/platform.c | 1 + include/linux/pstore.h | 1 + 3 files changed, 8 insertions(+) diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c index e0c44ea46acc..2b99573d1d5d 100644 --- a/drivers/acpi/apei/erst.c +++ b/drivers/acpi/apei/erst.c @@ -29,6 +29,7 @@ #include <acpi/ghes.h> #include <linux/aer.h> #include <linux/pci.h> +#include <linux/ras.h> #ifdef CONFIG_X86_MCE /* only define CREATE_TRACE_POINTS once */ #include <trace/events/mce.h> @@ -1092,6 +1093,11 @@ static ssize_t erst_reader(struct pstore_record *record) cper_print_aer( pdev, AER_FATAL, (struct aer_capability_regs *)pcie_err->aer_info); + } else if (guid_equal(&rcd->sec_hdr.section_type, &CPER_SEC_PROC_ARM)) { + struct cper_sec_proc_arm *err = (struct cper_sec_proc_arm *)rcd->data; + + record->type = PSTORE_TYPE_CPER_PROC_ARM; + log_arm_hw_error(err); } else record->type = PSTORE_TYPE_MAX; diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 40a062546fe4..48ad3202284c 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -53,6 +53,7 @@ static const char * const pstore_type_names[] = { "powerpc-opal", "cper-mem", "cper-pcie", + "cper-proc-arm", }; static int pstore_new_entry; diff --git a/include/linux/pstore.h b/include/linux/pstore.h index e63f51e9c22e..83edff5aab0b 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h @@ -43,6 +43,7 @@ enum pstore_type_id { /* APEI section */ PSTORE_TYPE_CPER_MEM = 9, PSTORE_TYPE_CPER_PCIE = 10, + PSTORE_TYPE_CPER_PROC_ARM = 11, /* End of the list */ PSTORE_TYPE_MAX -- 2.41.0
Powered by blists - more mailing lists