Skip to content

Enable storage keys for radix

Balbir Singh linuxppc-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 4 repliesIn review
  2. v53 patches 2 repliesSuperseded
  3. v43 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches7 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Setup AMOR in HV modearch/powerpc/mm/pgtable-radix.c+23 -03 replies
2/3Detect instruction fetch denied and reportarch/powerpc/mm/fault.c+8 -01 reply
3/3Enable storage keys for radix - user mode executionarch/powerpc/mm/pgtable-radix.c+22 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [powerpc v6 0/3] Enable storage keys for radix

The first patch sets up AMOR in hypervisor mode. AMOR needs to be setup before IAMR (details of AMOR/IAMR in each patch). The second patch enables detection of exceptions generated due to instruction fetch violations caused and OOPSs' the task. The third patch enables IAMR for both hypervisor and guest kernels.

IAMR in radix mode, prevents the kernel from executing code from user mode pages.

I've tested with patch series with a sample hack and payload.

Chris Smart helped with the series, reviewing and providing valuable feedback

Changelog from previous post
Implement review comments and suggestions

Balbir Singh (3):
powerpc:Setup AMOR in HV mode powerpc/mm/radix:Detect instruction fetch denied and report powerpc:Enable storage keys for radix - user mode execution

 arch/powerpc/mm/fault.c         |  8 ++++++++
 arch/powerpc/mm/pgtable-radix.c | 45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)
Signature · 1 line
2.5.5