powerpc/mm: Fix reporting of kernel execute faults on the 8xx
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 28 Nov 2018 09:27:04 +0000 (09:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:47:15 +0000 (19:47 +0100)
commit279eb1d940442ac0599fd107da9944249134e1e2
tree4f31cdb1699dc025fc1bdc589c7b546c280ab653
parent9e9435bc0bd4a58cfe92dc5a61f566031ca9ee10
powerpc/mm: Fix reporting of kernel execute faults on the 8xx

[ Upstream commit ffca395b11c4a5a6df6d6345f794b0e3d578e2d0 ]

On the 8xx, no-execute is set via PPP bits in the PTE. Therefore
a no-exec fault generates DSISR_PROTFAULT error bits,
not DSISR_NOEXEC_OR_G.

This patch adds DSISR_PROTFAULT in the test mask.

Fixes: d3ca587404b3 ("powerpc/mm: Fix reporting of kernel execute faults")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/mm/fault.c