]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix no execute fault handling on pre-POWER5
authorBalbir Singh <bsingharora@gmail.com>
Wed, 30 Nov 2016 00:35:36 +0000 (11:35 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Nov 2016 06:19:01 +0000 (17:19 +1100)
commit5f9fadf507d5c81ca2a6a5bc03f8c2aa081a74af
tree7136afdb2aa02fd3aa05ab376a2ee434f9701b7d
parent65fcc9e52ef169aad7d141f3980ccd206cbdb7dd
powerpc/mm: Fix no execute fault handling on pre-POWER5

Aneesh/Ben reported that the change to do_page_fault() we made in commit
5851f5492d30 ("powerpc/mm: Detect instruction fetch denied and report")
needs to handle the case where CPU_FTR_COHERENT_ICACHE is missing but we
have CPU_FTR_NOEXECUTE. In those cases the check added for
SRR1_ISI_N_OR_G might trigger a false positive.

This patch adds a check for CPU_FTR_COHERENT_ICACHE in addition to the
MSR value.

Fixes: 5851f5492d30 ("powerpc/mm: Detect instruction fetch denied and report")
Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c