diff options
author | 2024-05-14 15:19:26 -0700 | |
---|---|---|
committer | 2024-05-14 15:19:26 -0700 | |
commit | 1b10b390d945a19747d75b34a6e01035ac7b9155 (patch) | |
tree | 71f972f6930f7e1817b566783a763d7264d96dbc /include/linux | |
parent | Merge tag 'hid-for-linus-2024051401' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
parent | efi: libstub: only free priv.runtime_map when allocated (diff) | |
download | linux-1b10b390d945a19747d75b34a6e01035ac7b9155.tar.gz linux-1b10b390d945a19747d75b34a6e01035ac7b9155.tar.bz2 linux-1b10b390d945a19747d75b34a6e01035ac7b9155.zip |
Merge tag 'efi-next-for-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
Pull EFI updates from Ard Biesheuvel:
"Only a handful of changes this cycle, consisting of cleanup work and a
low-prio bugfix:
- Additional cleanup by Tim for the efivarfs variable name length
confusion
- Avoid freeing a bogus pointer when virtual remapping is omitted in
the EFI boot stub"
* tag 'efi-next-for-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
efi: libstub: only free priv.runtime_map when allocated
efi: Clear up misconceptions about a maximum variable name size
efivarfs: Remove unused internal struct members
Documentation: Mark the 'efivars' sysfs interface as removed
efi: pstore: Request at most 512 bytes for variable names
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/efi.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index d59b0947fba0..418e555459da 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -1072,12 +1072,11 @@ static inline u64 efivar_reserved_space(void) { return 0; } #endif /* - * The maximum size of VariableName + Data = 1024 - * Therefore, it's reasonable to save that much - * space in each part of the structure, - * and we use a page for reading/writing. + * There is no actual upper limit specified for the variable name size. + * + * This limit exists only for practical purposes, since name conversions + * are bounds-checked and name data is occasionally stored in-line. */ - #define EFI_VAR_NAME_LEN 1024 int efivars_register(struct efivars *efivars, |