powerpc/mm: Update PROTFAULT handling in the page fault path
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Feb 16 16:59:46 AEDT 2017
On Mon, 2017-01-30 at 16:12:59 UTC, "Aneesh Kumar K.V" wrote:
> With radix, we can get page fault with DSISR_PROTFAULT value set in case of
> PROT_NONE or autonuma mapping. The PROT_NONE case in handled by the vma check
> where we consider the access bad. For autonuma we should fall through and fixup
> the access mask correctly.
>
> Without this patch we trigger the WARN_ON() on radix. This code moves that
> WARN_ON() within a radix_enabled() check. I also moved the WARN_ON() outside
> the if condition making it apply for all type of faults (exec/write/read). It
> is also conditionalized for book3s, because BOOK3E can also get a PROTFAULT to
> handle the D/I cache sync.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/18061c17c8ecdbdbf1e7d1695ec44e
cheers
More information about the Linuxppc-dev
mailing list