Rabin Vincent 229394e8e6 net: bpf: reject invalid shifts
On ARM64, a BUG() is triggered in the eBPF JIT if a filter with a
constant shift that can't be encoded in the immediate field of the
UBFM/SBFM instructions is passed to the JIT.  Since these shifts
amounts, which are negative or >= regsize, are invalid, reject them in
the eBPF verifier and the classic BPF filter checker, for all
architectures.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-01-12 17:06:53 -05:00
..
2016-01-10 22:13:15 -05:00
2015-12-31 00:53:10 -05:00
2016-01-12 17:06:53 -05:00
2015-04-02 14:04:59 -04:00
2015-10-08 04:27:03 -07:00
2016-01-04 22:49:58 -05:00
2015-05-17 23:41:11 -04:00
2015-11-22 11:54:10 -05:00
2015-10-26 22:24:22 -07:00
2015-10-08 05:26:35 -07:00