Rabin Vincent
06928b3870
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 15:55:39 -05:00
..
2015-10-21 00:49:25 +02:00
2015-10-28 12:32:48 -04:00
2015-11-17 14:38:35 -05:00
2015-05-11 10:50:17 -04:00
2015-09-17 22:13:32 -07:00
2015-12-14 16:09:30 -05:00
2016-01-07 14:24:05 +08:00
2015-12-15 15:39:08 -05:00
2016-01-05 16:46:17 -05:00
2015-12-01 15:45:05 -05:00
2015-10-13 17:42:34 +02:00
2015-11-13 09:24:40 -08:00
2016-01-12 15:55:39 -05:00
2015-10-09 07:52:27 -07:00
2015-12-03 11:32:06 -05:00
2015-12-14 16:09:30 -05:00
2015-11-18 16:27:46 -05:00
2015-11-01 15:56:11 -05:00
2015-09-28 22:51:15 -07:00
2015-11-23 14:56:15 -05:00
2015-11-02 22:47:14 -05:00
2016-01-11 17:40:57 -05:00
2016-01-11 17:40:57 -05:00
2015-05-11 10:50:17 -04:00
2015-12-14 16:09:30 -05:00
2015-12-01 15:45:05 -05:00
2015-10-23 03:05:19 -07:00
2015-12-02 23:37:16 -05:00
2015-10-07 04:27:43 -07:00
2015-07-27 01:06:53 -07:00
2015-12-15 13:16:47 +01:00
2015-10-21 00:49:24 +02:00
2015-12-12 00:43:44 -05:00
2015-12-18 14:45:45 +01:00
2015-03-31 13:58:35 -04:00
2015-11-06 17:50:42 -08:00
2015-06-18 21:14:32 +02:00
2015-12-01 15:45:05 -05:00
2015-12-29 15:27:52 -05:00
2015-11-29 22:17:17 -05:00
2015-05-11 10:50:17 -04:00
2015-11-24 17:20:09 -05:00
2015-12-10 10:37:51 +01:00
2015-06-24 02:58:51 -07:00
2015-12-01 15:45:05 -05:00
2016-01-11 17:27:30 -05:00
2016-01-11 17:13:01 -05:00
2015-12-13 14:30:59 -08:00
2015-11-03 13:39:21 -05:00
2015-11-24 11:26:19 -05:00
2016-01-11 00:05:30 -05:00
2015-11-04 22:03:10 -05:00
2015-08-09 22:43:52 -07:00
2015-12-15 13:11:26 +01:00
2015-05-11 10:50:17 -04:00
2015-12-22 16:26:31 -05:00
2015-04-09 00:02:26 -04:00
2015-09-29 20:40:32 -07:00
2015-09-29 20:40:32 -07:00
2015-12-30 16:38:01 -05:00
2015-10-23 06:22:08 -07:00