WSL2-Linux-Kernel/drivers/firmware/efi
Jann Horn 258dd90202 efivars: Respect "block" flag in efivar_entry_set_safe()
When the "block" flag is false, the old code would sometimes still call
check_var_size(), which wrongly tells ->query_variable_store() that it can
block.

As far as I can tell, this can't really materialize as a bug at the moment,
because ->query_variable_store only does something on X86 with generic EFI,
and in that configuration we always take the efivar_entry_set_nonblocking()
path.

Fixes: ca0e30dcaa ("efi: Add nonblocking option to efi_query_variable_store()")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20220218180559.1432559-1-jannh@google.com
2022-02-28 10:07:50 +01:00
..
libstub riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value 2022-02-28 10:07:49 +01:00
test
Kconfig
Makefile
apple-properties.c
arm-runtime.c
capsule-loader.c
capsule.c
cper-arm.c
cper-x86.c
cper.c efi/cper: use stack buffer for error record decoding 2021-10-05 13:05:59 +02:00
dev-path-parser.c
earlycon.c
efi-bgrt.c
efi-init.c efi: apply memblock cap after memblock_add() 2021-12-22 09:28:26 -04:00
efi-pstore.c
efi.c efi: runtime: avoid EFIv2 runtime services on Apple x86 machines 2022-01-23 10:31:27 +01:00
efibc.c
efivars.c efi: use default_groups in kobj_type 2022-01-06 21:19:05 +01:00
embedded-firmware.c
esrt.c efi: use default_groups in kobj_type 2022-01-06 21:19:05 +01:00
fake_mem.c
fake_mem.h
fdtparams.c
memattr.c
memmap.c memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
mokvar-table.c
rci2-table.c
reboot.c
riscv-runtime.c
runtime-map.c efi: use default_groups in kobj_type 2022-01-06 21:19:05 +01:00
runtime-wrappers.c efi: Change down_interruptible() in virt_efi_reset_system() to down_trylock() 2021-10-05 13:07:01 +02:00
sysfb_efi.c efi: sysfb_efi: fix build when EFI is not set 2021-07-27 11:52:51 +02:00
tpm.c
vars.c efivars: Respect "block" flag in efivar_entry_set_safe() 2022-02-28 10:07:50 +01:00
x86_fake_mem.c