diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-21 00:18:11 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-21 00:18:11 +0200 |
commit | 5674d81c21d47e12c2def2df7360ef2dbca108e6 (patch) | |
tree | a47f1b37c67a5c329eef71a139ef8174f68620aa /drivers | |
parent | Merge tag 'x86_urgent_for_v5.9_rc6' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
parent | efi: efibc: check for efivars write capability (diff) | |
download | linux-5674d81c21d47e12c2def2df7360ef2dbca108e6.tar.xz linux-5674d81c21d47e12c2def2df7360ef2dbca108e6.zip |
Merge tag 'efi-urgent-for-v5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull EFI fix from Borislav Petkov:
"Ensure that the EFI bootloader control module only probes successfully
on systems that support the EFI SetVariable runtime service"
[ Tag and commit from Ard Biesheuvel, forwarded by Borislav ]
* tag 'efi-urgent-for-v5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
efi: efibc: check for efivars write capability
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firmware/efi/efibc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efibc.c b/drivers/firmware/efi/efibc.c index 35dccc88ac0a..15a47539dc56 100644 --- a/drivers/firmware/efi/efibc.c +++ b/drivers/firmware/efi/efibc.c @@ -84,7 +84,7 @@ static int __init efibc_init(void) { int ret; - if (!efi_enabled(EFI_RUNTIME_SERVICES)) + if (!efivars_kobject() || !efivar_supports_writes()) return -ENODEV; ret = register_reboot_notifier(&efibc_reboot_notifier); |