Skip to content

Commit a7d35f9

Browse files
edumazetdavem330
authored andcommitted
bridge: fix potential crash in __netdev_pick_tx()
Commit c29390c ("xps: must clear sender_cpu before forwarding") fixed an issue in normal forward path, caused by sender_cpu & napi_id skb fields being an union. Bridge is another point where skb can be forwarded, so we need the same cure. Bug triggers if packet was received on a NIC using skb_mark_napi_id() Fixes: 2bd8248 ("xps: fix xps for stacked devices") Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Bob Liu <bob.liu@oracle.com> Tested-by: Bob Liu <bob.liu@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fcc028c commit a7d35f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/bridge/br_forward.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ int br_dev_queue_push_xmit(struct sock *sk, struct sk_buff *skb)
4242
} else {
4343
skb_push(skb, ETH_HLEN);
4444
br_drop_fake_rtable(skb);
45+
skb_sender_cpu_clear(skb);
4546
dev_queue_xmit(skb);
4647
}
4748

0 commit comments

Comments
 (0)