]> 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)
commita70add836e723c096a0ed06bb0dcab04bb555257
treeded888f805cc100dbf6eecffe9c88ad8a2d1fc72
parent348b07d1fba5a8616d7eec5561c82336e1a0a39e
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