]> git.itanic.dy.fi Git - linux-stable/commit
efi/cper: use stack buffer for error record decoding
authorArd Biesheuvel <ardb@kernel.org>
Wed, 1 Sep 2021 06:33:19 +0000 (08:33 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 5 Oct 2021 11:05:59 +0000 (13:05 +0200)
commitb3a72ca80351917cc23f9e24c35f3c3979d3c121
tree4f4fa7969652c968360158be7474084294becc49
parent68c9cdf37a0456b7ba25a50b1ea8794f305da17f
efi/cper: use stack buffer for error record decoding

Joe reports that using a statically allocated buffer for converting CPER
error records into human readable text is probably a bad idea. Even
though we are not aware of any actual issues, a stack buffer is clearly
a better choice here anyway, so let's move the buffer into the stack
frames of the two functions that refer to it.

Cc: <stable@vger.kernel.org>
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/cper.c