summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorLi RongQing2014-10-17 08:06:16 +0200
committerDavid S. Miller2014-10-17 22:23:58 +0200
commit7a9f526fc3ee49b6034af2f243676ee0a27dcaa8 (patch)
tree438784301c4410430df7cf2a7d53e71f26a733b2 /drivers/net
parentopenvswitch: fix a use after free (diff)
downloadkernel-qcow2-linux-7a9f526fc3ee49b6034af2f243676ee0a27dcaa8.tar.gz
kernel-qcow2-linux-7a9f526fc3ee49b6034af2f243676ee0a27dcaa8.tar.xz
kernel-qcow2-linux-7a9f526fc3ee49b6034af2f243676ee0a27dcaa8.zip
vxlan: fix a free after use
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 <edumazet@google.com> Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/vxlan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 77ab844cd8ae..ca309820d39e 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1887,6 +1887,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
}