Patch "x86/efi: Free efi_pgd with free_pages()" has been added to the 4.14-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
x86/efi: Free efi_pgd with free_pages()
to the 4.14-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:
x86-efi-free-efi_pgd-with-free_pages.patch
and it can be found in the queue-4.14 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
06ace26f4e6fcf747e890a39193be811777a048aMon Sep 17 00:00:00 2001
From: Waiman Long <[email protected]>
Date: Thu, 22 Mar 2018 15:18:53 -0400
Subject: x86/efi: Free efi_pgd with free_pages()
From: Waiman Long <[email protected]>
commit 06ace26f4e6fcf747e890a39193be811777a048a upstream.
The efi_pgd is allocated as PGD_ALLOCATION_ORDER pages and therefore must also be freed as PGD_ALLOCATION_ORDER pages with free_pages().
--- arch/x86/platform/efi/efi_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/platform/efi/efi_64.c +1 -1
@@ -227,7 +227,7 @@ int __init efi_alloc_page_tables(void)if (!pud) {if (CONFIG_PGTABLE_LEVELS >4 )free_page ((unsigned long )pgd_page_vaddr (*pgd)); -free_page ((unsigned long )efi_pgd); +free_pages ((unsigned long )efi_pgd,PGD_ALLOCATION_ORDER );return -ENOMEM ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/x86-efi-free-efi_pgd-with-free_pages.patch