Skip to content

Commit

Permalink
Merge tag 'efi-urgent-for-v5.9-rc5' of git://git.kernel.org/pub/scm/l…
Browse files Browse the repository at this point in the history
…inux/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
  • Loading branch information
Linus Torvalds committed Sep 20, 2020
2 parents 217eee7 + 4690832 commit 5674d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/efi/efibc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5674d81

Please sign in to comment.