Skip to content

powerpc/bpf: Various fixes

Naveen N. Rao stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4powerpc/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 -70 replies
2/4powerpc/bpf: Validate branch rangesarch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp64.c+26 -80 replies
3/4powerpc/security: Add a helper to query stf_barrier typearch/powerpc/include/asm/security_features.h arch/powerpc/kernel/security.c+10 -00 replies
4/4powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPECarch/powerpc/net/bpf_jit64.h arch/powerpc/net/bpf_jit_comp64.c+56 -80 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchChristophe LeroySong LiuJohan Almbladh
1/4R-b A-b
2/4R-b A-b T-b A-b
3/4
4/4

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 v1 thread

Cover letter [PATCH 5.10 0/4] powerpc/bpf: Various fixes

This is a backport of the remaining patches from the below series:
https://lore.kernel.org/all/[email protected]/

Kindly apply to the longterm tree for v5.10

Thanks,
Naveen

Naveen N. Rao (4):
powerpc/lib: Add helper to check if offset is within conditional
branch range
powerpc/bpf: Validate branch ranges
powerpc/security: Add a helper to query stf_barrier type powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC

 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_comp64.c            | 64 ++++++++++++++++++--
 7 files changed, 100 insertions(+), 23 deletions(-)

base-commit: 5040520482a594e92d4f69141229a6dd26173511

Signature · 1 line
2.33.1