Skip to content

Commit 41703a7

Browse files
borkmanndavem330
authored andcommitted
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: 36bbef5 ("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>
1 parent a9789ef commit 41703a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/core/filter.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,6 +2281,7 @@ bool bpf_helper_changes_pkt_data(void *func)
22812281
func == bpf_skb_change_head ||
22822282
func == bpf_skb_change_tail ||
22832283
func == bpf_skb_pull_data ||
2284+
func == bpf_clone_redirect ||
22842285
func == bpf_l3_csum_replace ||
22852286
func == bpf_l4_csum_replace ||
22862287
func == bpf_xdp_adjust_head)

0 commit comments

Comments
 (0)