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
..
2015-12-27 18:06:31 -08:00
2015-11-10 10:05:17 -08:00
2015-11-10 14:48:36 -08:00
2015-11-05 13:15:12 -08:00
2015-11-10 14:48:36 -08:00
2016-01-06 01:32:09 -05:00
2015-10-14 17:10:55 +02:00
2015-11-28 23:26:12 +00:00