linux/arch/arm/net
Nicolas Schichan 7e2fcba09c ARM: net fix emit_udiv() for BPF_ALU | BPF_DIV | BPF_K intruction.
commit 19fc99d0c6 upstream.

In that case, emit_udiv() will be called with rn == ARM_R0 (r_scratch)
and loading rm first into ARM_R0 will result in jit_udiv() function
being called the same dividend and divisor. Fix that by loading rn
first into ARM_R1 and then rm into ARM_R0.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Fixes: aee636c480 (bpf: do not use reciprocal divide)
Acked-by: Mircea Gherzan <mgherzan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-05-28 10:00:01 +01:00
..
bpf_jit_32.c ARM: net fix emit_udiv() for BPF_ALU | BPF_DIV | BPF_K intruction. 2015-05-28 10:00:01 +01:00
bpf_jit_32.h ARM: net: bpf_jit_32: add XOR instruction for BPF JIT 2012-11-13 18:21:10 -05:00
Makefile ARM: 7259/3: net: JIT compiler for packet filters 2012-03-24 09:38:56 +00:00