diff options
author | Mark Rutland <mark.rutland@arm.com> | 2019-08-14 15:28:47 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-14 18:05:11 +0200 |
commit | 233947ef16a18952d22786770dab1ddafa1ac377 (patch) | |
tree | 5e2f60d645f057615a89e8bf9d236a543bc3d1ae /arch/arm64/mm/dump.c | |
parent | arm64: memory: Cosmetic cleanups (diff) | |
download | linux-233947ef16a18952d22786770dab1ddafa1ac377.tar.xz linux-233947ef16a18952d22786770dab1ddafa1ac377.zip |
arm64: memory: fix flipped VA space fallout
VA_START used to be the start of the TTBR1 address space, but now it's a
point midway though. In a couple of places we still use VA_START to get
the start of the TTBR1 address space, so let's fix these up to use
PAGE_OFFSET instead.
Fixes: 14c127c957c1c607 ("arm64: mm: Flip kernel VA space")
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/mm/dump.c')
-rw-r--r-- | arch/arm64/mm/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 6ec75305828e..8e10b4ba215a 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -400,7 +400,7 @@ void ptdump_check_wx(void) .check_wx = true, }; - walk_pgd(&st, &init_mm, VA_START); + walk_pgd(&st, &init_mm, PAGE_OFFSET); note_page(&st, 0, 0, 0); if (st.wx_pages || st.uxn_pages) pr_warn("Checked W+X mappings: FAILED, %lu W+X pages found, %lu non-UXN pages found\n", |