]> git.dujemihanovic.xyz Git - linux.git/commit
efi: pstore: Request at most 512 bytes for variable names
authorTim Schumacher <timschumi@gmx.de>
Thu, 28 Mar 2024 20:50:30 +0000 (21:50 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 29 Mar 2024 07:36:52 +0000 (08:36 +0100)
commit24427cda90cbbb9015c73e2dd3329a116a00c8de
tree212e1663ec17eddd52b05b05e968589a39cb9baa
parent4cece764965020c22cff7665b18a012006359095
efi: pstore: Request at most 512 bytes for variable names

Work around a quirk in a few old (2011-ish) UEFI implementations, where
a call to `GetNextVariableName` with a buffer size larger than 512 bytes
will always return EFI_INVALID_PARAMETER.

This was already done to efivarfs in commit f45812cc23fb ("efivarfs:
Request at most 512 bytes for variable names"), but the second copy of
the variable iteration implementation was overlooked.

Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi-pstore.c