Skip to content

Have CONFIG_STRICT_KERNEL_RWX work with CONFIG_RELOCATABLE

Balbir Singh linuxppc-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Rebase on top of the changes made in v4.13
- Move hash tables to IS_ALIGNED logic

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc/mm/radix: Fix relocatable radix mappings for STRICT_RWXarch/powerpc/mm/pgtable-radix.c+151 -320 replies
2/3powerpc/mm/hash: WARN if relocation is enabled and CONFIG_STRICT_KERNEL_RWXarch/powerpc/mm/pgtable-hash64.c+26 -20 replies
3/3powerpc/strict_kernel_rwx: Don't depend on !RELOCATABLEarch/powerpc/Kconfig+1 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] Have CONFIG_STRICT_KERNEL_RWX work with CONFIG_RELOCATABLE

These patches make CONFIG_STRICT_KERNEL_RWX work with CONFIG_RELOCATABLE The first patch splits up the radix linear mapping nicely on relocation to support granular read-only and execution bits. The second patch warns if relocation is actually done (PHYSICAL_START > MEMORY_START), we do best effort support of expected permissions. We could do more granular linear mapping, but we decided to leave it as a TODO (to check for performance/MPSS/etc).

The last patch changes the config so that we are no longer dependent on !RELOCATABLE for CONFIG_STRICT_KERNEL_RWX feature.

Changelog v2
- Rebase on top of the changes made in v4.13
- Move hash tables to IS_ALIGNED logic

Balbir Singh (3):
powerpc/mm/radix: Fix relocatable radix mappings for STRICT_RWX powerpc/mm/hash: WARN if relocation is enabled and
CONFIG_STRICT_KERNEL_RWX
powerpc/strict_kernel_rwx: Don't depend on !RELOCATABLE

 arch/powerpc/Kconfig             |   2 +-
 arch/powerpc/mm/pgtable-hash64.c |  28 +++++-
 arch/powerpc/mm/pgtable-radix.c  | 183 ++++++++++++++++++++++++++++++++-------
 3 files changed, 178 insertions(+), 35 deletions(-)
Signature · 1 line
2.9.4