]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: Correct show_pte behaviour
authorSteve Capper <steve.capper@linaro.org>
Fri, 19 Apr 2013 14:49:31 +0000 (15:49 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 25 Apr 2013 16:45:52 +0000 (17:45 +0100)
commit0c2ca5dc0398066ba451a047a7f18b9f009d1c31
treecce5405ebcbdf63dd88da82e94b31afb606293a2
parentdeeef302e135b627641412f7266f539bcff306fd
arm64: mm: Correct show_pte behaviour

show_pte makes use of the *_none_or_clear_bad style functions. If a
pgd, pud or pmd is identified as being bad, it will then be cleared.

As show_pte appears to be called from either the user or kernel
fault handlers this side effect can lead to unpredictable behaviour;
especially as TLB entries are not invalidated.

This patch removes the page table sanitisation from show_pte. If a
bad pgd, pud or pmd is encountered it is left unmodified.

Signed-off-by: Steve Capper <steve.capper@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/fault.c