]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 05:20:45 +0000 (16:20 +1100)
commita333877231c5e9a54dbd323a49d40ddfb3dafa23
tree10b8d6e33709d3103e97f725effb7a6cdc608175
parentf377aa8fbf4edada9ab451b537aea6c1b5da66cf
powerpc/mm: Fix reporting of kernel execute faults on the 8xx

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: 4dc3d9ab85a8 ("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>
arch/powerpc/mm/fault.c