Skip to contentSkip to conversation

Patch "bpf: clear sender_cpu before xmit" has been added to the 4.2-stable tree

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

Subsystems (4)
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

bpf: clear sender_cpu before xmit

to the 4.2-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:
bpf-clear-sender_cpu-before-xmit.patch
and it can be found in the queue-4.2 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:24 PDT 2015

From: Alexei Starovoitov <[email protected]>
Date: Tue, 6 Oct 2015 20:46:07 -0700
Subject: bpf: clear sender_cpu before xmit

From: Alexei Starovoitov <[email protected]>

[ Upstream commit 6bf0577374cfb6c2301dbf4934a4f23ad3d72763 ]

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")
---
 net/core/filter.c |    1 +
 1 file changed, 1 insertion(+)
net/core/filter.c +1 -0
@@ -1412,6 +1412,7 @@ static u64 bpf_clone_redirect(u64 r1, u6
 		return dev_forward_skb(dev, skb2);
 
 	skb2->dev = dev;
+	skb_sender_cpu_clear(skb2);
 	return dev_queue_xmit(skb2);
 }
 

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

queue-4.2/bpf-fix-panic-in-so_get_filter-with-native-ebpf-programs.patch queue-4.2/bpf-clear-sender_cpu-before-xmit.patch