• S
    arm64: mm: Correct show_pte behaviour · 4339e3f3
    Steve Capper 提交于
    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: NSteve Capper <steve.capper@linaro.org>
    Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
    4339e3f3
fault.c 15.2 KB