]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add bpf_clone_redirect to bpf_helper_changes_pkt_data
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 24 May 2017 23:05:07 +0000 (01:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 17:44:28 +0000 (13:44 -0400)
commitbc866e3931433ac51371132c1fdfe385a4d21440
tree829c5ce74500c834675e614803c56e31e06802cc
parent70fba7265c18da325bd6523b59add6b7f0d171fb
bpf: add bpf_clone_redirect to bpf_helper_changes_pkt_data

The bpf_clone_redirect() still needs to be listed in
bpf_helper_changes_pkt_data() since we call into
bpf_try_make_head_writable() from there, thus we need
to invalidate prior pkt regs as well.

Fixes: f7e416ea3a53 ("bpf: direct packet write and access for helpers for clsact progs")
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