Skip to contentSkip to conversation

ACPI, APEI: Add validation check before GHES error is recorded

PATCH RESEND In review Chen Gong 2 participants 3 messages Apr 20, 2012 – Apr 23, 2012

Subsystems (2)
lore
Share & tools
lore

Chen Gong

author
#0 lore raw

PATCH RESEND v2 1/1 ACPI, APEI: Add validation check before GHES error is recorded

When GHES error record is logged into mcelog kernel buffer, a validation check for physical address is necessary, which prevents invalid physical address is happened in error record.

v2->v1:
Only report error to mcelog kernel buffer when physical address is valid.

---
 arch/x86/kernel/cpu/mcheck/mce-apei.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce-apei.c +2 -1
index 507ea58..cd8b166 100644
@@ -42,7 +42,8 @@ void apei_mce_report_mem_error(int corrected, struct cper_sec_mem_err *mem_err)
 	struct mce m;
 
 	/* Only corrected MC is reported */
-	if (!corrected)
+	if (!corrected || !(mem_err->validation_bits &
+				CPER_MEM_VALID_PHYSICAL_ADDRESS))
 		return;
 
 	mce_setup(&m);
Signature · 1 line
1.7.10.rc2.27.g59012
#1 lore raw

arch/x86/kernel/cpu/mcheck/mce-apei.c | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)

This patch seems to be in cross-over territory between ACPI and MCE

... I just applied it to the RAS tree.

-Tony

author
#2 lore raw
Quoted 9 lines · Tony

arch/x86/kernel/cpu/mcheck/mce-apei.c | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)

This patch seems to be in cross-over territory between ACPI and MCE

... I just applied it to the RAS tree.

-Tony

OK, thx a lot, Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html