]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Oct 2021 09:40:14 +0000 (11:40 +0200)
commitd87fc4b4838574f749e538d01cf047eb70e0b778
tree1836a425e6329e94c92840ad603b8232a366392b
parenta01a79e7d3ccc7208dca98b36575a9ad27cb7863
efi/cper: use stack buffer for error record decoding

commit eb911756f8db6ed0aeee0bf20c8460f114a56e5f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/cper.c