Skip to content

powerpc/bpf: DIV64 instruction fix

Naveen N. Rao bpf linuxppc-dev netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: fix div64 overflow tests to properly detect errorstools/testing/selftests/bpf/verifier/div_overflow.c+10 -40 replies
2/2powerpc/bpf: use unsigned division instruction for 64-bit operationsarch/powerpc/include/asm/ppc-opcode.h arch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp64.c+6 -50 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSandipan Das
SeriesA-b
1/2
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] powerpc/bpf: DIV64 instruction fix

The first patch updates DIV64 overflow tests to properly detect error conditions. The second patch fixes powerpc64 JIT to generate the proper unsigned division instruction for BPF_ALU64.

- Naveen

Naveen N. Rao (2):
bpf: fix div64 overflow tests to properly detect errors powerpc/bpf: use unsigned division instruction for 64-bit operations

 arch/powerpc/include/asm/ppc-opcode.h              |  1 +
 arch/powerpc/net/bpf_jit.h                         |  2 +-
 arch/powerpc/net/bpf_jit_comp64.c                  |  8 ++++----
 .../testing/selftests/bpf/verifier/div_overflow.c  | 14 ++++++++++----
 4 files changed, 16 insertions(+), 9 deletions(-)
Signature · 1 line
2.21.0