vxlan: fix a free after use
Subsystems (2)
PATCH v2 1/1 vxlan: fix a free after use
From: Li RongQing <[email protected]>
pskb_may_pull maybe change skb->data and make eth pointer oboslete, so eth needs to reload
Fixes 91269e390d062 ("vxlan: using pskb_may_pull as early as possible")
Cc Eric Dumazet <[email protected]>
Signed-off-by Li RongQing <[email protected]>
--- drivers/net/vxlan.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/vxlan.c +1 -0
@@ -1885,6 +1885,7 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev) msg->icmph.icmp6_type == NDISC_NEIGHBOUR_SOLICITATION) return neigh_reduce(dev, skb); } + eth =eth_hdr (skb);#endif }
Signature · 1 line
1.7.10.4
From: [email protected]
Date: Fri, 17 Oct 2014 14:06:16 +0800
Quoted 8 lines
From: Li RongQing <[email protected]>
pskb_may_pullmaybe changeskb->dataand make eth pointer oboslete, so eth needs to reloadFixes 91269e390d062 ("vxlan: using pskb_may_pull as early as possible")Cc Eric Dumazet <[email protected]>Signed-off-by Li RongQing <[email protected]>
Applied, thanks.