linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] powerpc/bpf: DIV64 instruction fix
@ 2019-06-12 18:51 Naveen N. Rao
  2019-06-12 18:51 ` [PATCH 1/2] bpf: fix div64 overflow tests to properly detect errors Naveen N. Rao
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Naveen N. Rao @ 2019-06-12 18:51 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann; +Cc: netdev, bpf, linuxppc-dev

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(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-13 21:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-12 18:51 [PATCH 0/2] powerpc/bpf: DIV64 instruction fix Naveen N. Rao
2019-06-12 18:51 ` [PATCH 1/2] bpf: fix div64 overflow tests to properly detect errors Naveen N. Rao
2019-06-12 18:51 ` [PATCH 2/2] powerpc/bpf: use unsigned division instruction for 64-bit operations Naveen N. Rao
2019-06-13  5:06 ` [PATCH 0/2] powerpc/bpf: DIV64 instruction fix Sandipan Das
2019-06-13 21:11 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).