From: Kees Cook Date: Fri, 14 Feb 2014 19:19:03 +0000 (+0100) Subject: ARM: 7963/1: mm: report both sections from PMD X-Git-Tag: upstream/snapshot3+hdmi~3319^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd91b2fecfa66967e6ad732a9af860eb96c31ba4;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: 7963/1: mm: report both sections from PMD On 2-level page table systems, the PMD has 2 section entries. Report these, otherwise ARM_PTDUMP will miss reporting permission changes on odd section boundaries. Signed-off-by: Kees Cook Acked-by: Catalin Marinas Tested-by: Steve Capper Signed-off-by: Russell King --- diff --git a/arch/arm/mm/dump.c b/arch/arm/mm/dump.c index 2b3a564..ef69152 100644 --- a/arch/arm/mm/dump.c +++ b/arch/arm/mm/dump.c @@ -264,6 +264,9 @@ static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start) note_page(st, addr, 3, pmd_val(*pmd)); else walk_pte(st, pmd, addr); + + if (SECTION_SIZE < PMD_SIZE && pmd_large(pmd[1])) + note_page(st, addr + SECTION_SIZE, 3, pmd_val(pmd[1])); } }