]> git.baikalelectronics.ru Git - kernel.git/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)
commiteb911756f8db6ed0aeee0bf20c8460f114a56e5f
tree4f4fa7969652c968360158be7474084294becc49
parent909333efe80e89cae4a8c4ee93aa811f927e0bde
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