]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Fix for the arm64 kern_addr_valid() function
authorDave Anderson <anderson@redhat.com>
Tue, 15 Apr 2014 17:53:24 +0000 (18:53 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 3 May 2014 21:20:29 +0000 (22:20 +0100)
commitf09063c26d427dbb73363be2609df4c4f40e77c5
treed7c2a6f1483cb0010fe73991d7e1de4e90429fb2
parent9cfe9a0f84f48513d06a3b0897b12f075dc945f6
arm64: Fix for the arm64 kern_addr_valid() function

Fix for the arm64 kern_addr_valid() function to recognize
virtual addresses in the kernel logical memory map.  The
function fails as written because it does not check whether
the addresses in that region are mapped at the pmd level to
2MB or 512MB pages, continues the page table walk to the
pte level, and issues a garbage value to pfn_valid().

Tested on 4K-page and 64K-page kernels.

Signed-off-by: Dave Anderson <anderson@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c