kernel-fxtec-pro1x/arch/powerpc/net
Naveen N. Rao 48ee85dc9c powerpc/bpf: use unsigned division instruction for 64-bit operations
commit 758f2046ea040773ae8ea7f72dd3bbd8fa984501 upstream.

BPF_ALU64 div/mod operations are currently using signed division, unlike
BPF_ALU32 operations. Fix the same. DIV64 and MOD64 overflow tests pass
with this fix.

Fixes: 156d0e290e ("powerpc/ebpf/jit: Implement JIT compiler for extended BPF")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-25 11:36:00 +08:00
..
bpf_jit.h powerpc/bpf: use unsigned division instruction for 64-bit operations 2019-06-25 11:36:00 +08:00
bpf_jit32.h powerpc: bpf: Fix generation of load/store DW instructions 2019-04-03 06:26:21 +02:00
bpf_jit64.h powerpc: bpf: Fix generation of load/store DW instructions 2019-04-03 06:26:21 +02:00
bpf_jit_asm.S powerpc: move ASM_CONST and stringify_in_c() into asm-const.h 2018-07-30 22:48:16 +10:00
bpf_jit_comp.c powerpc: move ASM_CONST and stringify_in_c() into asm-const.h 2018-07-30 22:48:16 +10:00
bpf_jit_comp64.c powerpc/bpf: use unsigned division instruction for 64-bit operations 2019-06-25 11:36:00 +08:00
Makefile powerpc/Makefiles: Convert ifeq to ifdef where possible 2018-08-08 00:32:36 +10:00