Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b26e3777 authored by Kees Cook's avatar Kees Cook Committed by Laura Abbott
Browse files

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.

Change-Id: I7b0461e697e8bf4338e7c10fd6362836711aa205
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Tested-by: default avatarSteve Capper <steve.capper@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Git-commit: cd91b2fecfa66967e6ad732a9af860eb96c31ba4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 003c61dd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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]));
	}
}