summaryrefslogtreecommitdiff
path: root/scripts/module.lds.S
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2023-01-19 19:42:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-06 17:45:13 +0300
commita8901f331b8b7f95a7315d033a22bc84c8365f35 (patch)
treedd2b0800c6089f60d2b7aae5a58013b47e0ea1af /scripts/module.lds.S
parent71c43b714fd688ff5ee6d906e5cc38e6a8f2836f (diff)
downloadlinux-a8901f331b8b7f95a7315d033a22bc84c8365f35.tar.xz
efi: verify that variable services are supported
commit bad267f9e18f8e9e628abd1811d2899b1735a4e1 upstream. Current Qualcomm UEFI firmware does not implement the variable services but not all revisions clear the corresponding bits in the RT_PROP table services mask and instead the corresponding calls return EFI_UNSUPPORTED. This leads to efi core registering the generic efivar ops even when the variable services are not supported or when they are accessed through some other interface (e.g. Google SMI or the upcoming Qualcomm SCM implementation). Instead of playing games with init call levels to make sure that the custom implementations are registered after the generic one, make sure that get_next_variable() is actually supported before registering the generic ops. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/module.lds.S')
0 files changed, 0 insertions, 0 deletions