Patch "ARM: 9244/1: dump: Fix wrong pg_level in walk_pmd()" has been added to the 6.0-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

    ARM: 9244/1: dump: Fix wrong pg_level in walk_pmd()

to the 6.0-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:
     arm-9244-1-dump-fix-wrong-pg_level-in-walk_pmd.patch
and it can be found in the queue-6.0 subdirectory.

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



commit b88dd105097228a52f736ff1a91a50ccc6195484
Author: Wang Kefeng <wangkefeng.wang@xxxxxxxxxx>
Date:   Tue Sep 13 05:25:51 2022 +0100

    ARM: 9244/1: dump: Fix wrong pg_level in walk_pmd()
    
    [ Upstream commit 2ccd19b3ffac07cc7e75a2bd1ed779728bb67197 ]
    
    After ARM supports p4d page tables, the pg_level for note_page()
    in walk_pmd() should be 4, not 3, fix it.
    
    Fixes: 84e6ffb2c49c ("arm: add support for folded p4d page tables")
    Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>
    Signed-off-by: Russell King (Oracle) <rmk+kernel@xxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm/mm/dump.c b/arch/arm/mm/dump.c
index fb688003d156..712da6a81b23 100644
--- a/arch/arm/mm/dump.c
+++ b/arch/arm/mm/dump.c
@@ -346,7 +346,7 @@ static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start)
 		addr = start + i * PMD_SIZE;
 		domain = get_domain_name(pmd);
 		if (pmd_none(*pmd) || pmd_large(*pmd) || !pmd_present(*pmd))
-			note_page(st, addr, 3, pmd_val(*pmd), domain);
+			note_page(st, addr, 4, pmd_val(*pmd), domain);
 		else
 			walk_pte(st, pmd, addr, domain);
 



[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