Re: [PATCH] EDAC: enlarge the DIMM label buffer to cover the worst case
From: Borislav Petkov
Date: Sat Dec 05 2026 - 13:24:07 EST
On Thu, Dec 03, 2026 at 10:13:49AM +0800, Aibing Chen wrote:
> Given that, the options I see:
>
> 1. drop the patch - the labels are fine, gcc is just conservative;
> 2. use scnprintf() at the two call sites, which bounds the write and
> does not grow struct dimm_info / edac_raw_error_desc;
> 3. keep the EDAC_MC_LABEL_LEN bump as sent.
4. Turn off WERROR when you use W=
Reason: W= enables build warnings which are more likely to be false positives
so failing the build with an error doesn't make any sense there. You want to
see all warnings.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette