Patch "um: Call pgtable_pmd_page_dtor() in __pmd_free_tlb()" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

    um: Call pgtable_pmd_page_dtor() in __pmd_free_tlb()

to the 5.9-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:
     um-call-pgtable_pmd_page_dtor-in-__pmd_free_tlb.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e7ce9803a9f158725e053b95735472846f5cb364
Author: Richard Weinberger <richard@xxxxxx>
Date:   Mon Oct 19 23:10:49 2020 +0200

    um: Call pgtable_pmd_page_dtor() in __pmd_free_tlb()
    
    [ Upstream commit 9a5085b3fad5d5d6019a3d160cdd70357d35c8b1 ]
    
    Commit b2b29d6d0119 ("mm: account PMD tables like PTE tables") uncovered
    a bug in uml, we forgot to call the destructor.
    While we are here, give x a sane name.
    
    Reported-by: Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx>
    Co-developed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
    Signed-off-by: Richard Weinberger <richard@xxxxxx>
    Tested-by: Christopher Obbard <chris.obbard@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/um/include/asm/pgalloc.h b/arch/um/include/asm/pgalloc.h
index 5393e13e07e0a..2bbf28cf3aa92 100644
--- a/arch/um/include/asm/pgalloc.h
+++ b/arch/um/include/asm/pgalloc.h
@@ -33,7 +33,13 @@ do {							\
 } while (0)
 
 #ifdef CONFIG_3_LEVEL_PGTABLES
-#define __pmd_free_tlb(tlb,x, address)   tlb_remove_page((tlb),virt_to_page(x))
+
+#define __pmd_free_tlb(tlb, pmd, address)		\
+do {							\
+	pgtable_pmd_page_dtor(virt_to_page(pmd));	\
+	tlb_remove_page((tlb),virt_to_page(pmd));	\
+} while (0)						\
+
 #endif
 
 #endif



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux