Skip to content

bpf powerpc: Add BPF_PROBE_MEM support in powerpc JIT compiler

Hari Bathini bpf linuxppc-dev netdev oe-kbuild-all 4 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/28 patches 4 repliesApplied
  2. v4 posting 1/28 patches 14 repliesSuperseded
  3. v38 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v28 patches9 repliesSuperseded

Patches in v4 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/8bpf powerpc: Remove unused SEEN_STACKarch/powerpc/net/bpf_jit.h+1 -20 replies
2/8bpf powerpc: Remove extra_pass from bpf_jit_build_body()arch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp.c arch/powerpc/net/bpf_jit_comp32.c +1 more+8 -80 replies
3/8bpf powerpc: refactor JIT compiler codearch/powerpc/net/bpf_jit_comp32.c arch/powerpc/net/bpf_jit_comp64.c+37 -270 replies
4/8powerpc/ppc-opcode: introduce PPC_RAW_BRANCH() macroarch/powerpc/include/asm/ppc-opcode.h arch/powerpc/net/bpf_jit.h+3 -10 replies
5/8bpf ppc64: Add BPF_PROBE_MEM support for JITarch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp.c arch/powerpc/net/bpf_jit_comp32.c +1 more+80 -90 replies
6/8bpf ppc64: Access only if addr is kernel addressarch/powerpc/net/bpf_jit_comp64.c+26 -00 replies
7/8bpf ppc32: Add BPF_PROBE_MEM support for JITarch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp.c arch/powerpc/net/bpf_jit_comp32.c+36 -00 replies
8/8bpf ppc32: Access only if addr is kernel addressarch/powerpc/net/bpf_jit_comp32.c+34 -00 replies

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchChristophe Leroy
1/8R-b
2/8
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [RESEND PATCH v4 0/8] bpf powerpc: Add BPF_PROBE_MEM support in powerpc JIT compiler

Patch #1 & #2 are simple cleanup patches. Patch #3 refactors JIT compiler code with the aim to simplify adding BPF_PROBE_MEM support. Patch #4 introduces PPC_RAW_BRANCH() macro instead of open coding branch instruction. Patch #5 & #7 add BPF_PROBE_MEM support for PPC64 & PPC32 JIT compilers respectively. Patch #6 & #8 handle bad userspace pointers for PPC64 & PPC32 cases respectively.

Resending v4 after rebasing the series on top of bpf fix patches posted by Naveen:

- https://patchwork.ozlabs.org/project/linuxppc-dev/cover/[email protected]/

    ("[v2,00/10] powerpc/bpf: Various fixes")

Also, added Reviewed-by tag from Christophe for patches #3, #5, #6, #7 & #8.

Hari Bathini (4):
bpf powerpc: refactor JIT compiler code powerpc/ppc-opcode: introduce PPC_RAW_BRANCH() macro bpf ppc32: Add BPF_PROBE_MEM support for JIT bpf ppc32: Access only if addr is kernel address

Ravi Bangoria (4):
bpf powerpc: Remove unused SEEN_STACK
bpf powerpc: Remove extra_pass from bpf_jit_build_body() bpf ppc64: Add BPF_PROBE_MEM support for JIT bpf ppc64: Access only if addr is kernel address

 arch/powerpc/include/asm/ppc-opcode.h |   2 +
 arch/powerpc/net/bpf_jit.h            |  17 ++++-
 arch/powerpc/net/bpf_jit_comp.c       |  68 +++++++++++++++--
 arch/powerpc/net/bpf_jit_comp32.c     | 101 ++++++++++++++++++++++----
 arch/powerpc/net/bpf_jit_comp64.c     |  72 ++++++++++++++----
 5 files changed, 219 insertions(+), 41 deletions(-)
Signature · 1 line
2.31.1