Re: [PATCH v2 2/2] apei/ghes: don't go past allocated memory
From: Borislav Petkov
Date: Wed Nov 26 2025 - 10:13:57 EST
On Wed, Nov 26, 2025 at 04:05:46PM +0100, Mauro Carvalho Chehab wrote:
> If the BIOS generates a very small ARM Processor Error, or
> an incomplete one, the current logic will fail to deferrence
>
> err->section_length
> and
> ctx_info->size
>
> Add checks to avoid that. With such changes, those GHESv2
> records won't cause OOPSes:
>
> GUID: e19e3d16-bc11-11e4-9caa-c2051d5d46b0
> CPER:
> 00000000 23 da a0 ce 9a 1b 92 d7 08 2b 32 08 7b 56 1b 23 #........+2.{V.#
Surely you can summarize this gibberish instead of putting it in the commit
message.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette