]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc/mm: Detect instruction fetch denied and report
authorBalbir Singh <bsingharora@gmail.com>
Tue, 15 Nov 2016 06:56:15 +0000 (17:56 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Nov 2016 04:01:35 +0000 (15:01 +1100)
commit1d18ad026844b60d933c25ae38360f86a8cf41eb
treeded888f805cc100dbf6eecffe9c88ad8a2d1fc72
parentee97b6b99f42285d29d439f2e5376e03b2760e09
powerpc/mm: Detect instruction fetch denied and report

ISA 3 allows for prevention of instruction fetch and execution
of user mode pages. If such an error occurs, SRR1 bit 35 reports the
error. We catch and report the error in do_page_fault().

Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c