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

Changed files
+1 -1
drivers
firmware
efi
+1 -1
drivers/firmware/efi/efibc.c
··· 84 84 { 85 85 int ret; 86 86 87 - if (!efi_enabled(EFI_RUNTIME_SERVICES)) 87 + if (!efivars_kobject() || !efivar_supports_writes()) 88 88 return -ENODEV; 89 89 90 90 ret = register_reboot_notifier(&efibc_reboot_notifier);