Commit 5674d81c authored by Linus Torvalds's avatar Linus Torvalds

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
parents 217eee72 46908326
...@@ -84,7 +84,7 @@ static int __init efibc_init(void) ...@@ -84,7 +84,7 @@ static int __init efibc_init(void)
{ {
int ret; int ret;
if (!efi_enabled(EFI_RUNTIME_SERVICES)) if (!efivars_kobject() || !efivar_supports_writes())
return -ENODEV; return -ENODEV;
ret = register_reboot_notifier(&efibc_reboot_notifier); ret = register_reboot_notifier(&efibc_reboot_notifier);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment