powerpc/bpf: Some fixes and updates
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest13 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()kernel/ | +3 | 3 replies | |
| 2/13 | powerpc32/bpf: Fix codegen for bpf-to-bpf callsarch/ | +3 | 2 replies | |
| 3/13 | powerpc/bpf: Update ldimm64 instructions during extra passarch/ arch/ arch/ | +35 | 3 replies | |
| 4/13 | tools/bpf: Rename 'struct event' to avoid naming conflicttools/ tools/ tools/ | +3 | 1 reply | |
| 5/13 | powerpc/bpf: Skip branch range validation during first passarch/ | +2 | 0 replies | |
| 6/13 | powerpc/bpf: Emit a single branch instruction for known short branch rangesarch/ arch/ | +8 | 0 replies | |
| 7/13 | powerpc/bpf: Handle large branch ranges with BPF_EXITarch/ arch/ arch/ +1 more | +33 | 0 replies | |
| 8/13 | powerpc64/bpf: Limit 'ldbrx' to processors compliant with ISA v2.06arch/ arch/ | +14 | 0 replies | |
| 9/13 | powerpc64/bpf: Do not save/restore LR on each call to bpf_stf_barrier()arch/ | +1 | 0 replies | |
| 10/13 | powerpc64/bpf: Use r12 for constant blindingarch/ | +1 | 0 replies | |
| 11/13 | powerpc64/bpf elfv2: Setup kernel TOC in r2 on entryarch/ | +7 | 5 replies | |
| 12/13 | powerpc64/bpf elfv1: Do not load TOC before calling functionsarch/ arch/ arch/ +1 more | +30 | 0 replies | |
| 13/13 | powerpc64/bpf: Optimize instruction sequence used for function callsarch/ | +13 | 0 replies |
Reviews trailers per patch
3 of 13 patches have a Reviewed-by or Acked-by.
| Patch | Johan Almbladh | Daniel Borkmann | Jiri Olsa |
|---|---|---|---|
| 1/13 | A-b | ||
| 2/13 | |||
| 3/13 | T-b | ||
| 4/13 | A-b | ||
| 5/13 | |||
| 6/13 | |||
| 7/13 | |||
| 8/13 | A-b T-b | ||
| 9/13 | |||
| 10/13 | |||
| 11/13 | |||
| 12/13 | |||
| 13/13 |
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.
Cover letter [PATCH 00/13] powerpc/bpf: Some fixes and updates
A set of fixes and updates to powerpc BPF JIT:
- Patches 1-3 fix issues with the existing powerpc JIT and are tagged for -stable.
- Patch 4 fixes a build issue with bpf selftests on powerpc.
- Patches 5-9 handle some corner cases and make some small improvements.
- Patches 10-13 optimize how function calls are handled in ppc64.
Patches 7 and 8 were previously posted, and while patch 7 has no changes, patch 8 has been reworked to handle BPF_EXIT differently.
- Naveen
Naveen N. Rao (13):
bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack() powerpc32/bpf: Fix codegen for bpf-to-bpf calls powerpc/bpf: Update ldimm64 instructions during extra pass tools/bpf: Rename 'struct event' to avoid naming conflict powerpc/bpf: Skip branch range validation during first pass powerpc/bpf: Emit a single branch instruction for known short branch
ranges
powerpc/bpf: Handle large branch ranges with BPF_EXIT powerpc64/bpf: Limit 'ldbrx' to processors compliant with ISA v2.06 powerpc64/bpf: Do not save/restore LR on each call to
bpf_stf_barrier()
powerpc64/bpf: Use r12 for constant blinding powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry powerpc64/bpf elfv1: Do not load TOC before calling functions powerpc64/bpf: Optimize instruction sequence used for function calls
arch/powerpc/include/asm/ppc-opcode.h | 1 + arch/powerpc/net/bpf_jit.h | 8 +- arch/powerpc/net/bpf_jit64.h | 2 +- arch/powerpc/net/bpf_jit_comp.c | 55 ++++++++++-- arch/powerpc/net/bpf_jit_comp32.c | 32 +++++-- arch/powerpc/net/bpf_jit_comp64.c | 124 ++++++++++++++------------ kernel/bpf/stackmap.c | 5 +- tools/bpf/runqslower/runqslower.bpf.c | 2 +- tools/bpf/runqslower/runqslower.c | 2 +- tools/bpf/runqslower/runqslower.h | 2 +- 10 files changed, 153 insertions(+), 80 deletions(-)
base-commit: bdcf18e133f656b2c97390a594fc95e37849e682
Signature · 1 line
2.34.1