From: Alexei Starovoitov Date: Wed, 7 Oct 2015 03:46:07 +0000 (-0700) Subject: bpf: clear sender_cpu before xmit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6bf0577374cfb6c2301dbf4934a4f23ad3d72763;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bpf: clear sender_cpu before xmit Similar to commit c29390c6dfee ("xps: must clear sender_cpu before forwarding") the skb->sender_cpu needs to be cleared before xmit. Fixes: 3896d655f4d4 ("bpf: introduce bpf_clone_redirect() helper") Signed-off-by: Alexei Starovoitov Acked-by: Daniel Borkmann Signed-off-by: David S. Miller --- diff --git a/net/core/filter.c b/net/core/filter.c index 87b78ef0c3d4..bb18c3680001 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -1415,6 +1415,7 @@ static u64 bpf_clone_redirect(u64 r1, u64 ifindex, u64 flags, u64 r4, u64 r5) return dev_forward_skb(dev, skb2); skb2->dev = dev; + skb_sender_cpu_clear(skb2); return dev_queue_xmit(skb2); }