]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: fix potential crash in __netdev_pick_tx()
authorEric Dumazet <edumazet@google.com>
Thu, 9 Jul 2015 16:56:07 +0000 (18:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jul 2015 05:48:42 +0000 (22:48 -0700)
commit12870423aaba3eb9dfbc0ea2b6d678c4766a0a6e
treef368109fccd33678d6fe881b17b74d1ef20c1114
parent1916fcba82f1fcf04035e3484ec9cc20656338c4
bridge: fix potential crash in __netdev_pick_tx()

Commit 98b2d804180a ("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: 21a6c6b31ab4 ("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>
net/bridge/br_forward.c