]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: remove type arg from __is_valid_{,xdp_}access
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 4 Dec 2016 22:19:39 +0000 (23:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 20:33:10 +0000 (15:33 -0500)
commit08e137c89346659fd8b7d5768524cc4803798ae3
tree828e82ba4e9a2600b083dd632cfaa0d7979b970f
parent9f60566e93e915204877b18ecb35c2bf822a3aaa
bpf: remove type arg from __is_valid_{,xdp_}access

Commit eb37f9b1bed1 ("bpf: allow programs to write to certain skb
fields") pushed access type check outside of __is_valid_access()
to have different restrictions for socket filters and tc programs.
type is thus not used anymore within __is_valid_access() and should
be removed as a function argument. Same for __is_valid_xdp_access()
introduced by 46605df5ee1b ("bpf: add XDP prog type for early driver
filter").

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c