Skip to contentSkip to conversation

Patch "act_mirred: clear sender cpu before sending to tx" has been added to the 4.1-stable tree

PATCH [email protected] 1 participant 1 message Oct 23, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

act_mirred: clear sender cpu before sending to tx

to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
act_mirred-clear-sender-cpu-before-sending-to-tx.patch
and it can be found in the queue-4.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From foo@baz Thu Oct 22 17:25:37 PDT 2015

From: WANG Cong <[email protected]>
Date: Tue, 6 Oct 2015 17:23:47 -0700
Subject: act_mirred: clear sender cpu before sending to tx

From: WANG Cong <[email protected]>

[ Upstream commit d40496a56430eac0d330378816954619899fe303 ]

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 <[email protected]>
Cc Jamal Hadi Salim <[email protected]>
---
 net/sched/act_mirred.c |    1 +
 1 file changed, 1 insertion(+)
net/sched/act_mirred.c +1 -0
@@ -166,6 +166,7 @@ static int tcf_mirred(struct sk_buff *sk
 
 	skb2->skb_iif = skb->dev->ifindex;
 	skb2->dev = dev;
+	skb_sender_cpu_clear(skb2);
 	err = dev_queue_xmit(skb2);
 
 out:

Patches currently in stable-queue which might be from [email protected] are

queue-4.1/act_mirred-clear-sender-cpu-before-sending-to-tx.patch