Patch "efi/esrt: Use memunmap() instead of kfree() to free the remapping" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
efi/esrt: Use memunmap() instead of kfree() to free the remapping
to the 4.4-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-esrt-use-memunmap-instead-of-kfree-to-free-the-remapping.patch
and it can be found in the queue-4.4 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
89c5a2d34bda58319e3075e8e7dd727ea25a435cMon Sep 17 00:00:00 2001
From: Pan Bian <[email protected]>
Date: Wed, 6 Dec 2017 09:50:09 +0000
Subject: efi/esrt: Use memunmap() instead of kfree() to free the remapping
From: Pan Bian <[email protected]>
commit 89c5a2d34bda58319e3075e8e7dd727ea25a435c upstream.
The remapping result of memremap() should be freed with memunmap(), not kfree().
--- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/efi/esrt.c +1 -1
@@ -442,7 +442,7 @@ err_remove_group: err_remove_esrt:kobject_put (esrt_kobj); err: -kfree (esrt); +memunmap (esrt); esrt =NULL ;return error; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/efi-esrt-use-memunmap-instead-of-kfree-to-free-the-remapping.patch
Quoted 56 lines · On Mon, Dec 11, 2017 at 11:17:40PM +0100, [email protected] wrote:
This is a note to let you know that I've just added the patch titled
efi/esrt: Use
memunmap()instead ofkfree()to free the remappingto the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
efi-esrt-use-memunmap-instead-of-kfree-to-free-the-remapping.patch
and it can be found in the queue-4.4 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From
89c5a2d34bda58319e3075e8e7dd727ea25a435cMon Sep 17 00:00:00 2001
From: Pan Bian <[email protected]>
Date: Wed, 6 Dec 2017 09:50:09 +0000
Subject: efi/esrt: Usememunmap()instead ofkfree()to free the remappingFrom: Pan Bian <[email protected]>
commit
89c5a2d34bda58319e3075e8e7dd727ea25a435cupstream.The remapping result of
memremap()should be freed withmemunmap(), notkfree().Signed-off-by Pan Bian <[email protected]>Signed-off-by Ard Biesheuvel <[email protected]>Cc H. Peter Anvin <[email protected]>Cc Linus Torvalds <[email protected]>Cc Matt Fleming <[email protected]>Cc Peter Zijlstra <[email protected]>Cc Thomas Gleixner <[email protected]>Signed-off-by Ingo Molnar <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/efi/esrt.c +1
-1@@ -442,7 +442,7 @@ err_remove_group: err_remove_esrt:kobject_put (esrt_kobj); err: -kfree (esrt); +memunmap (esrt); esrt =NULL ;return error; }
Quoted 3 lines
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/efi-esrt-use-memunmap-instead-of-kfree-to-free-the-remapping.patch
This caused my build to error since it is missing the include statement added in commit f58a37b2e01f ("efi/esrt: Use memremap not ioremap to access ESRT table in memory") upstream. Once that was added, everything appears to be fine.
Cheers!
Nathan
Greg KH
maintainerQuoted 57 lines · Nathan Chancellor
Quoted 56 lines · On Mon, Dec 11, 2017 at 11:17:40PM +0100, [email protected] wrote:
This is a note to let you know that I've just added the patch titled
efi/esrt: Use
memunmap()instead ofkfree()to free the remappingto the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
efi-esrt-use-memunmap-instead-of-kfree-to-free-the-remapping.patch
and it can be found in the queue-4.4 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From
89c5a2d34bda58319e3075e8e7dd727ea25a435cMon Sep 17 00:00:00 2001
From: Pan Bian <[email protected]>
Date: Wed, 6 Dec 2017 09:50:09 +0000
Subject: efi/esrt: Usememunmap()instead ofkfree()to free the remappingFrom: Pan Bian <[email protected]>
commit
89c5a2d34bda58319e3075e8e7dd727ea25a435cupstream.The remapping result of
memremap()should be freed withmemunmap(), notkfree().Signed-off-by Pan Bian <[email protected]>Signed-off-by Ard Biesheuvel <[email protected]>Cc H. Peter Anvin <[email protected]>Cc Linus Torvalds <[email protected]>Cc Matt Fleming <[email protected]>Cc Peter Zijlstra <[email protected]>Cc Thomas Gleixner <[email protected]>Signed-off-by Ingo Molnar <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/efi/esrt.c +1
-1@@ -442,7 +442,7 @@ err_remove_group: err_remove_esrt:kobject_put (esrt_kobj); err: -kfree (esrt); +memunmap (esrt); esrt =NULL ;return error; }
Quoted 8 lines
Quoted 3 lines
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/efi-esrt-use-memunmap-instead-of-kfree-to-free-the-remapping.patchThis caused my build to error since it is missing the include statement added in commit
f58a37b2e01f("efi/esrt: Use memremap not ioremap to access ESRT table in memory") upstream. Once that was added, everything appears to be fine.
Thanks, now fixed up.
greg k-h