From 4a13527e87a7940c8614ad0c0f46847004529690 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Thu, 1 Oct 2026 11:56:28 -0400 Subject: gsp-phys: key the NOCAT summary on the truncated strings --- kernel/gsp_phys_booter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 19abbce..ad37831 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -1985,8 +1985,10 @@ static void gsp_phys_nocat_accumulate(u8 rec_type, u64 error_code, slot->error_code == error_code && slot->subsystem == subsystem && slot->bugcheck == bugcheck && - strcmp(slot->source, source) == 0 && - strcmp(slot->faulting_engine, faulting_engine) == 0) { + strncmp(slot->source, source, + GSP_PHYS_NOCAT_SUMMARY_STR - 1) == 0 && + strncmp(slot->faulting_engine, faulting_engine, + GSP_PHYS_NOCAT_SUMMARY_STR - 1) == 0) { slot->count++; slot->last_seq = seq; return; -- cgit v1.2.3