Files
linux/net
Daniel Borkmann 4faf940dd8 bpf: simplify __is_valid_access test on cb
The __is_valid_access() test for cb[] from 62c7989b24 ("bpf: allow
b/h/w/dw access for bpf's cb in ctx") was done unnecessarily complex,
we can just simplify it the same way as recent fix from 2d071c643f
("bpf, trace: make ctx access checks more robust") did. Overflow can
never happen as size is 1/2/4/8 depending on access.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-24 14:46:05 -05:00
..
2017-01-22 16:46:13 -05:00
2017-01-24 12:39:52 -05:00
2016-12-25 17:21:22 +01:00
2016-12-03 23:54:25 -05:00
2017-01-18 13:04:28 -05:00
2016-12-25 17:21:22 +01:00
2016-11-14 13:17:21 -05:00
2017-01-17 14:38:43 -05:00
2016-10-20 11:23:08 -04:00
2017-01-09 11:40:33 +01:00
2016-12-25 17:21:22 +01:00