From: WANG Cong Date: Wed, 7 Oct 2015 00:23:47 +0000 (-0700) Subject: act_mirred: clear sender cpu before sending to tx X-Git-Tag: submit/tizen/20160607.132125~1588^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d40496a56430eac0d330378816954619899fe303;p=sdk%2Femulator%2Femulator-kernel.git act_mirred: clear sender cpu before sending to tx Similar to commit c29390c6dfee ("xps: must clear sender_cpu before forwarding") the skb->sender_cpu needs to be cleared when moving from Rx Tx, otherwise kernel could crash. Fixes: 2bd82484bb4c ("xps: fix xps for stacked devices") Cc: Eric Dumazet Cc: Jamal Hadi Salim Signed-off-by: Cong Wang Signed-off-by: Cong Wang Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index 2efaf4e..32fcdec 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c @@ -179,6 +179,7 @@ static int tcf_mirred(struct sk_buff *skb, const struct tc_action *a, skb2->skb_iif = skb->dev->ifindex; skb2->dev = dev; + skb_sender_cpu_clear(skb2); err = dev_queue_xmit(skb2); if (err) {