]> 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)
commit7c3424560f7a5ec33a4008007a4c7fb86de523be
tree1836a425e6329e94c92840ad603b8232a366392b
parent043e1d3e8ec3739a431421895e8dc65c7904d8d8
efi/cper: use stack buffer for error record decoding

commit b3a72ca80351917cc23f9e24c35f3c3979d3c121 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