]> git.baikalelectronics.ru Git - kernel.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)
commit5851f5492d30e8ba39e1be50a5c19bc49ea07a54
treeded888f805cc100dbf6eecffe9c88ad8a2d1fc72
parent06373d0b2219f1c0cc9a8948d0ae84a36bf41c2f
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