android_kernel_motorola_sm6375/drivers/firmware
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tim Schumacher 34b5d2ff9e efivarfs: Request at most 512 bytes for variable names
commit f45812cc23fb74bef62d4eb8a69fe7218f4b9f2a upstream.

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.

There is some lore around EFI variable names being up to 1024 bytes in
size, but this has no basis in the UEFI specification, and the upper
bounds are typically platform specific, and apply to the entire variable
(name plus payload).

Given that Linux does not permit creating files with names longer than
NAME_MAX (255) bytes, 512 bytes (== 256 UTF-16 characters) is a
reasonable limit.

Cc: <[email protected]> # 6.1+
Signed-off-by: Tim Schumacher <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
[[email protected]: adjusted diff for changed context and code move]
Signed-off-by: Tim Schumacher <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2024-04-13 12:51:31 +02:00
..
arm_scmi firmware: arm_scmi: Fix device node validation for mailbox transport 2023-04-05 11:16:46 +02:00
broadcom
efi efivarfs: Request at most 512 bytes for variable names 2024-04-13 12:51:31 +02:00
google firmware: coreboot: framebuffer: Ignore reserved pixel color bits 2023-03-11 16:43:58 +01:00
imx
meson firmware: meson_sm: Rework driver as a proper platform driver 2024-04-13 12:51:26 +02:00
psci
tegra
xilinx
arm_scpi.c
arm_sdei.c firmware: arm_sdei: Fix sleep from invalid context BUG 2023-05-30 12:44:02 +01:00
dmi-id.c
dmi-sysfs.c
dmi_scan.c
edd.c
iscsi_ibft.c
iscsi_ibft_find.c
Kconfig
Makefile
memmap.c
pcdp.c
pcdp.h
qcom_scm-32.c
qcom_scm-64.c
qcom_scm.c firmware: qcom_scm: Clear download bit during reboot 2023-05-17 11:35:36 +02:00
qcom_scm.h
qemu_fw_cfg.c
raspberrypi.c firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe() 2023-05-17 11:36:05 +02:00
scpi_pm_domain.c
stratix10-rsu.c
stratix10-svc.c firmware: stratix10-svc: Fix an NULL vs IS_ERR() bug in probe 2023-09-23 10:59:37 +02:00
ti_sci.c firmware: ti_sci: Fix an off-by-one in ti_sci_debugfs_create() 2024-01-25 14:34:25 -08:00
ti_sci.h firmware: ti_sci: Replace HTTP links with HTTPS ones 2023-11-20 10:30:12 +01:00
trusted_foundations.c
turris-mox-rwtm.c