Skip to contentSkip to conversation

Patch "efi: Expose non-blocking set_variable() wrapper to efivars" has been added to the 4.5-stable tree

PATCH [email protected] 1 participant 1 message May 2, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

efi: Expose non-blocking set_variable() wrapper to efivars

to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
efi-expose-non-blocking-set_variable-wrapper-to-efivars.patch
and it can be found in the queue-4.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 9c6672ac9c91f7eb1ec436be1442b8c26d098e55 Mon Sep 17 00:00:00 2001

From: Ard Biesheuvel <[email protected]>
Date: Mon, 1 Feb 2016 22:06:55 +0000
Subject: efi: Expose non-blocking set_variable() wrapper to efivars

From: Ard Biesheuvel <[email protected]>

commit 9c6672ac9c91f7eb1ec436be1442b8c26d098e55 upstream.

Commit 6d80dba1c9fe ("efi: Provide a non-blocking SetVariable() operation") implemented a non-blocking alternative for the UEFI SetVariable() invocation performed by efivars, since it may occur in atomic context. However, this version of the function was never exposed via the efivars struct, so the non-blocking versions was not actually callable. Fix that.

Cc Borislav Petkov <[email protected]>
Cc Brian Gerst <[email protected]>
Cc Denys Vlasenko <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Fixes 6d80dba1c9fe ("efi: Provide a non-blocking SetVariable() operation")
---
 drivers/firmware/efi/efi.c |    1 +
 1 file changed, 1 insertion(+)
drivers/firmware/efi/efi.c +1 -0
@@ -182,6 +182,7 @@ static int generic_ops_register(void)
 {
 	generic_ops.get_variable = efi.get_variable;
 	generic_ops.set_variable = efi.set_variable;
+	generic_ops.set_variable_nonblocking = efi.set_variable_nonblocking;
 	generic_ops.get_next_variable = efi.get_next_variable;
 	generic_ops.query_variable_store = efi_query_variable_store;
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.5/efi-expose-non-blocking-set_variable-wrapper-to-efivars.patch queue-4.5/efi-arm64-don-t-apply-memblock_nomap-to-uefi-memory-map-mapping.patch