Skip to contentSkip to conversation

vxlan: fix a free after use

PATCH Applied [email protected] 2 participants 2 messages Oct 17, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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]>
---
 drivers/net/vxlan.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/vxlan.c +1 -0
index 855a81d..fabd514 100644
@@ -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