Skip to content

Implement set_memory_xx for ppc64 book3s

Balbir Singh linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arch/powerpc/set_memory: Implement set_memory_xx routinesarch/powerpc/include/asm/book3s/64/hash.h arch/powerpc/include/asm/book3s/64/radix.h arch/powerpc/include/asm/set_memory.h +3 more+175 -166 replies
2/3Enable ARCH_HAS_SET_MEMORYarch/powerpc/Kconfig+1 -00 replies
3/3arch/powerpc/net/bpf: Basic EBPF supportarch/powerpc/net/bpf_jit_comp64.c+1 -121 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/3] Implement set_memory_xx for ppc64 book3s

After implementing STRICT_KERNEL_RWX, it turns out that implementing set_memory_ro/rw/x/nx is quite easy. The first patch is applied on top (http://patchwork.ozlabs.org/patch/795745/).

The first patch implements the various routines, the second patch enables ARCH_HAS_SET_MEMORY for PPC_BOOK3S_64 and the third patch enables the BPF infrastructure to use the set_memory_ro and set_memory_rw routines.

Balbir Singh (3):
arch/powerpc/set_memory: Implement set_memory_xx routines Enable ARCH_HAS_SET_MEMORY
arch/powerpc/net/bpf: Basic EBPF support

 arch/powerpc/Kconfig                       |  1 +
 arch/powerpc/include/asm/book3s/64/hash.h  |  6 +++
 arch/powerpc/include/asm/book3s/64/radix.h |  6 +++
 arch/powerpc/include/asm/set_memory.h      | 34 +++++++++++++++
 arch/powerpc/mm/pgtable-hash64.c           | 51 ++++++++++++++++++++--
 arch/powerpc/mm/pgtable-radix.c            | 26 ++++++------
 arch/powerpc/mm/pgtable_64.c               | 68 ++++++++++++++++++++++++++++++
 arch/powerpc/net/bpf_jit_comp64.c          | 13 +-----
 8 files changed, 177 insertions(+), 28 deletions(-)
 create mode 100644 arch/powerpc/include/asm/set_memory.h
Signature · 1 line
2.9.4