linux_dsm_epyc7002/arch/arm/net
Rabin Vincent f941461c92 ARM: net: bpf: fix zero right shift
The LSR instruction cannot be used to perform a zero right shift since a
0 as the immediate value (imm5) in the LSR instruction encoding means
that a shift of 32 is perfomed.  See DecodeIMMShift() in the ARM ARM.

Make the JIT skip generation of the LSR if a zero-shift is requested.

This was found using american fuzzy lop.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-01-06 01:32:09 -05:00
..
bpf_jit_32.c ARM: net: bpf: fix zero right shift 2016-01-06 01:32:09 -05:00
bpf_jit_32.h ARM: net: support BPF_ALU | BPF_MOD instructions in the BPF JIT. 2015-10-05 07:02:42 -07:00
Makefile ARM: 7259/3: net: JIT compiler for packet filters 2012-03-24 09:38:56 +00:00