Skip to content

powerpc/bpf: Various fixes

Naveen N. Rao bpf linuxppc-dev 2 versions – Applied

Status from this message: Applied to powerpc/fixes.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 11 repliesApplied
  2. v19 patches 30 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10powerpc/lib: Add helper to check if offset is within conditional branch rangearch/powerpc/include/asm/code-patching.h arch/powerpc/lib/code-patching.c arch/powerpc/net/bpf_jit.h+8 -71 reply
2/10powerpc/bpf: Validate branch rangesarch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp.c arch/powerpc/net/bpf_jit_comp32.c +1 more+37 -112 replies
3/10powerpc/bpf: Fix BPF_MOD when imm == 1arch/powerpc/net/bpf_jit_comp64.c+8 -21 reply
4/10powerpc/bpf: Fix BPF_SUB when imm == 0x80000000arch/powerpc/net/bpf_jit_comp64.c+17 -102 replies
5/10powerpc/security: Add a helper to query stf_barrier typearch/powerpc/include/asm/security_features.h arch/powerpc/kernel/security.c+10 -00 replies
6/10powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPECarch/powerpc/net/bpf_jit64.h arch/powerpc/net/bpf_jit_comp64.c+55 -80 replies
7/10powerpc/bpf ppc32: Fix ALU32 BPF_ARSH operationarch/powerpc/net/bpf_jit_comp32.c+1 -11 reply
8/10powerpc/bpf ppc32: Fix JMP32_JSET_Karch/powerpc/net/bpf_jit_comp32.c+1 -11 reply
9/10powerpc/bpf ppc32: Do not emit zero extend instruction for 64-bit BPF_ENDarch/powerpc/net/bpf_jit_comp32.c+1 -11 reply
10/10powerpc/bpf ppc32: Fix BPF_SUB when imm == 0x80000000arch/powerpc/net/bpf_jit_comp32.c+1 -11 reply

Reviews trailers per patch

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

PatchSong LiuJohan AlmbladhChristophe Leroy
1/10A-b R-b
2/10A-b A-b T-b R-b R-b
3/10A-b A-b T-b R-b
4/10R-b
5/10
6/10
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/10] powerpc/bpf: Various fixes

This is v2 of the series posted at:
http://lkml.kernel.org/r/[email protected]

Only patches from v1 that need to go into powerpc/fixes are included. Other patches will be posted as a separate series for inclusion into powerpc/next.

Patches 7 to 10 are new and fix issues in ppc32.

- Naveen

Naveen N. Rao (10):
powerpc/lib: Add helper to check if offset is within conditional
branch range
powerpc/bpf: Validate branch ranges
powerpc/bpf: Fix BPF_MOD when imm == 1
powerpc/bpf: Fix BPF_SUB when imm == 0x80000000 powerpc/security: Add a helper to query stf_barrier type powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC powerpc/bpf ppc32: Fix ALU32 BPF_ARSH operation powerpc/bpf ppc32: Fix JMP32_JSET_K
powerpc/bpf ppc32: Do not emit zero extend instruction for 64-bit
BPF_END
powerpc/bpf ppc32: Fix BPF_SUB when imm == 0x80000000

 arch/powerpc/include/asm/code-patching.h     |   1 +
 arch/powerpc/include/asm/security_features.h |   5 +
 arch/powerpc/kernel/security.c               |   5 +
 arch/powerpc/lib/code-patching.c             |   7 +-
 arch/powerpc/net/bpf_jit.h                   |  33 +++---
 arch/powerpc/net/bpf_jit64.h                 |   8 +-
 arch/powerpc/net/bpf_jit_comp.c              |   6 +-
 arch/powerpc/net/bpf_jit_comp32.c            |  16 +--
 arch/powerpc/net/bpf_jit_comp64.c            | 100 +++++++++++++++----
 9 files changed, 139 insertions(+), 42 deletions(-)

base-commit: cdcb1396e357bd198f81dc7fa4f5d819063abe44

Signature · 1 line
2.33.0